private void gridOrder_CellDoubleClick(object sender,ODGridClickEventArgs e) {
			FormSupplyOrderEdit FormSOE = new FormSupplyOrderEdit();
			FormSOE.ListSupplier = ListSuppliers;
			FormSOE.Order = ListOrders[e.Row];
			FormSOE.ShowDialog();
			if(FormSOE.DialogResult!=DialogResult.OK) {
				return;
			}
			ListOrdersAll = SupplyOrders.GetAll();
			FillGridOrders();
			FillGridOrderItem();
		}
        private void gridOrder_CellDoubleClick(object sender, ODGridClickEventArgs e)
        {
            FormSupplyOrderEdit formSupplyOrderEdit = new FormSupplyOrderEdit();

            formSupplyOrderEdit.ListSuppliersAll = _listSuppliers;
            formSupplyOrderEdit.SupplyOrderCur   = _listSupplyOrders[e.Row];
            formSupplyOrderEdit.ShowDialog();
            if (formSupplyOrderEdit.DialogResult != DialogResult.OK)
            {
                return;
            }
            FillGridOrders();
            FillGridOrderItem();
        }
        private void gridOrder_CellDoubleClick(object sender, ODGridClickEventArgs e)
        {
            FormSupplyOrderEdit FormSOE = new FormSupplyOrderEdit();

            FormSOE.ListSupplier = _listSuppliers;
            FormSOE.Order        = _listOrders[e.Row];
            FormSOE.ShowDialog();
            if (FormSOE.DialogResult != DialogResult.OK)
            {
                return;
            }
            _listOrdersAll = SupplyOrders.GetAll();
            FillGridOrders();
            FillGridOrderItem();
        }
Exemple #4
0
        private void gridOrder_CellDoubleClick(object sender, ODGridClickEventArgs e)
        {
            FormSupplyOrderEdit FormS = new FormSupplyOrderEdit();

            FormS.Order = listOrder[e.Row];
            long selectedOrderNum = listOrder[e.Row].SupplyOrderNum;

            FormS.ListSupplier = listSupplier;
            FormS.ShowDialog();
            if (FormS.DialogResult == DialogResult.OK)
            {
                FillGridOrder();
            }
            for (int i = 0; i < listOrder.Count; i++)
            {
                if (listOrder[i].SupplyOrderNum == selectedOrderNum)
                {
                    gridOrder.SetSelected(i, true);
                }
            }
        }
Exemple #5
0
 private void gridOrder_CellDoubleClick(object sender,ODGridClickEventArgs e)
 {
     FormSupplyOrderEdit FormS=new FormSupplyOrderEdit();
     FormS.Order=listOrder[e.Row];
     long selectedOrderNum=listOrder[e.Row].SupplyOrderNum;
     FormS.ListSupplier=listSupplier;
     FormS.ShowDialog();
     if(FormS.DialogResult==DialogResult.OK) {
         FillGridOrder();
     }
     for(int i=0;i<listOrder.Count;i++){
         if(listOrder[i].SupplyOrderNum==selectedOrderNum){
             gridOrder.SetSelected(i,true);
         }
     }
 }