private void button2_Click(object sender, EventArgs e) { ActiveForm.Hide(); overview overview = new overview(); overview.ShowDialog(); }
public Form1() { InitializeComponent(); // передвижение формы #region Передвижение формы int move = 0, moveX = 0, moveY = 0; panel_Top.MouseDown += (s, e) => { move = 1; moveX = e.X; moveY = e.Y; }; panel_Top.MouseMove += (s, e) => { if (move == 1) { SetDesktopLocation(MousePosition.X - moveX, MousePosition.Y - moveY); } }; panel_Top.MouseUp += (s, e) => { move = 0; }; #endregion btn_Close.Click += (s, e) => { Close(); }; txtPassword.TextChanged += (s, e) => { txtPassword.UseSystemPasswordChar = true; }; btn_showPass.MouseDown += (s, e) => { txtPassword.UseSystemPasswordChar = false; }; btn_showPass.MouseUp += (s, e) => { txtPassword.UseSystemPasswordChar = true; }; linkLabel1.Click += (s, e) => { ActiveForm.Hide(); Form2 MyForm2 = new Form2(); MyForm2.ShowDialog(); Close(); }; btn_login.Click += (s, e) => { ActiveForm.Hide(); Form3 form3 = new Form3(); form3.ShowDialog(); Close(); }; }
private void button3_Click(object sender, EventArgs e) { ActiveForm.Hide(); Меню_марафона mm = new Меню_марафона(); mm.Show(); }
private void button3_Click(object sender, EventArgs e) { ActiveForm.Hide(); menu test = new menu(); test.ShowDialog(); }
private void button3_Click(object sender, EventArgs e) { string Login = log.Text; string Password = pass.Text; ConnectDatabase db = new ConnectDatabase(); DataTable table = new DataTable(); MySqlDataAdapter adapter = new MySqlDataAdapter(); MySqlCommand command = new MySqlCommand("SELECT * FROM `visitors` WHERE `login` = @login AND `password` = @password", db.GetConnection()); command.Parameters.Add("@login", MySqlDbType.VarChar).Value = Login; command.Parameters.Add("@password", MySqlDbType.VarChar).Value = Password; adapter.SelectCommand = command; adapter.Fill(table); MySqlDataAdapter users = new MySqlDataAdapter($"Select role From visitors", db.GetConnection()); role = Convert.ToString(table.Rows[0][5]); if (table.Rows.Count > 0) { ActiveForm.Hide(); cookStartFormAfterRegistrationOrAuthorization csForm = new cookStartFormAfterRegistrationOrAuthorization(); csForm.Show(); } else { MessageBox.Show("No"); } ActiveForm.Hide(); userAR usstfrm = new userAR(); usstfrm.Show(); }
private void pictureBox1_Click(object sender, EventArgs e) { PanelWindow child = new PanelWindow(); ActiveForm.Hide(); child.Show(); }
private void button4_Click(object sender, EventArgs e) { ActiveForm.Hide(); Длиетльность_марафона dl = new Длиетльность_марафона(); dl.Show(); }
private void button4_Click(object sender, EventArgs e) { ActiveForm.Hide(); MainMenu mm = new MainMenu(); mm.Show(); }
//Get details button Form1 private void update_Click_1(object sender, EventArgs e) { int f = c.get_details(textBox1); if (f == 2 || f == 0) { MessageBoxButtons buttons = MessageBoxButtons.OK; MessageBox.Show("Please enter a valid Booking ID", "Booking ID error", buttons, MessageBoxIcon.Exclamation); using (StreamWriter w = File.AppendText("log.txt")) { c.Log("Please Enter a valid Booking ID", w); } using (StreamReader r = File.OpenText("log.txt")) { c.DumpLog(r); } } else if (f == 1) { ActiveForm.Hide(); Update_Details form = new Update_Details(textBox1.Text.ToLower()); form.Show(); } }
private void button1_Click(object sender, EventArgs e) { ActiveForm.Hide(); О_марафоне about = new О_марафоне(); about.Show(); }
private void btnLogin_Click(object sender, EventArgs e)// admin panel giriş kontrolü { if (!string.IsNullOrEmpty(txtUserAdmin.Text) && !string.IsNullOrEmpty(txtPassAdmin.Text)) { if (adminDal.LoginControl(txtUserAdmin.Text, long.Parse(txtPassAdmin.Text)) == true)//adminDal nesnesinden gelen sonuca göre işlenir { ActiveForm.Hide(); AdminUI adminUı = new AdminUI(); adminUı.Show(); } else { MessageBox.Show("Kullanıcı Adı veya Şifre Yanlış", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Error); txtUserAdmin.Clear(); txtPassAdmin.Clear(); txtFocus(); } } else { ErrorProvider errorProvider = new ErrorProvider(); errorProvider.SetError(txtUserAdmin, "Lütfen Boş Alan Bırakmayın"); errorProvider.SetError(txtPassAdmin, "Lütfen Boş Alan Bırakmayın"); } }
private void FormAddFaculty_FormClosing(object sender, FormClosingEventArgs e) { ActiveForm.Hide(); MainForm f = new MainForm(); f.Show(); }
private void pictureBox5_Click(object sender, EventArgs e) { ViewExaminations child = new ViewExaminations(); ActiveForm.Hide(); child.Show(); }
private void pictureBoxBack_Click(object sender, EventArgs e) { SystemWin child = new SystemWin(); ActiveForm.Hide(); child.Show(); }
private void button5_Click(object sender, EventArgs e) { ActiveForm.Hide(); Благотворительные_организации borg = new Благотворительные_организации(); borg.Show(); }
private void button1_Click(object sender, EventArgs e) { FrmMainPg fmp = new FrmMainPg(username); ActiveForm.Hide(); fmp.Show(); }
public static void home() { Home h = new Home(); ActiveForm.Hide(); h.Show(); }
private void button9_Click(object sender, EventArgs e) { ActiveForm.Hide(); Form menu = new Menu(); menu.ShowDialog(); }
private void Button1_Click(object sender, EventArgs e) { ActiveForm.Hide(); ImportVolouteers reg = new ImportVolouteers(); reg.ShowDialog(); Close(); }
private void Button4_Click(object sender, EventArgs e) { ActiveForm.Hide(); AdministratorMenu reg = new AdministratorMenu(); reg.ShowDialog(); Close(); }
private void Button5_Click(object sender, EventArgs e) { ActiveForm.Hide(); MainScreen reg = new MainScreen(); reg.ShowDialog(); Close(); }
private void btnlvl2_Click(object sender, EventArgs e) { FrmEnter fls = new FrmEnter(); ActiveForm.Hide(); fls.Show(); fls.Size = new Size(798, 545); }
private void BtnBack_Click(object sender, EventArgs e) { ActiveForm.Hide(); FormAbout about = new FormAbout(); about.ShowDialog(); Close(); }
private void Button6_Click(object sender, EventArgs e) { ActiveForm.Hide(); MyRaceResults reg = new MyRaceResults(); reg.ShowDialog(); Close(); }
private void Button7_Click(object sender, EventArgs e) { ActiveForm.Hide(); MySponsorship reg = new MySponsorship(); reg.ShowDialog(); Close(); }
private void Button3_Click(object sender, EventArgs e) { ActiveForm.Hide(); EditRunnerProfile reg = new EditRunnerProfile(); reg.ShowDialog(); Close(); }
private void Button2_Click(object sender, EventArgs e) { ActiveForm.Hide(); Form5 reg = new Form5(); reg.ShowDialog(); Close(); }
// переход на стартовую форму private void Btn_logOut_Click(object sender, EventArgs e) { ActiveForm.Hide(); FormStart formStart = new FormStart(); formStart.ShowDialog(); Close(); }
// переход на форму Меню бегуна private void SwitchFormMenu() { ActiveForm.Hide(); FormMenuRunner formMenuRunner = new FormMenuRunner(); formMenuRunner.ShowDialog(); Close(); }
// назад в главное окно Системы private void btn_back_Click(object sender, EventArgs e) { ActiveForm.Hide(); Form1 home = new Form1(); home.ShowDialog(); Close(); }