Example #1
0
        private void saveButton_Click(object sender, RoutedEventArgs e)
        {
            if (ValidateGL())
            {
                //if (_viewModel.AddGLCommand.CanExecute(null))
                //{
                //    RaiseCanExecuteChanged();
                //}
                //else
                //{
                //    RaiseNoCanExecuteChanged();

                //}
                //NavStateTrue();
                GLDataForm.CommitEdit();
                _viewModel.Save();
                var manager = new RadDesktopAlertManager(AlertScreenPosition.TopCenter);

                var alert = new RadDesktopAlert
                {
                    FlowDirection = FlowDirection.RightToLeft,
                    Header        = "اطلاعات",
                    Content       = "اطلاعات با موفقیت ثبت شد",
                    ShowDuration  = 2000,
                };
                manager.ShowAlert(alert);
            }// _viewModel.SaveCommand
        }
Example #2
0
 private void CancelButton_Click(object sender, RoutedEventArgs e)
 {
     OnCanceling();
     if (_dialogResult == true)
     {
         if (GLDataForm != null)
         {
             GLDataForm.CancelEdit();
             _viewModel.Reject();
         }
         // GLDataForm.BeginEdit();
     }
 }
Example #3
0
 private void PreviousButton_Click(object sender, RoutedEventArgs e)
 {
     GLDataForm.MoveCurrentToPrevious();
 }
Example #4
0
 private void NextButton_Click(object sender, RoutedEventArgs e)
 {
     GLDataForm.MoveCurrentToNext();
 }