Example #1
0
        private async void DeviceAddedEventHandler(DeviceAddedOrEditedEventArgs args)
        {
            _addDeviceView.Close();
            await UpdateData();

            _eventAggregator.GetEvent <DeviceAddedOrEditedEvent>().Unsubscribe(DeviceAddedEventHandler);
        }
Example #2
0
        private async void UserAddedEventHandler(object obj)
        {
            await UpdateData();

            _addUserView.Close();
            _addUserView = null;
            _eventAggregator.GetEvent <UserAddOrEditEvent>().Unsubscribe(UserAddedEventHandler);
        }
Example #3
0
        private async void SendResponseHandler(SendResponseEventArgs obj)
        {
            _sendResponseView.Close();
            _sendResponseView = null;

            await UpdateData();

            _eventAggregator.GetEvent <SendResponseEvent>().Unsubscribe(SendResponseHandler);
        }
Example #4
0
        Result IExternalApplication.OnShutdown(UIControlledApplication application)
        {
            if (shellForm != null)
            {
                shellForm.Close();
                shellForm = null;
            }


            return(Result.Succeeded);
        }
Example #5
0
 private void OnCancelCommand(object obj)
 {
     shellView.Close();
 }