private void CloseSave(object parameter) { if (!isError) { // If there is no error textBoxText is an int, -> no exception checking Result = Int32.Parse(textBoxText); dlgService.CloseDialog(this, true); } }
void Settings_Saved(object sender, EventArgs e) { IsModelScreen = true; _dialogService.CloseDialog(LOGIN_DLG); _model.Settings.Saved -= Settings_Saved; Module.Refresh(); }
/// <summary> /// Closes the dialog and save the parameters to file. /// </summary> private void SaveAndClose() { //save settings ConfigManager.SaveSection <OptionsModel>(m_Model); //close the dialog m_DialogService.CloseDialog(this); }
private void OnUpdateListMessageReceived(UpdateListMessage obj) { LoadData(); FilterDataGrid(); if (obj.CloseScreen == true) { dialogService.CloseDialog(); } }
protected override void OnIsSelectedChanged() { if (IsSelected) { Messenger.Default.Send(new HookFindMessage(_findCommand)); } else { _dialogService.CloseDialog(_findViewModel); Messenger.Default.Send(new HookFindMessage(null)); } }
/// <summary> /// Fired when a command is received from the start button /// </summary> private async void OnStartButtonClick() { ShowProgressDialog(); ListBox.Add("Starting demo!"); string result = await mAsyncDemoHelper.DoStuffAsync(); ListBox.Add(result); Application.Current.Dispatcher.Invoke(() => { mProgressDialogService.CloseDialog(); }); }
private async void DoRetrieveOpeningDetail() { _dialogService = Mvx.Resolve <IDialogService>(); var dialog = await _dialogService.showLoadingDialog("Loading. . ."); try { Detail = await _openingService.RetrieveOpeningDetail(FileName); } catch (Exception ex) { Debug.WriteLine($"Error Opening Detail - {ex.Message}"); } finally { _dialogService.CloseDialog(dialog); } }
private async void DoRetrieveOpeningsList() { _dialogService = Mvx.Resolve <IDialogService>(); var dialog = await _dialogService.showLoadingDialog("Loading. . ."); try { Openings = await _openingService.RetrieveAllOpenings(); FilteredOpenings = Openings; } catch (Exception ex) { Debug.WriteLine(ex.Message); } finally { _dialogService.CloseDialog(dialog); } }
private void OnUpdateListMessageReceived(UpdateListMessage obj) { LoadData(); _dialogService.CloseDialog(); }
private void OnUpdateEmployeeListMessageReceived(object recipient, UpdateEmployeeListMessage message) { LoadEmployeeData(); dialogService.CloseDialog(); }
/// <summary> /// Closes the dialog assocated with the view model. /// </summary> private void CloseDialog() { m_DialogService.CloseDialog(this, DialogResult.Success); }
private void CloseNoSave(object parameter) { DoCloseNoSave(parameter); dlgService.CloseDialog(this, false); }