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