Esempio n. 1
0
 private void btnCustSearch_Click(object sender, EventArgs e)
 {
     try
     {
         API api = new API();
         if (api.Login(txtUserName.Text, txtPass.Text).Rows.Count > 0)
         {
             Home       home       = new Home();
             AddPawnFrm addPawnFrm = new AddPawnFrm();
             home.ClearOldFrm();
             home.ShowNewFrm(addPawnFrm);
             home.ClearActiveMenu();
             home.ActiveMenu(home.btnMenuAddNewPawn);
             home.MenuPanel.Visible = true;
         }
         else
         {
             MessageBox.Show("Username Or Password is Wrong");
         }
     }
     catch
     {
         MessageBox.Show("please setting server name");
     }
 }
Esempio n. 2
0
        private void btnMenuAddNewPawn_Click(object sender, EventArgs e)
        {
            AddPawnFrm addPawnFrm = new AddPawnFrm();

            ClearOldFrm();
            ShowNewFrm(addPawnFrm);
            ClearActiveMenu();
            ActiveMenu(btnMenuAddNewPawn);
            print_panel.Visible = false;
            Program.Pawn_id     = "";
        }
Esempio n. 3
0
        public void btnOk_Click(object sender, EventArgs e)
        {
            AddPawnFrm addPawnFrm = new AddPawnFrm();

            addPawnFrm.PicImg.Image = (Bitmap)pictureBox2.Image.Clone();

            returnPictureBox = pictureBox2;


            videoSource.Stop();
            this.Close();
        }
Esempio n. 4
0
 private void Login()
 {
     try
     {
         API api = new API();
         if (api.Login(txtUserName.Text, txtPass.Text).Rows.Count > 0)
         {
             AddPawnFrm addPawnFrm = new AddPawnFrm();
             ShowNewFrm(addPawnFrm);
             ClearActiveMenu();
             ActiveMenu(btnMenuAddNewPawn);
             MenuPanel.Visible = true;
             panLogin.Visible  = false;
         }
         else
         {
             MessageBox.Show("Username Or Password is Wrong");
         }
     }
     catch
     {
         MessageBox.Show("please setting server name");
     }
 }