Exemple #1
0
        private void btn_Save_Click(object sender, EventArgs e)
        {
            if (txtLabName.Text == "")
            {
                ShowMessagePrompt("Enter Laboratory Name", "");
                return;
            }

            ShowMessagePrompt("", "");
            SaveRecord();
            GLOBAL.SaveDB();
            NextRecord();
            ShowMessagePrompt("Record save successfully", "S");
            ENABLE_DISABLE_CONTROLS(false);
        }
Exemple #2
0
 private void btn_Save_Click(object sender, EventArgs e)
 {
     if (txtLabNo.Text == "")
     {
         ShowMessagePrompt("First Generate Lab No", "");
         return;
     }
     if (txtPCode.Text == "")
     {
         ShowMessagePrompt("Enter Patient Name", "");
         return;
     }
     ShowMessagePrompt("", "");
     SaveRecord();
     GLOBAL.SaveDB();
     //NextRecord();
     ShowMessagePrompt("Record save successfully", "S");
     ENABLE_DISABLE_CONTROLS(false);
 }
Exemple #3
0
 private void MdiMain_FormClosing(object sender, FormClosingEventArgs e)
 {
     GLOBAL.SaveDB();
 }