private void Failure(TrackerErrorType error, string message)
        {
            try
            {
                this.AccessControl.WaitOne();
                this.Errors.Add(new TrackerError(error, message));
            }
            finally
            {
                this.AccessControl.ReleaseMutex();
            }

            waiter.ProcessComplete();
        }
 public TrackerError(TrackerErrorType type, string message)
     : base(message)
 {
     this.ErrorType = type;
 }
        private void OnError(TrackerErrorType error, string message)
        {
            this.InvokeEx(() => MessageBox.Show(message));

            if (error == TrackerErrorType.InstanceDoesNotExist)
            {
                this.Owner.RemoveTab(this);
            }
            else
            {
                Console.WriteLine(message);
                this.SetButtonStates();
            }
        }
 private void OnSaveError(TrackerErrorType type, string message)
 {
     this.InvokeEx(() =>
     {
         // This is a hack, deal with it.
         this.ErrorOnSave = true;
         MessageBox.Show(message);
     });
 }
 private void OnSearchError(TrackerErrorType error, string message)
 {
     this.InvokeEx(() => MessageBox.Show("Error, could not refresh task list: " + message, "Refresh Error"));
     if (this.Owner != null)
         this.Owner.SetStatusMessage(message);
     this.SearchBinding.EnableControls();
 }
        private void OnError(TrackerErrorType error, string message)
        {
            this.ResultsText.InvokeEx(() => this.ResultsText.Text = message);
            this.StatusLabel.InvokeEx(() => this.StatusLabel.Text = "Error");

            this.EndProcess();
        }
 private void OnError(TrackerErrorType error, string message)
 {
     if (this.Error != null)
         this.Error(error, message);
 }