Пример #1
0
 private void OnSave(object parameters)
 {
     try
     {
         ShellConfigManager.SaveChanges(SelectedModule);
         MessageBoxService.Info(this, $"The changes of Module {SelectedModule.Name} had been saved.");
         StatusService.SetStatus($"Saved the changes of {SelectedModule?.Name}");
     }
     catch (Exception ex)
     {
         Logger.Exception(ex);
         MessageBoxService.Alert(this, ex.Message);
     }
 }
Пример #2
0
        private void OnSave(object parameter)
        {
            ShellOptionService.TabStripPlacement = SelectedTabPlacement;
            ShellOptionService.Theme             = SelectedTheme.Name;
            ShellOptionService.WindowStyle       = SelectedStyle;

            ShellOptionService.SaveSetting();

            MessageBoxService.Info(this, "The changes had been saved.", dialogCallback: rs =>
            {
                if ((parameter as string)?.EqualsIgnoreCase("Close") == true)
                {
                    Close();
                }
            });
        }
 private void ShowInfo()
 {
     this.ShowBusy("The info dialog is showing...");
     MessageBoxService.Info(this, "this is info dialog for fun.", "Info AAA");
 }
 public void AddNewData()
 {
     MessageBoxService.Info(this, "Add New data");
 }
Пример #5
0
 private void NotifyClicked()
 {
     MessageBoxService.Info(this, "This is a Information box.", "Information",
                            rs1 => MessageBoxService.Alert(this, "This is a Alert box.", "Alert",
                                                           rs2 => MessageBoxService.Confirm(this, "this is Confirmation box.")));
 }