GtaVUsersInfo/Controls/CarItemMenuStrip.cs

40 lines
1.0 KiB
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, EventHandler color, CarControl car)
{
InitializeComponent();
addNewToolStripMenuItem.Click += add;
editToolStripMenuItem.Click += edit;
deleteToolStripMenuItem.Click += delete;
colorToolStripMenuItem.Click += color;
Car = car;
addNewToolStripMenuItem.Tag = this;
editToolStripMenuItem.Tag = this;
deleteToolStripMenuItem.Tag = this;
colorToolStripMenuItem.Tag = this;
}
}
}