コード例 #1
0
        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;
            }
        }
コード例 #2
0
ファイル: PassageReport.xaml.cs プロジェクト: tahsildari/Gym2
        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;
            }
        }
コード例 #3
0
        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;
            }
        }