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

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

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

            await UpdateData();

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


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