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