private void addRegistrantToolStripMenuItem_Click(object sender, EventArgs e) { Registrant reg = new Registrant(); RegistrantEditor regEditor = new RegistrantEditor(ref reg); regEditor.ShowDialog(); if (regEditor.DialogResult == DialogResult.OK && reg.hasData()) { DataManager.RegistrantManager.addRegistrant(reg); groupRegistrants.refreshRegistrants(DataManager.CurrentDivision); } }
private void RegistrantPanel_MouseDown(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { this.DoDragDrop(this, DragDropEffects.All); } else if (e.Button == MouseButtons.Right) { Registrant r = Registrant; RegistrantEditor editor = new RegistrantEditor(ref r); editor.ShowDialog(); if (editor.DialogResult == DialogResult.OK && Registrant.hasData()) { ((RegistrantsPanel)Parent).refreshRegistrants(DataManager.CurrentDivision); } } }