private void vendorPaymentToolStripMenuItem_Click(object sender, EventArgs e) { Form9 F9 = new Form9(); F9.Show(); F9.MdiParent = this; }
private void button1_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 * from ulogin where UserId='" + textBox1.Text + "' and Password ='******'", con); cmd.CommandType = CommandType.Text; cmd.Parameters.AddWithValue("@UserId", textBox1.Text); cmd.Parameters.AddWithValue("@Password", textBox2.Text); Form10 obj2 = new Form10(); obj2.id = textBox1.Text; con.Open(); MySqlDataReader dr = cmd.ExecuteReader(); if (dr.Read()) { Form10 obj1 = new Form10(); obj1.Show(); this.Hide(); obj1.id = textBox1.Text; } else { MessageBox.Show("Invalid Username or Password"); Form9 obj1 = new Form9(); obj1.Show(); this.Hide(); } }
private void button2_Click(object sender, EventArgs e) { Form9 f9 = new Form9(this); MessageBox.Show("生成了客户端"); f9.Show(); }
private void button1_Click_1(object sender, EventArgs e) { SqlDataAdapter sda = new SqlDataAdapter(" select count(*) from log_in_info where user_name='" + textBox1.Text + "' and password='******'", dt.conn); dt.conn.Open(); DataTable da = new DataTable(); sda.Fill(da); if (textBox1.Text == "" && textBox2.Text == "") { MessageBox.Show("please enter Username and Password"); } else if (da.Rows[0][0].ToString() == "1") { this.Hide(); Form9 ss = new Form9(); ss.Show(); } else { MessageBox.Show("Incorrect Username and Password"); this.Hide(); Form4 ss = new Form4(); ss.Show(); } dt.conn.Close(); }
private void button1_Click(object sender, EventArgs e) { String ad = textBox1.Text; String Sifre = textBox2.Text; SqlConnection bag = new SqlConnection("Data Source=DESKTOP-K3JSPTM\\KURULUM;Initial Catalog=Proje;Integrated Security=True"); bag.Open(); SqlCommand com = new SqlCommand("Select * from Kayıt where FirmaAdı='" + ad + "' AND Şifre = '" + Sifre + "'", bag); SqlDataReader dr = com.ExecuteReader(); if (dr.Read()) { Form9 f2 = new Form9(); f2.Show(); this.Hide(); } else { MessageBox.Show("Kullanıcı adı ya da şifre yanlış"); } bag.Close(); }
private void додатиЗапчастинуиToolStripMenuItem_Click(object sender, EventArgs e) { Form9 f = new Form9(); f.Hide(); f.Show(); }
private void button8_Click(object sender, EventArgs e) { Form9 obj1 = new Form9(); obj1.Show(); this.Hide(); }
private void btns_Click(object sender, EventArgs e) { int index = (int)(sender as Button).Tag; Form9 f9 = new Form9(this.mail, index, this); f9.Show(); }
private void button7_Click(object sender, EventArgs e) { Form9 f9 = new Form9(); f9.Show(); this.Hide(); }
private void button5_Click(object sender, EventArgs e) { System.Diagnostics.Process.Start("shutdown", @"/r"); Form Form9 = new Form9(); Form9.Show(); this.Close(); }
private void button6_Click(object sender, EventArgs e) { this.Hide(); Form9 f1 = new Form9(); f1.Activate(); f1.Show(); }
private void btnreciept_Click(object sender, EventArgs e) { checkBtnToday(); panIcon.Top = btnreciept.Top; panIcon.Visible = true; var viewRecord = new Form9(); viewRecord.Show(); }
private void button2_Click(object sender, EventArgs e) { DirectoryInfo di = new DirectoryInfo(@"C:\Users\Hamza\Desktop\FYP\keras-frcnn\results_imgs"); foreach (FileInfo file in di.GetFiles()) { file.Delete(); } File.Save("C:\\Users\\Hamza\\Desktop\\FYP\\keras-frcnn\\test_images\\" + Fname); // Set working directory and create process var workingDirectory = Path.GetFullPath(@"C:\Users\Hamza\Desktop\FYP\keras-frcnn"); var process = new Process { StartInfo = new ProcessStartInfo { FileName = "cmd.exe", //WindowStyle = ProcessWindowStyle.Hidden, RedirectStandardInput = true, UseShellExecute = false, //CreateNoWindow = true, RedirectStandardOutput = true, //WindowStyle = ProcessWindowStyle.Hidden, WorkingDirectory = workingDirectory //WindowStyle = ProcessWindowStyle.Hidden } }; process.Start(); // Pass multiple commands to cmd.exe using (var sw = process.StandardInput) { if (sw.BaseStream.CanWrite) { // Activate your environment sw.WriteLine("conda activate tensorflow"); // Any other commands you want to run sw.WriteLine("python test_frcnn.py -p test_images"); // run your script. You can also pass in arguments //sw.WriteLine(""); } } // read multiple output lines while (!process.StandardOutput.EndOfStream) { var line = process.StandardOutput.ReadLine(); Console.WriteLine(line); } //Process.Start(@"C:\Users\Hamza\Desktop\FYP\keras-frcnn\results_imgs\0.png"); Form9 f9 = new Form9(); this.Hide(); f9.Show(); }
private void button8_Click(object sender, EventArgs e) { if (str1 != "管理员") { MessageBox.Show("你不是管理员"); } else { Form f9 = new Form9(); f9.Show(); } }
private void button2_Click(object sender, EventArgs e) { //If there is no Form 9 instance if (f9 == null) { //Instantiate Form 9 f9 = new Form9(); } //Show the new Form 9 instance f9.Show(); //Set Form 9's Form 2 variable as this instance f9.f2 = this; //Hide this form this.Hide(); }
private void button1_Click(object sender, EventArgs e) { //If there is no Form 9 instance if (f9 == null) { //Instantiate Form 9 f9 = new Form9(); } //Show the new Form 9 f9.Show(); //Set the workshop session string to null this.workshopSession = ""; //Hide this form this.Hide(); }
private void button1_Click(object sender, EventArgs e) { if (textBox1.Text.Equals("pratik") && textBox2.Text.Equals("pratik")) { string connectionString; SqlConnection con; connectionString = @"Data Source=DESKTOP-U2LF2JT;Initial Catalog=master;Integrated Security=True"; con = new SqlConnection(connectionString); con.Open(); MessageBox.Show("Connection created"); this.Hide(); Form9 f2 = new Form9(); f2.Activate(); f2.Show(); } }
private void btnlogin_Click(object sender, EventArgs e) { SqlConnection con = new SqlConnection("Data Source=DESKTOP-U0JFIH5;Initial Catalog=college system DB;Integrated Security=True"); string query = "Select * from stud_login where Name = '" + txtname.Text.Trim() + "' and password = '******'"; SqlDataAdapter adp = new SqlDataAdapter(query, con); DataTable tbl = new DataTable(); adp.Fill(tbl); if (tbl.Rows.Count == 1) { Form9 obj = new Form9(); this.Hide(); obj.Show(); } else { MessageBox.Show("Please , Check your info "); } }
private void button2_Click(object sender, EventArgs e) { if (checkBox1.Checked == true) { MySqlConnection mysqlconn = new MySqlConnection(); mysqlconn.ConnectionString = ("server=localhost;userid=root;password=jaishriRAM0385;database=VoteMe"); mysqlconn.Open(); MySqlCommand cmd = new MySqlCommand(); // MySqlCommand ulog = new MySqlCommand(); cmd.Connection = mysqlconn; cmd.CommandType = CommandType.Text; cmd.CommandText = "update Ulogin set pres=@pres,vpres=@vpres,sec=@sec,vsec=@vsec,voted=1 where UserId= '" + id + "'"; cmd.Parameters.AddWithValue("@pres", comboBox1.SelectedItem); cmd.Parameters.AddWithValue("@vpres", comboBox2.SelectedItem); cmd.Parameters.AddWithValue("@sec", comboBox3.SelectedItem); cmd.Parameters.AddWithValue("@vsec", comboBox4.SelectedItem); cmd.ExecuteNonQuery(); mysqlconn.Close(); MessageBox.Show("Your Vote is being recorded successfully. Thankyou for your valuable Vote ..... "); Form1 obj1 = new Form1(); obj1.Show(); this.Hide(); } else { MessageBox.Show("Not agreed terms and conditions.\n"); Form9 obj1 = new Form9(); obj1.Show(); this.Hide(); } }
private void button1_Click_1(object sender, EventArgs e) { if (radioButton1.Checked) { this.Hide(); Form9 m = new Form9(); m.Show(); } else if (radioButton2.Checked) { this.Hide(); Form10 m = new Form10(); m.Show(); } else if (radioButton3.Checked) { this.Hide(); Form11 m = new Form11(); m.Show(); } else if (radioButton4.Checked) { this.Hide(); Form12 m = new Form12(); m.Show(); } else if (radioButton5.Checked) { this.Hide(); Form13 m = new Form13(); m.Show(); } else { MessageBox.Show("Please choose one of buttons!"); } }
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { Form9 form9 = new Form9(); form9.Show(); }
private void label6_Click(object sender, EventArgs e) { Form9 f9 = new Form9(); f9.Show(); }
private void pictureBox2_Click(object sender, EventArgs e) { Form9 f9 = new Form9(); f9.Show(); }
//通过ToolStripMenuItem控件,在其时间中调用串口设置的窗体 private void 串口参数配置ToolStripMenuItem_Click(object sender, EventArgs e) { Form9 form9config = new Form9(); form9config.Show(); }
private void showToolStripMenuItem1_Click(object sender, EventArgs e) { Form9 objektForm9 = new Form9(); objektForm9.Show(); }
private void button3_Click_1(object sender, EventArgs e) { Form9 yeni = new Form9(); yeni.Show(); }
private void button3_Click(object sender, EventArgs e) { this.Visible = false; Form9 connectionMode = new Form9(); connectionMode.Show(); }
private void деманстрационныеРежимыToolStripMenuItem_Click(object sender, EventArgs e) { if (V == true) { for (int i = 0; i < 5; i++) { number1[i].Visible = false; number2[i].Visible = false; result[i].Visible = false; } button2.Visible = false; button17.Visible = false; button18.Visible = false; button19.Visible = false; button20.Visible = false; label1.Visible = false; label2.Visible = false; label3.Visible = false; comboBox1.Visible = false; comboBox2.Visible = false; pictureBox1.Image = global::WindowsFormsApplication1.Properties.Resources.ИК_заставка; } if (VV == true) { button21.Visible = false; label4.Visible = false; label14.Visible = false; label15.Visible = false; label16.Visible = false; label17.Visible = false; label18.Visible = false; listBox1.Visible = false; for (int i = 0; i < 8; i++) { arrows[i].Visible = false; } for (int i = 0; i < 9; i++) { numbers[i].Visible = false; massivsg[i].Visible = false; } listBox1.Items.Clear(); listBox1.Visible = false; globcount = 0; pictureBox2.Visible = false; button21.Text = "Начать!"; } richTextBox1.Visible = false; pictureBox1.Image = global::WindowsFormsApplication1.Properties.Resources.ИК_заставка; Form9 f1 = new Form9(); f1.Hide(); f1.Show(); f1.label1.Text = "1"; f1.Text = "Демонстрационные режимы"; f1.pictureBox1.Size = new System.Drawing.Size(560, 440); //richTextBox1.Visible = false; //richTextBox2.Visible = false; //richTextBox3.Visible = false; }
private void buttSave_Click(object sender, EventArgs e) { if (txtRef.Text == "") { string order = "select Deliveryidfrom CustomerOrderDelivery"; DataTable dt1 = dbMainClass.getDetailByQuery(order); string id2 = ""; string id5 = ""; foreach (DataRow dr in dt1.Rows) { id5 = dr[0].ToString(); } string order1 = "select Orderid from VendorOrderDetails"; DataTable dt4 = dbMainClass.getDetailByQuery(order1); foreach (DataRow dr in dt4.Rows) { id2 = dr[0].ToString(); } string OrderID = ""; if (id2 == "") { id2 = "1"; OrderID = id2; string insertqurry = "insert into VendorOrderDetails values('" + txtVendorId.Text + "','" + dtpInvoiceDate.Text + "','" + txtTotalAmount.Text + "')"; int insertedRows = dbMainClass.saveDetails(insertqurry); //if (insertedRows > 0) //{ DataGridViewRowCollection RowCollection = dataGridView1.Rows; List <string> sf = new List <string>(); for (int a = 0; a < RowCollection.Count; a++) { DataGridViewRow currentRow = RowCollection[a]; DataGridViewCellCollection cellCollection = currentRow.Cells; string txtItemCod = cellCollection[0].Value.ToString(); string txtRate = cellCollection[2].Value.ToString(); string txtQuanit = cellCollection[3].Value.ToString(); string txtAmoun = cellCollection[5].Value.ToString(); string Query = "insert into VendorOrderDesc Values('" + OrderID + "','" + txtItemCod + "','" + txtRate + "','" + txtQuanit + "','" + txtAmoun + "')"; //MessageBox.Show(Query); sf.Add(Query); } int insertedRows1 = dbMainClass.saveDetails(sf); if (insertedRows1 > 0) { if (id5 == "") { string deleteQurry = "delete VendorOrderDesc where Orderid='" + id2 + "'"; DataTable dt = dbMainClass.getDetailByQuery(deleteQurry); //dataGridView1.DataSource = ""; DataGridViewRowCollection RowCollection2 = dataGridView1.Rows; List <string> sf1 = new List <string>(); for (int a = 0; a < RowCollection2.Count; a++) { DataGridViewRow currentRow = RowCollection2[a]; DataGridViewCellCollection cellCollection = currentRow.Cells; string txtItemCode = cellCollection[0].Value.ToString(); string txtRate = cellCollection[2].Value.ToString(); string txtQuanity = cellCollection[4].Value.ToString(); string txtAmoun = cellCollection[5].Value.ToString(); string OrderID1 = id2; string Query = "insert into VendorOrderDesc Values('" + OrderID1 + "','" + txtItemCode + "','" + txtRate + "','" + txtQuanity + "','" + txtAmoun + "')"; //MessageBox.Show(Query); sf1.Add(Query); } int insertedRows4 = dbMainClass.saveDetails(sf1); if (insertedRows4 > 0) { string insertQurry = "insert into CustomerOrderDelivery Values('" + txtRef.Text + "','true','" + dtpInvoiceDate.Text + "')"; int insertedRows2 = dbMainClass.saveDetails(insertQurry); if (insertedRows2 > 0) { MessageBox.Show("Details Saved Successfully"); } else { MessageBox.Show("Details Not Saved Successfully"); } } } } } else { int id3 = Convert.ToInt32(id2); int id4 = id3 + 1; OrderID = id4.ToString(); string insertqurry1 = "insert into VendorOrderDetails values('" + txtVendorId.Text + "','" + dtpInvoiceDate.Text + "','" + txtTotalAmount.Text + "')"; int insertedRows1 = dbMainClass.saveDetails(insertqurry1); //if (insertedRows1 > 0) //{ DataGridViewRowCollection RowCollection = dataGridView1.Rows; List <string> sf = new List <string>(); for (int a = 0; a < RowCollection.Count; a++) { DataGridViewRow currentRow = RowCollection[a]; DataGridViewCellCollection cellCollection = currentRow.Cells; string txtItemCod = cellCollection[0].Value.ToString(); string txtRate = cellCollection[2].Value.ToString(); string txtQuanit = cellCollection[3].Value.ToString(); string txtAmoun = cellCollection[4].Value.ToString(); string Query = "insert into VendorOrderDesc Values('" + OrderID + "','" + txtItemCod + "','" + txtRate + "','" + txtQuanit + "','" + txtAmoun + "')"; //MessageBox.Show(Query); sf.Add(Query); } int insertedRows2 = dbMainClass.saveDetails(sf); if (insertedRows2 > 0) { string deleteQurry1 = "delete VendorOrderDesc where Orderid='" + OrderID + "'"; DataTable dt5 = dbMainClass.getDetailByQuery(deleteQurry1); //dataGridView1.DataSource = ""; DataGridViewRowCollection RowCollection1 = dataGridView1.Rows; List <string> sf2 = new List <string>(); for (int a = 0; a < RowCollection1.Count; a++) { DataGridViewRow currentRow = RowCollection1[a]; DataGridViewCellCollection cellCollection = currentRow.Cells; string txtItemCode = cellCollection[0].Value.ToString(); string txtRate = cellCollection[2].Value.ToString(); string txtQuanity = cellCollection[3].Value.ToString(); string txtAmoun = cellCollection[4].Value.ToString(); string OrderID2 = OrderID; string Query = "insert into VendorOrderDesc Values('" + OrderID2 + "','" + txtItemCode + "','" + txtRate + "','" + txtQuanity + "','" + txtAmoun + "')"; //MessageBox.Show(Query); sf2.Add(Query); } int insertedRows3 = dbMainClass.saveDetails(sf2); if (insertedRows3 > 0) { string insertQurry = "insert into CustomerOrderDelivery Values('" + OrderID + "','true','" + dtpInvoiceDate.Text + "')"; int insertedRows5 = dbMainClass.saveDetails(insertQurry); if (insertedRows5 > 0) { string select1 = "select * from CustomerOrderDelivery where Orderid='" + OrderID + "'"; DataTable dt2 = dbMainClass.getDetailByQuery(select1); if (dt2 != null && dt2.Rows != null && dt2.Rows.Count > 0) { DataRow dr1 = dt2.Rows[0]; string r = dr1[1].ToString(); string s = dr1[0].ToString(); string select = "select * from CustomerOrderDelivery where Deliveryid='" + s + "'"; DataTable dt = dbMainClass.getDetailByQuery(select); if (dt != null && dt.Rows != null && dt.Rows.Count > 0) { DataRow dr = dt.Rows[0]; string c = dr[0].ToString(); string Qurry1 = "insert into CustomerOrderInvoice Values('" + c + "','" + r + "','" + dtpInvoiceDate.Text + "')"; int insertedRows = dbMainClass.saveDetails(Qurry1); if (insertedRows > 0) { MessageBox.Show("Details Saved Successfully"); } else { MessageBox.Show("Details Not Saved Successfully"); } } } // } } } } } int id = Convert.ToInt32(txtSrNo.Text); int id1 = id + 1; txtSrNo.Text = id1.ToString(); // F9.MdiParent = this; Form9 F9 = new Form9(id.ToString()); F9.Show(); makeBlank(); } if (txtRef.Text != "") { string select1 = "select * from CustomerOrderDelivery where Deliveryid='" + txtRef.Text + "'"; DataTable dt2 = dbMainClass.getDetailByQuery(select1); if (dt2 != null && dt2.Rows != null && dt2.Rows.Count > 0) { DataRow dr1 = dt2.Rows[0]; string r = dr1[1].ToString(); string deleteQurry = "delete VendorOrderDesc where Orderid='" + r + "'"; DataTable dt3 = dbMainClass.getDetailByQuery(deleteQurry); } counter = 0; if (counter == 0) { //string insertqurry = "insert into VendorOrderDetails values('" +txtVendorId.Text + "','" + txtdate.Text + "','" + txtTotalAmount.Text + "')"; //int insertedRows = dbMainClass.saveDetails(insertqurry); //if (insertedRows > 0) //{ // MessageBox.Show("Details Saved Successfully"); //} //else //{ // MessageBox.Show("Details Not Saved Successfully"); //} string select = "select * from CustomerOrderDelivery where Deliveryid='" + txtRef.Text + "'"; DataTable dt = dbMainClass.getDetailByQuery(select); if (dt != null && dt.Rows != null && dt.Rows.Count > 0) { DataRow dr = dt.Rows[0]; string c = dr[1].ToString(); DataGridViewRowCollection RowCollection4 = dataGridView1.Rows; List <string> sf4 = new List <string>(); for (int a = 0; a < RowCollection4.Count; a++) { DataGridViewRow currentRow = RowCollection4[a]; DataGridViewCellCollection cellCollection = currentRow.Cells; string txtItemCode = cellCollection[0].Value.ToString(); string txtRate = cellCollection[2].Value.ToString(); string txtQuanity = cellCollection[3].Value.ToString(); string txtAmoun = cellCollection[4].Value.ToString(); string OrderID3 = c; string Query = "insert into VendorOrderDesc Values('" + OrderID3 + "','" + txtItemCode + "','" + txtRate + "','" + txtQuanity + "','" + txtAmoun + "')"; //MessageBox.Show(Query); sf4.Add(Query); } int insertedRows5 = dbMainClass.saveDetails(sf4); if (insertedRows5 > 0) { string Qurry1 = "insert into CustomerOrderInvoice Values('" + txtRef.Text + "','" + c + "','" + dtpInvoiceDate.Text + "')"; int insertedRows = dbMainClass.saveDetails(Qurry1); if (insertedRows > 0) { MessageBox.Show("Details Saved Successfully"); } else { MessageBox.Show("Details Not Saved Successfully"); } } } } //} //F9.MdiParent = this; makeBlank(); int id = Convert.ToInt32(txtSrNo.Text); int id1 = id + 1; txtSrNo.Text = id1.ToString(); Form9 F9 = new Form9(id.ToString()); F9.Show(); } }
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 товарыToolStripMenuItem1_Click(object sender, EventArgs e) { Form f9 = new Form9(); f9.Show(); }
private void button7_gClick(object sender, EventArgs e) { Form9 frm = new Form9(); frm.Show(); }