private void BTN_DELETE_Click(object sender, RoutedEventArgs e) { string a = " Delete from Customer where Cus_ID = '" + CMB_UPDATE.Text + "'"; int line = db.save_update_delete(a); if (line == 1) { MessageBox.Show("Data delete Successfully", "Information", MessageBoxButton.OK, MessageBoxImage.Information); } else { MessageBox.Show("Data cannot delete", "error", MessageBoxButton.OK, MessageBoxImage.Error); } CMB_UPDATE.Items.Clear(); TXT_FIRSTNAME.Clear(); TXT_LASTNAME.Clear(); TXT_ADDRESS.Clear(); TXT_LICENNUM.Clear(); TXT_NIC.Clear(); IMG_UPDATECUS.Source = null; }
private void clearAll() { LBL_SUPPLIER_ID.Text = "N/A"; TXT_SUPPLIER_NAME.Clear(); TXT_COMPANY_NAME.Clear(); TXT_ADDRESS.Clear(); TXT_CONTACT_01.Clear(); TXT_CONTACT_02.Clear(); TXT_NOTE.Clear(); }
private void BTN_CLEAR_Click(object sender, RoutedEventArgs e) { CMB_UPDATE.ItemsSource = null; CMB_UPDATE.Items.Clear(); TXT_FIRSTNAME.Clear(); TXT_LASTNAME.Clear(); TXT_ADDRESS.Clear(); TXT_LICENNUM.Clear(); TXT_NIC.Clear(); IMG_UPDATECUS.Source = null; }
private void ClearAll() { TXT_ADDRESS.Clear(); TXT_AGENT_NAME.Clear(); TXT_COMPANY_CONTACT_NO.Clear(); TXT_COMPANY_NAME.Clear(); TXT_COM_RATE.Clear(); TXT_CONTACT_NO.Clear(); TXT_DESCRIPTION.Clear(); LBL_AGENT_ID.Text = "N/A"; BTN_SAVE.Text = "SAVE"; }
private void CLEAR_ALL() { LBL_GUEST.Text = "N/A"; TXT_ID_NUMBER.Clear(); TXT_FNAME.Clear(); TXT_LNAME.Clear(); CMB_GENDER.SelectedIndex = -1; CMB_COUNTRY.SelectedIndex = -1; TXT_MOBILENO.Text = "0"; TXT_PASSPORT.Clear(); TXT_ADDRESS.Clear(); TXT_EMAIL.Clear(); }