private void BTN_SAVE_Click(object sender, EventArgs e) { if (TXT_SUPPLIER_NAME.Text.Length == 0) { TXT_SUPPLIER_NAME.Focus(); MSGBOX mdg = new MSGBOX(MessageAlertHeder.Warning(), "PLEASE ENTER SUPPLIER NAME", MessageAlertImage.Warning()); mdg.ShowDialog(); } else if (BTN_SAVE.Text == "SAVE") { SAVE_SUPPLIER(); LOAD_SUPPLIER_lIST(); BTN_SAVE.Text = "SAVE"; BTN_NEW.Focus(); clearAll(); } else if (BTN_SAVE.Text == "UPDATE") { UPDATE_SUPPLIERS_DATA(); LOAD_SUPPLIER_lIST(); BTN_NEW.Focus(); BTN_SAVE.Text = "SAVE"; clearAll(); } }
private void BTN_NEW_Click(object sender, EventArgs e) { clearAll(); TXT_SUPPLIER_NAME.Focus(); BTN_SAVE.Text = "SAVE"; }
private void SUPPLIER_Load(object sender, EventArgs e) { LOAD_SUPPLIER_lIST(); TXT_SUPPLIER_NAME.Focus(); }