示例#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);
        }
示例#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);
 }
示例#3
0
文件: MdiMain.cs 项目: Mumtaz-hub/Lab
 private void MdiMain_FormClosing(object sender, FormClosingEventArgs e)
 {
     GLOBAL.SaveDB();
 }