Beispiel #1
0
 private void btnCreateDiagnosis_Click(object sender, EventArgs e)
 {
     if (mainDiagnose == null)
     {
         mainDiagnose = new Diagnose();
         GlobalMethods.AddValToCombo("Diagnose", cmbActive);
         GlobalMethods.AddMessageToTextbox("Diagnose Create Successfully", txtMessages);
         GlobalMethods.SetLabelTextAndColor(lblDiagnosisStatus);
     }
     else
     {
         GlobalMethods.AddMessageToTextbox("Diagnose is already created.", txtMessages);
     }
 }
Beispiel #2
0
 private void btnCreateRegister_Click(object sender, EventArgs e)
 {
     if (mainRegister == null)
     {
         mainRegister = new Register();
         GlobalMethods.AddValToCombo("Register", cmbActive);
         GlobalMethods.AddMessageToTextbox("Register Create Successfully", txtMessages);
         GlobalMethods.SetLabelTextAndColor(lblRegisterStatus);
     }
     else
     {
         GlobalMethods.AddMessageToTextbox("Register is already created.", txtMessages);
     }
 }