Free cookie consent management tool by TermsFeed Policy Generator

Changeset 1028


Ignore:
Timestamp:
12/18/08 15:27:26 (16 years ago)
Author:
whackl
Message:

added some error messages (#397)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Client.Console/HiveClientConsole.cs

    r1027 r1028  
    179179        tbIPAdress.Text = curConnection.IPAdress;
    180180        tbPort.Text = curConnection.Port.ToString();
     181      } else {
     182               refreshTimer.Stop();
     183        DialogResult res = MessageBox.Show("Connection Error, check if Hive Client is running! - " + e.Error.Message, "Connection Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     184        if (res == DialogResult.OK)
     185          this.Close();
    181186      }
    182187    }
     
    227232          lbCs.Text = String.Empty;
    228233        }
     234      } else {
     235        refreshTimer.Stop();
     236        DialogResult res = MessageBox.Show("Connection Error, check if Hive Client is running! - " + e.Error.Message, "Connection Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     237        if (res == DialogResult.OK)
     238          this.Close();
    229239      }
    230240    }
Note: See TracChangeset for help on using the changeset viewer.