private async void DeviceAddedEventHandler(DeviceAddedOrEditedEventArgs args) { _addDeviceView.Close(); await UpdateData(); _eventAggregator.GetEvent <DeviceAddedOrEditedEvent>().Unsubscribe(DeviceAddedEventHandler); }
private async void UserAddedEventHandler(object obj) { await UpdateData(); _addUserView.Close(); _addUserView = null; _eventAggregator.GetEvent <UserAddOrEditEvent>().Unsubscribe(UserAddedEventHandler); }
private async void SendResponseHandler(SendResponseEventArgs obj) { _sendResponseView.Close(); _sendResponseView = null; await UpdateData(); _eventAggregator.GetEvent <SendResponseEvent>().Unsubscribe(SendResponseHandler); }
Result IExternalApplication.OnShutdown(UIControlledApplication application) { if (shellForm != null) { shellForm.Close(); shellForm = null; } return(Result.Succeeded); }
private void OnCancelCommand(object obj) { shellView.Close(); }