示例#1
0
 private void GateInOutToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (isloggedin)
     {
         Gatecheckin Gatei = new Gatecheckin();
         Gatei.MdiParent = this;
         Gatei.Show();
     }
     else
     {
         ShowLogin();
     }
 }
示例#2
0
        private void BtSubmit_Click(object sender, EventArgs e)
        {
            Gatecheckin record = new Gatecheckin();

            var      Firstname      = TBFirstname.Text;
            var      Lastname       = TBlastname.Text;
            var      License        = TbLicense.Text;
            var      Carmodel       = CBVehicleType.SelectedValue;
            var      purposeOfvisit = CBPurpose.SelectedValue;
            var      itemde         = CbItemstodeclare.SelectedValue;
            Boolean  Checkin        = Rbcheckin.Checked;
            DateTime Checkindate    = DateTime.Now;



            if (String.IsNullOrEmpty(Lastname) || String.IsNullOrEmpty(License))
            {
                MessageBox.Show("Please do not leave the Lastname or License empty");
            }
            else
            {
                MessageBox.Show("Wasnt that easy");
            }
        }