Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/18/08 17:18:26 (16 years ago)
Author:
aleitner
Message:

Refactoring Tab-order, renaming (#380)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Server.Console/HiveServerConsole.cs

    r1030 r1037  
    4242    public HiveServerConsole() {
    4343      InitializeComponent();
    44       tbUserName.Text = "Anita";
    45       tbPwd.Text = "Anita";
    46       tbIp.Text = "10.20.53.1";
    47       tbPort.Text = "9000";
    4844    }
    4945
     
    5854    /// <param name="sender"></param>
    5955    /// <param name="e"></param>
    60     private void btnLogin_Click(object sender, EventArgs e) {
     56    private void BtnLogin_Click(object sender, EventArgs e) {
    6157      string newIp = tbIp.Text;
    6258      newIp = newIp.Replace(" ", "");
     
    6561        ServiceLocator.Port = this.tbPort.Text;
    6662
    67         if (isValid()) {
     63        if (IsValid()) {
    6864          this.Visible = false;
    6965          information = new HiveServerManagementConsole();
    70           information.closeFormEvent += new closeForm(enableForm);
     66          information.closeFormEvent += new closeForm(EnableForm);
    7167          information.Show();
    7268        }
     
    7470
    7571
    76     private bool isValid() {
     72    private bool IsValid() {
    7773      if ((tbUserName.Text != "") &&
    7874          (tbPwd.Text != "") &&
     
    111107    }
    112108
    113     private void enableForm(bool cf, bool error) {
     109    private void EnableForm(bool cf, bool error) {
    114110      if (cf) {
    115111        this.Visible = true;
     
    119115      }
    120116    }
    121 
    122     string md5sum(byte[] FileOrText) { //Output: String<-> Input: Byte[]
    123       return BitConverter.ToString(new
    124          MD5CryptoServiceProvider().ComputeHash(FileOrText)).Replace("-", "").ToLower();
    125     }
    126 
    127117  }
    128118}
Note: See TracChangeset for help on using the changeset viewer.