Queue.Administrator.EditAdministratorForm.saveButton_Click C# (CSharp) Method

saveButton_Click() private method

private saveButton_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private async void saveButton_Click(object sender, EventArgs e)
        {
            try
            {
                saveButton.Enabled = false;

                using (var channel = UserChannelManager.CreateChannel())
                {
                    Administrator = await taskPool.AddTask(channel.Service.EditAdministrator(administrator));
                }

                if (Saved != null)
                {
                    Saved(this, EventArgs.Empty);
                }
            }
            catch (OperationCanceledException) { }
            catch (CommunicationObjectAbortedException) { }
            catch (ObjectDisposedException) { }
            catch (InvalidOperationException) { }
            catch (FaultException exception)
            {
                UIHelper.Warning(exception.Reason.ToString());
            }
            catch (Exception exception)
            {
                UIHelper.Warning(exception.Message);
            }
            finally
            {
                saveButton.Enabled = true;
            }
        }