GtaVUsersInfo/Controls/CarItemMenuStrip.cs

38 lines
934 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace GtaVUsersInfo.Controls
{
public partial class CarItemMenuStrip : UserControl
{
public ContextMenuStrip Menu
{
get { return myMenuStrip; }
}
public CarControl Car;
public CarItemMenuStrip(EventHandler add, EventHandler edit, EventHandler delete, CarControl car)
{
InitializeComponent();
addNewToolStripMenuItem.Click += add;
editToolStripMenuItem.Click += edit;
deleteToolStripMenuItem.Click += delete;
Car = car;
addNewToolStripMenuItem.Tag = this;
editToolStripMenuItem.Tag = this;
deleteToolStripMenuItem.Tag = this;
}
}
}