Пример #1
0
        private void barButtonItem14_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Form10 frm = new Form10();

            frm.MdiParent = this;
            frm.Show();
        }
Пример #2
0
        private void pictureBox4_Click(object sender, EventArgs e)
        {
            Form10 page4 = new Form10();

            page4.Show();
            this.Hide();
        }
        private void sONUÇLARToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form10 f10 = new Form10();

            this.Hide();
            f10.Show();
        }
Пример #4
0
        private void dEĞERLENDİRMEToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form10 f10 = new Form10();

            this.Hide();
            f10.Show();
        }
        private void Form11_Load(object sender, EventArgs e)
        {
            string str1 = "";

            str1 = textBox1.Text;
            Form10 f = new Form10();

            f.Show();
        }
Пример #6
0
 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;
     }
 }
Пример #8
0
        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);
            }
        }