2024-10-08 14:41:32 +03:00
|
|
|
|
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; }
|
|
|
|
|
}
|
|
|
|
|
|
2024-10-08 15:14:10 +03:00
|
|
|
|
public CarControl Car;
|
2024-10-08 14:41:32 +03:00
|
|
|
|
|
2024-10-08 15:14:10 +03:00
|
|
|
|
public CarItemMenuStrip(EventHandler add, EventHandler edit, EventHandler delete, CarControl car)
|
2024-10-08 14:41:32 +03:00
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
|
|
|
|
|
addNewToolStripMenuItem.Click += add;
|
|
|
|
|
editToolStripMenuItem.Click += edit;
|
|
|
|
|
deleteToolStripMenuItem.Click += delete;
|
|
|
|
|
|
|
|
|
|
Car = car;
|
|
|
|
|
|
|
|
|
|
addNewToolStripMenuItem.Tag = this;
|
|
|
|
|
editToolStripMenuItem.Tag = this;
|
|
|
|
|
deleteToolStripMenuItem.Tag = this;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|