示例#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();
 }