示例#1
0
        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);
            }
        }
示例#2
0
 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);
         }
     }
 }