Example #1
0
        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");
            }
        }
Example #2
0
 public ChangeSide(RollExam form, string selectedSide)
 {
     InitializeComponent();
     parentForm = form;
     if (!string.IsNullOrEmpty(selectedSide))
     {
         lbSide.Text = selectedSide;
     }
 }
Example #3
0
 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;
 }
Example #4
0
 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;
     }
 }
Example #5
0
 public ConfirmQueuedRoll(RollExam form)
 {
     InitializeComponent();
     parentForm = form;
 }
 public SearchExamRollLog(RollExam form)
 {
     InitializeComponent();
     parentForm = form;
 }
Example #7
0
 public ChangeNextRoll(RollExam form)
 {
     InitializeComponent();
     this.parentForm = form;
 }