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); }
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); }
private void MdiMain_FormClosing(object sender, FormClosingEventArgs e) { GLOBAL.SaveDB(); }