private void Button_Click(object sender, RoutedEventArgs e) { if ("".Equals(txbNewCustomerType.Text) || "".Equals(txbNewSurcharge.Text)) { MessageBox.Show("Vui lòng điền đầy đủ thông tin!"); } else { if (CustomerType.UpdateCustomerType(txbNewCustomerType.Text, System.Convert.ToDouble(txbNewSurcharge.Text), txbNewNote.Text, customerType.Type)) { MessageBox.Show("Cập nhật thành công!"); this.Close(); } else { MessageBox.Show("Cập nhật không thành công! Vui lòng kiểm tra lại thông tin! (Loại khách hàng và phụ thu không được trùng với loại khách hàng và phụ thu đã có)"); } } }