- Timestamp:
- 12/18/08 17:18:26 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Server.Console/HiveServerConsole.cs
r1030 r1037 42 42 public HiveServerConsole() { 43 43 InitializeComponent(); 44 tbUserName.Text = "Anita";45 tbPwd.Text = "Anita";46 tbIp.Text = "10.20.53.1";47 tbPort.Text = "9000";48 44 } 49 45 … … 58 54 /// <param name="sender"></param> 59 55 /// <param name="e"></param> 60 private void btnLogin_Click(object sender, EventArgs e) {56 private void BtnLogin_Click(object sender, EventArgs e) { 61 57 string newIp = tbIp.Text; 62 58 newIp = newIp.Replace(" ", ""); … … 65 61 ServiceLocator.Port = this.tbPort.Text; 66 62 67 if ( isValid()) {63 if (IsValid()) { 68 64 this.Visible = false; 69 65 information = new HiveServerManagementConsole(); 70 information.closeFormEvent += new closeForm( enableForm);66 information.closeFormEvent += new closeForm(EnableForm); 71 67 information.Show(); 72 68 } … … 74 70 75 71 76 private bool isValid() {72 private bool IsValid() { 77 73 if ((tbUserName.Text != "") && 78 74 (tbPwd.Text != "") && … … 111 107 } 112 108 113 private void enableForm(bool cf, bool error) {109 private void EnableForm(bool cf, bool error) { 114 110 if (cf) { 115 111 this.Visible = true; … … 119 115 } 120 116 } 121 122 string md5sum(byte[] FileOrText) { //Output: String<-> Input: Byte[]123 return BitConverter.ToString(new124 MD5CryptoServiceProvider().ComputeHash(FileOrText)).Replace("-", "").ToLower();125 }126 127 117 } 128 118 }
Note: See TracChangeset
for help on using the changeset viewer.