private void button1_Click(object sender, EventArgs e) { if (txt_Rate.Text.Trim() != "" || txt_Rate.Text.Trim() != string.Empty) { if (txt_GST.Text.Trim() != "" || txt_GST.Text.Trim() != string.Empty) { _common.ChangeRate(cmb_Category.Text, cmb_SubCategory.Text, cmb_Size.Text, txt_Rate.Text, txt_GST.Text); MessageBox.Show("Updated Succesfully"); } else { MessageBox.Show("Rate and GST Cannot be Blank"); } } else { MessageBox.Show("Rate and GST Cannot be Blank"); } }
private void btn_Change_Click(object sender, EventArgs e) { if (txt_NewRate.Text != "" || txt_NewRate.Text != string.Empty) { if (txt_NewGST.Text != "" || txt_NewGST.Text != string.Empty) { _common.ChangeRate(cmb_Category.Text, cmb_SubCategory.Text, cmb_size.Text, txt_NewRate.Text, txt_NewGST.Text); MessageBox.Show("Updated Succesfully"); clear(); } else { MessageBox.Show("Rate and GST Cannot be Blank"); } } else { MessageBox.Show("Rate and GST Cannot be Blank"); } }