private void Form11_Load(object sender, EventArgs e) { string str1 = ""; str1 = textBox1.Text; Form10 f = new Form10(); f.Show(); }
private void changePropertiesToolStripMenuItem2_Click(object sender, EventArgs e) { Form10 f10 = new Form10(); f10.Tag = this.Tag.ToString(); f10.label19.Visible = true; f10.comboBox1.Visible = true; f10.button3.Visible = true; f10.ShowDialog(); }
private void addShopToolStripMenuItem_Click(object sender, EventArgs e) { Form10 f10 = new Form10(); f10.Tag = this.Tag.ToString(); f10.label19.Visible = false; f10.comboBox1.Visible = false; f10.button3.Visible = false; f10.ShowDialog(); }
private void button4_Click(object sender, EventArgs e) { if (MessageBox.Show("Are you already inform your course validate?", "My Application", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { Form Application = new Form10(); Application.Show(); } else { Form a = new Form11(); a.Show(); } }
private void button4_Click(object sender, EventArgs e) { if (fu == null) { Form10 fr2 = new Form10(); fr2.Show(); MessageBox.Show("您已成功进入----用户管理!"); } else { fr.TopLevel = true; } }
private void button2_Click(object sender, EventArgs e) // confitm button { try { DataClasses1DataContext dbCon = new DataClasses1DataContext(); customer cr = new customer(); cr.name = nameTxt.Text; cr.password = Convert.ToInt32(passwordTxt.Text); cr.phone = phoneTxt.Text; cr.Address = addressTxt.Text; cr.date = Convert.ToDateTime(dateTimePickerTxt.Text); cr.roomNumber = Convert.ToInt32(roomIdTxt.Text); RoomTB rm = dbCon.RoomTBs.SingleOrDefault(x => x.roomNumber == Convert.ToInt32(roomIdTxt.Text)); if (rm != null) { balance = Convert.ToDouble(rm.price); // traking room price if (MessageBox.Show("Are you want to confirm Room with price : " + balance + " ?", "BookingConfirmation", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { dbCon.customers.InsertOnSubmit(cr); dbCon.SubmitChanges(); this.Hide(); Form10 f10 = new Form10(); f10.Show(); transection tn = new transection(); // transection entry tn.customerId = cr.customerId; tn.balance = balance; dbCon.transections.InsertOnSubmit(tn); dbCon.SubmitChanges(); record rd = new record(); // record entry rd.customerId = cr.customerId; rd.roomId = Convert.ToInt32(cr.roomNumber); rd.date = cr.date; cId = cr.customerId; // traking customerId dbCon.records.InsertOnSubmit(rd); dbCon.SubmitChanges(); // MessageBox.Show("Data added to record"); } } else { MessageBox.Show("There is no room in this content"); } } catch (Exception ex) { MessageBox.Show("Data aren't insert correctly", "Error Message", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
protected void AplicarIdioma(Form1 principal, Form2 alumno, Form10 profesor, Form4 busqueda, Form6 acerca, Form12 informacion, Preferencias preferencias, Forms.Form_Idioma idioma) { }
private void search_Click(object sender, EventArgs e) { Form10 form10 = new Form10(activeWorker); form10.ShowDialog(); }
private void button20_Click(object sender, EventArgs e) { Form10 f10 = new Form10(new DBWork.dbReader("1004228")); }
private void button18_Click(object sender, EventArgs e) { Conn.SQLDA.SelectCommand.CommandText = "select IDOldAbonement from Readers..Main where NumberReader = "+ ReaderRecord.id; DataSet DS = new DataSet(); Conn.SQLDA.Fill(DS, "iswas"); if (!(bool)DS.Tables["iswas"].Rows[0][0]) { Form10 f10 = new Form10(ReaderRecord); f10.ShowDialog(); } }
public bool OldBase(DBWork.dbReader rdr) { Conn.SQLDA.SelectCommand.CommandText = "select IDOldAbonement from Readers..Main where NumberReader = " + rdr.id; DataSet DS = new DataSet(); Conn.SQLDA.Fill(DS, "iswas"); bool d = (bool)DS.Tables["iswas"].Rows[0][0]; if (!d) { Form10 f10 = new Form10(rdr); if (f10.canShow) { f10.ShowDialog(); button4_Click(button4, new EventArgs()); } else { button4_Click(button4, new EventArgs()); } return true; } else { return false; } }