public static void Configurar(string maquinas) #pragma warning restore IDE0060 // Remove unused parameter { using var frmConfig = new FormConfig(); frmConfig.ShowDialog(); }
private void bntSubmit_Click(object sender, EventArgs e) { String userId = this.txtUserID.Text; String password = this.txtPassword.Text; this.Hide(); // Make web service call if the login is ok then show configuration box config = new FormConfig(); config.ShowDialog(); this.Show(); }
public static void testFile() { if (Directory.Exists(ClassConstantes.Table.InitialDirectory) == true) { } else { FormConfig frm = new FormConfig(); frm.ShowDialog(); } }
/// <summary> /// Event handler for button submit /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private async void bntSubmit_Click(object sender, EventArgs e) { try { this.bntSubmit.Hide(); if (this.txtUserID.TextLength == 0) { this.txtUserID.Focus(); } if (this.txtPassword.TextLength == 0) { this.txtPassword.Focus(); } //Added to upper to convert all the characters into uppercase String sessionId = await restProxy.DoLogin(this.txtUserID.Text.ToUpper() + ":" + this.txtPassword.Text); Console.WriteLine("sessionId: " + sessionId); switch (sessionId) { case BLANK: case GENERIC_ERROR: Alert(Properties.Resources.ERR_LOGIN_EXCEPTION); this.bntSubmit.Show(); return; case CREDENTIALS_ERROR: Alert(Properties.Resources.ERR_LOGIN_FAIL); this.bntSubmit.Show(); return; default: break; } this.Hide(); config = new FormConfig(sessionId); config.ShowDialog(this); } catch (Exception ex) { LogException(ex); } this.Close(); }
public static void testFile() { if (Directory.Exists(ClassConstantes.Table.InitialDirectory) == true) { } else { Directory.CreateDirectory(ClassConstantes.Table.InitialDirectory); } if (File.Exists(ClassConstantes.Table.chemin) == true) { //connec = File.ReadAllText("C:\\cheminBdCredit\\monChemin.txt"); } else { FormConfig frm = new FormConfig(); frm.ShowDialog(); } }
private void btnSetting_Click(object sender, EventArgs e) { FormConfig form = new FormConfig(); form.ShowDialog(); }
private void configToolStripMenuItem_Click(object sender, EventArgs e) { FormConfig configForm = new FormConfig(); configForm.ShowDialog(this); }
private void buttonConfig_Click(object sender, EventArgs e) { FormConfig frm = new FormConfig(); frm.ShowDialog(this); }
private void empresaToolStripMenuItem_Click(object sender, EventArgs e) { FormConfig frmConfig = new FormConfig(); frmConfig.ShowDialog(); }
public override void OnButtonPress() { var config = new FormConfig(); config.ShowDialog(); }
private void btnBug_Click(object sender, EventArgs e) { FormConfig FConfig = new FormConfig(); FConfig.ShowDialog(); }