private void BtnPrinterApply_OnClick(object sender, RoutedEventArgs e) { if (txtKitPrinter.Text.Trim().Length == 0 || txtBarPrinter.Text.Trim().Length == 0 || txtReceptionPrinter.Text.Trim().Length == 0) { MessageBox.Show("Please input all Printer Name that required here!"); return; } if (chbShowReviewWin.IsChecked == true) { ReadWriteData.WritePrinterSetting(txtReceptionPrinter.Text + "," + txtKitPrinter.Text + "," + txtBarPrinter.Text + "," + "1"); } else { ReadWriteData.WritePrinterSetting(txtReceptionPrinter.Text + "," + txtKitPrinter.Text + "," + txtBarPrinter.Text + "," + "0"); } btnPrinterApply.Background = Brushes.Orange; }