public ownContextMenu(MainWindow mainWindow) { this.mainWindow = mainWindow; MenuItem m = new MenuItem(); m.Header = "Del"; m.Click += m_Click; this.Items.Add(m); }
public LvGroupMatterContextMenu(MainWindow mainWindow) { this.mainWindow = mainWindow; MenuItem m = new MenuItem(); m.Header = "Check Comment"; m.Click += checkComment_Click; this.Items.Add(m); m = new MenuItem(); m.Header = "Add"; m.Click += add_Click; this.Items.Add(m); m = new MenuItem(); m.Header = "Modify"; m.Click += mod_Click; this.Items.Add(m); m = new MenuItem(); m.Header = "Del"; m.Click += del_Click; this.Items.Add(m); }