private void UserDialog_Closing(object sender, MaterialDesignThemes.Wpf.DialogClosingEventArgs eventArgs) { string command = (string)eventArgs.Parameter; switch (command) { case "reset": txtAmount1.Text = ""; txtAmount2.Text = ""; Date1.Date = ""; Date2.Date = ""; Date1.Clear(); Date2.Clear(); txtInfo.Text = ""; cmbUsers.SelectedIndex = -1; rdCard.IsChecked = rdCash.IsChecked = rdCheque.IsChecked = rdPos.IsChecked = false; RefreshGrid(); break; case "confirm": RefreshGrid(); break; case "cancel": Dynamics.LastEscapeTime = DateTime.Now; break; default: break; } }
private void UserDialog_Closing(object sender, MaterialDesignThemes.Wpf.DialogClosingEventArgs eventArgs) { string command = (string)eventArgs.Parameter; switch (command) { case "reset": txtName.Text = ""; Date1.Date = ""; Date2.Date = ""; Date1.Clear(); Date2.Clear(); Time1.Text = ""; Time2.Text = ""; InRadioButton.IsChecked = OutRadioButton.IsChecked = false; RefreshGrid(); break; case "confirm": RefreshGrid(); break; case "cancel": Dynamics.LastEscapeTime = DateTime.Now; break; default: break; } }
private void UserDialog_Closing(object sender, MaterialDesignThemes.Wpf.DialogClosingEventArgs eventArgs) { string command = (string)eventArgs.Parameter; switch (command) { case "reset": Date1.Date = ""; Date2.Date = ""; Date1.Clear(); Date2.Clear(); LoadBarChartData(); break; case "confirm": LoadBarChartData(); break; case "cancel": Dynamics.LastEscapeTime = DateTime.Now; break; default: break; } }