Example #1
0
        private void cmbOrders_EditValueChanged(object sender, EventArgs e)
        {
            int orderID = Convert.ToInt32(cmbOrders.EditValue);
            var order   = db.Orders.Find(orderID);

            frmBooking frm = new frmBooking();

            frm.isEdit  = true;
            frm.type    = order.Type;
            frm.orderID = orderID;
            frm.Text    = "بيانات الحجز";
            frm.ShowDialog();
        }
Example #2
0
        private void gridView1_DoubleClick(object sender, EventArgs e)
        {
            if (gridView1.RowCount == 0)
            {
                return;
            }
            frmBooking frm = new frmBooking();

            frm.isEdit  = true;
            frm.type    = gridView1.GetFocusedRowCellValue("النوع").ToString();
            frm.orderID = Convert.ToInt32(gridView1.GetFocusedRowCellValue("م"));
            frm.Text    = "بيانات الحجز";
            frm.ShowDialog();
            calendarControl1_DateTimeChanged(sender, e);
        }
Example #3
0
        private void btnBook_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            frmBooking frm = new frmBooking();

            AddForm(frm);
        }