private void слайдШоуToolStripMenuItem_Click(object sender, EventArgs e) { Form8 f = new Form8(); f.Icon = this.Icon; f.BackColor = this.BackColor; f.Text = "Слайд шоу"; f.Show(); this.Hide(); }
private async void btns_Click(object sender, EventArgs e) { WindowsFormsApplication1.Resources.ProductDB product = new WindowsFormsApplication1.Resources.ProductDB(); var Pcount = await product.get_allproduct(); int index = (int)(sender as Button).Tag; if (Pcount[index].Count != 0 && Pcount[index].OwnerEmail != mail) { Form8 f8 = new Form8(index, this, mail); f8.Show(); } }
private void button1_Click(object sender, EventArgs e) { if (checkBox4.Checked & checkBox6.Checked) { MessageBox.Show("正解!!"); Form8 fome8 = new Form8(); fome8.Show(); this.Close(); } else { MessageBox.Show("不正解"); } }
private void button7_Click(object sender, EventArgs e) { f2.oleDbConnection1.Open(); OleDbCommand cmd = new OleDbCommand("Update vendor set vstatus='InActive' where vid ='" + textBox12.Text + "'", f2.oleDbConnection1); cmd.ExecuteNonQuery(); MessageBox.Show("Vendor Has not been Approved"); f2.oleDbConnection1.Close(); Form8 f8 = new Form8(); f8.Show(); this.Hide(); }
private void button1_Click(object sender, EventArgs e) { if (textBox1.Text.Length >= 15) { MessageBox.Show("So long word !!"); } else { secret = textBox1.Text; secword = secret.ToLower(); this.Hide(); Form8 f8 = new Form8(); f8.Show(); } }
private void button7_Click(object sender, EventArgs e) { MySqlConnection con = new MySqlConnection("server=localhost;user id=root;persistsecurityinfo=True;database=voteme;Password =jaishriRAM0385"); MySqlCommand cmd = new MySqlCommand("select status from registration where Enrollment='" + textBox1.Text + "'", con); cmd.CommandType = CommandType.Text; // cmd.Parameters.AddWithValue("@UserId", textBox1.Text); // cmd.Parameters.AddWithValue("@Password", textBox2.Text); //Form2 obj2 = new Form2(); // obj2.id = textBox1.Text; con.Open(); MySqlDataReader dr = cmd.ExecuteReader(); if (dr.Read()) { MySqlConnection mysqlconn = new MySqlConnection(); mysqlconn.ConnectionString = ("server=localhost;userid=root;password=jaishriRAM0385;database=VoteMe"); mysqlconn.Open(); MySqlCommand cmd2 = new MySqlCommand(); cmd2.Connection = mysqlconn; cmd2.CommandType = CommandType.Text; cmd2.CommandText = "update registration set status='Approved' where Enrollment='" + textBox1.Text + "'"; //cmd.Parameters.AddWithValue("@Enroll", textBox1.Text); cmd2.ExecuteNonQuery(); MessageBox.Show("Sucesfully Validated"); Form8 obj1 = new Form8(); obj1.Show(); this.Hide(); //obj1.id = textBox1.Text; } else { MessageBox.Show("Enrollment is Invalid"); Form8 obj1 = new Form8(); obj1.Show(); this.Hide(); } con.Close(); }
private void button1_Click_1(object sender, EventArgs e) { student s1 = new student(); s1.loadfile(); s1.string_edit(); string X = textBox1.Text; string y = textBox2.Text; if (X == "admin" && y == "admin") { this.Hide(); Form8 m = new Form8(); m.Show(); } else { MessageBox.Show("Invalid username or password,Please check and try again !"); } }
private void button1_Click(object sender, EventArgs e) { string num = textBox1.Text; if (num == "") { MessageBox.Show("Veuillez donner le numéro du sinistre"); return; } bool r = checklogin(num); if (r) { Form8 f8 = new Form8(); this.Hide(); f8.Show(); } else { MessageBox.Show("Vérifiez vos paramètres"); } }
private void showForm8ToolStripMenuItem_Click(object sender, EventArgs e) { Form8 objektForm8 = new Form8(); objektForm8.Show(); }
private void button1_Click_1(object sender, EventArgs e) { Form8 yeni = new Form8(); yeni.Show(); }
private void buttonReturn_Click(object sender, EventArgs e) { f8.Show(); this.Close(); }
private void button7_Click(object sender, EventArgs e) { Form8 f8 = new Form8(); f8.Show(); }
private void label6_Click(object sender, EventArgs e) { Form8 f8 = new Form8(); f8.Show(); }
private void 管他那么多直接删除肥肉DToolStripMenuItem_Click(object sender, EventArgs e) { Form Form8 = new Form8(); Form8.Show(); }
private void button1_Click(object sender, EventArgs e) { this.Visible = false; Form8 connectionMode = new Form8(); connectionMode.Show(); }
private void компанииToolStripMenuItem_Click(object sender, EventArgs e) { Form f8 = new Form8(); f8.Show(); }
private void tabelaEShumToolStripMenuItem_Click(object sender, EventArgs e) { Form8 form8 = new Form8(); form8.Show(); }
private void listadoDeTécnicosToolStripMenuItem_Click(object sender, EventArgs e) { Form8 form8 = new Form8(); form8.MdiParent = this; form8.Show(); }
private void button1_Click(object sender, EventArgs e) { //If form 8 is null if (f8 == null) { //Instantiate form 8 f8 = new Form8(); } //Show the new Form 8 instance f8.Show(); //Set Form 8's Form 5 variable as this instance f8.f5 = f5; //Pass the content of both text boxes as well as the workshop session and time to form 8's variables f8.returnText1.Text = f5.textBox1.Text; f8.returnText2.Text = f5.textBox2.Text; //Set Form 8's label 5 text value as the workshop session f8.label5.Text = this.f5.workshopSession; //Set Form 8's laben 7 text value as the workshop time f8.label7.Text = this.f5.workshopTime; //Clear both text boxes aof all content f5.textBox1.Text = ""; f5.textBox2.Text = ""; //Enable all buttons in form 5 again f5.button1.Enabled = true; f5.button2.Enabled = true; f5.button3.Enabled = true; f5.button4.Enabled = true; f5.button5.Enabled = true; f5.button6.Enabled = true; f5.button7.Enabled = true; f5.button8.Enabled = true; f5.button9.Enabled = true; f5.button10.Enabled = true; f5.button11.Enabled = true; f5.button12.Enabled = true; f5.button13.Enabled = true; f5.button14.Enabled = true; f5.button15.Enabled = true; f5.button16.Enabled = true; f5.button17.Enabled = true; f5.button18.Enabled = true; f5.button19.Enabled = true; f5.button20.Enabled = true; f5.button21.Enabled = true; f5.button22.Enabled = true; f5.button23.Enabled = true; f5.button24.Enabled = true; f5.button25.Enabled = true; f5.button26.Enabled = true; f5.button29.Enabled = true; f5.button30.Enabled = true; f5.button31.Enabled = true; f5.button32.Enabled = true; f5.button33.Enabled = true; f5.button34.Enabled = true; f5.button35.Enabled = true; f5.button36.Enabled = true; f5.button37.Enabled = true; f5.button38.Enabled = true; f5.button39.Enabled = true; f5.button40.Enabled = true; f5.button41.Enabled = true; f5.button42.Enabled = true; f5.button43.Enabled = true; f5.button44.Enabled = true; f5.button45.Enabled = true; f5.button46.Enabled = true; f5.button47.Enabled = true; f5.button48.Enabled = true; f5.button49.Enabled = true; f5.button50.Enabled = true; //Hide this form this.Hide(); //Hide form 5 f5.Hide(); }
public void Afisare_Forma(string Text_Forma, Form frn, string Close_or_Hide) { Form f = new Form(); switch (Text_Forma) { case "MENIU": f = new Form1(); f.Show(); Verifica_daca_Close_sau_Hide(Close_or_Hide, frn); break; case "LECTII": f = new Form2(); f.Show(); Verifica_daca_Close_sau_Hide(Close_or_Hide, frn); break; case "CONGRUENTA INTRODUCERE1": f = new Form3(); f.Show(); Verifica_daca_Close_sau_Hide(Close_or_Hide, frn); break; case "CONGRUENTA INTRODUCERE2": f = new Form4(); f.Show(); Verifica_daca_Close_sau_Hide(Close_or_Hide, frn); break; case "CONGRUENTA INTRODUCERE3": f = new Form5(); f.Show(); Verifica_daca_Close_sau_Hide(Close_or_Hide, frn); break; case "CONGRUENTA CAZURI1": f = new Form6(); f.Show(); Verifica_daca_Close_sau_Hide(Close_or_Hide, frn); break; case "CONGRUENTA CAZURI2": f = new Form7(); f.Show(); Verifica_daca_Close_sau_Hide(Close_or_Hide, frn); break; case "CONGRUENTA CAZURI3": f = new Form8(); f.Show(); Verifica_daca_Close_sau_Hide(Close_or_Hide, frn); break; case "CONGRUENTA CAZURI4": f = new Form9(); f.Show(); Verifica_daca_Close_sau_Hide(Close_or_Hide, frn); break; case "CONGRUENTA CAZURI5": f = new Form10(); f.Show(); Verifica_daca_Close_sau_Hide(Close_or_Hide, frn); break; case "CONGRUENTA CAZURI6": f = new Form11(); f.Show(); Verifica_daca_Close_sau_Hide(Close_or_Hide, frn); break; case "CONGRUENTA DREPTUNGHICE": f = new Form12(); f.Show(); Verifica_daca_Close_sau_Hide(Close_or_Hide, frn); break; case "TESTE": f = new Form16(); f.Show(); Verifica_daca_Close_sau_Hide(Close_or_Hide, frn); break; case "TEST USOR": f = new Test_Usor_Pagina_1(); f.Show(); Verifica_daca_Close_sau_Hide(Close_or_Hide, frn); break; case "TEST MEDIU": f = new Test_Mediu(); f.Show(); Verifica_daca_Close_sau_Hide(Close_or_Hide, frn); break; case "TEST GREU": f = new Test_Greu(); f.Show(); Verifica_daca_Close_sau_Hide(Close_or_Hide, frn); break; } }
private void Form3_KeyDown(object sender, KeyEventArgs e) { /** * form31:uav * form32:car */ //大坝位移超标事件数据传输 if (e.Modifiers == Keys.Control && e.KeyCode == Keys.E) { this.setType("uav"); if (this.isRunning2()) { this.stopProcess2(); } else { this.startProcess2(); } //调用数据传输程序 Process m_Process = new Process(); m_Process.StartInfo.FileName = @".\exe\ERSSky\bind\ERSSky.exe"; m_Process.Start(); //睡眠一段时间 Thread.Sleep(10000); //关闭进程 Process[] proc = Process.GetProcessesByName("ERSSky"); for (int i = 0; i < proc.Length; i++) { proc[i].Kill(); //逐个结束进程. } } //"Ctrl + I"显示或隐藏数据传输链路 else if (e.Modifiers == Keys.Control && e.KeyCode == Keys.I) { //绘制数据传输链路 this.userControl11.DrawLink(); } //大坝位移超标事件数据处理 else if (e.Modifiers == Keys.Control && e.KeyCode == Keys.F) { this.setType("uav"); if (this.isRunning3()) { this.stopProcess3(); } else { this.startProcess3(); } if (form8.getClosed()) { form8 = new Form8(); form8.setForm3(this); if (!form8.Visible) { form8.Show(); } } else { form8.setForm3(this); if (!form8.Visible) { form8.Show(); } } } //水质污染超标事件数据传输 else if (e.Modifiers == Keys.Control && e.KeyCode == Keys.NumPad6) { this.setType("car"); if (this.isRunning2()) { this.stopProcess2(); } else { this.startProcess2(); } } //水质污染超标事件数据传输链路 else if (e.Modifiers == Keys.Control && e.KeyCode == Keys.NumPad3) { userControl11.AddSensorNetwork(); } else if (e.Modifiers == Keys.Control && e.KeyCode == Keys.NumPad7) { this.setType("car"); //数据传输 if (this.isRunning2()) { this.stopProcess2(); } else { this.startProcess2(); } //数据处理 if (this.isRunning3()) { this.stopProcess3(); } else { this.startProcess3(); } if (form8.getClosed()) { form8 = new Form8(); form8.setForm3(this); if (!form8.Visible) { form8.Show(); } } else { form8.setForm3(this); if (!form8.Visible) { form8.Show(); } } } }
private void depositMoneyToolStripMenuItem_Click(object sender, EventArgs e) { Form8 f8 = new Form8(); f8.Show(); }
private void button9_pClick(object sender, EventArgs e) { Form8 frm = new Form8(); frm.Show(); }
// Load Music File List private void button21_Click(object sender, EventArgs e) { if (soundON == false) { Form8 soundList = new Form8(); soundList.Show(this); soundON = true; } }