Exemple #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();
        }
Exemple #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);
        }