Пример #1
0
 private void listGuardians_DoubleClick(object sender,EventArgs e)
 {
     if(listGuardians.SelectedIndex==-1) {
         return;
     }
     FormGuardianEdit formG=new FormGuardianEdit(GuardianList[listGuardians.SelectedIndex],FamCur);
     if(formG.ShowDialog()==DialogResult.OK) {
         FillGuardians();
     }
 }
Пример #2
0
 private void butAddGuardian_Click(object sender,EventArgs e)
 {
     if(listPosition.SelectedIndex!=2) {
         if(!MsgBox.Show(this,MsgBoxButtons.OKCancel,"Guardians are usually only added from a child window.  Continue anyway?")) {
             return;
         }
     }
     Guardian guardian=new Guardian();
     guardian.IsNew=true;
     guardian.PatNumChild=PatCur.PatNum;
     //no patnumGuardian set
     FormGuardianEdit formG=new FormGuardianEdit(guardian,FamCur);
     if(formG.ShowDialog()==DialogResult.OK) {
         FillGuardians();
     }
 }
Пример #3
0
		private void butAddGuardian_Click(object sender,EventArgs e) {
			Guardian guardian=new Guardian();
			guardian.IsNew=true;
			guardian.PatNumChild=PatCur.PatNum;
			//no patnumGuardian set
			FormGuardianEdit formG=new FormGuardianEdit(guardian,FamCur);
			if(formG.ShowDialog()==DialogResult.OK) {
				FillGuardians();
			}
		}