private void btnSubmit_Click(object sender, EventArgs e) { if (txtLoginID.Text.Trim() == string.Empty) { MessageBox.Show("Please enter user id"); return; } if (txtPassword.Text.Trim() == string.Empty) { MessageBox.Show("Please enter password"); } BOUsers boUsers = new BOUsers(System.Configuration.ConfigurationManager.AppSettings["ConnectionString"].ToString()); DC_User user = boUsers.AuthenticateUser(txtLoginID.Text.Trim(), txtPassword.Text.Trim()); if (user != null) { AppContext.Login(user); RollExam examForm = new RollExam(this); examForm.Show(); this.Hide(); } else { MessageBox.Show("Record not found"); } }
public ChangeSide(RollExam form, string selectedSide) { InitializeComponent(); parentForm = form; if (!string.IsNullOrEmpty(selectedSide)) { lbSide.Text = selectedSide; } }
public ConnectMU(SerialPort sp, string prefix, string side, RollExam frm) { InitializeComponent(); serialPort = sp; boTransmitLogs = new BOTransmitLogs(frm.ConnectionString); boExamRollLogs = new BOExamRollLogs(frm.ConnectionString); Prefix = prefix; Side = side; frmRollExam = frm; }
public ChangeAction(RollExam form, string selectedAction, List <DC_ActionMaster> actionList) { InitializeComponent(); parentForm = form; lbAction.DataSource = actionList; lbAction.DisplayMember = "ActionDesc"; lbAction.ValueMember = "ActionID"; if (!string.IsNullOrEmpty(selectedAction)) { lbAction.SelectedValue = selectedAction; } }
public ConfirmQueuedRoll(RollExam form) { InitializeComponent(); parentForm = form; }
public SearchExamRollLog(RollExam form) { InitializeComponent(); parentForm = form; }
public ChangeNextRoll(RollExam form) { InitializeComponent(); this.parentForm = form; }