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"); } }
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 = ""; }
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(); }
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"); } }