38 lines
928 B
C#
38 lines
928 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 CarItem Car;
|
|
|
|
public CarItemMenuStrip(EventHandler add, EventHandler edit, EventHandler delete, CarItem car)
|
|
{
|
|
InitializeComponent();
|
|
|
|
addNewToolStripMenuItem.Click += add;
|
|
editToolStripMenuItem.Click += edit;
|
|
deleteToolStripMenuItem.Click += delete;
|
|
|
|
Car = car;
|
|
|
|
addNewToolStripMenuItem.Tag = this;
|
|
editToolStripMenuItem.Tag = this;
|
|
deleteToolStripMenuItem.Tag = this;
|
|
}
|
|
}
|
|
}
|