GtaVUsersInfo/Controls/ParameterItemMenuStrip.cs

36 lines
868 B
C#
Raw Permalink Normal View History

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 ParameterItemMenuStrip : UserControl
{
public ContextMenuStrip Menu
{
get { return myMenuStrip; }
}
public ParameterControl Parameter;
public ParameterItemMenuStrip(EventHandler add, EventHandler delete, ParameterControl parameter)
{
InitializeComponent();
addNewToolStripMenuItem.Click += add;
deleteToolStripMenuItem.Click += delete;
Parameter = parameter;
addNewToolStripMenuItem.Tag = this;
deleteToolStripMenuItem.Tag = this;
}
}
}