public frmAddEditItems(MethodType methodType, Items items) { InitializeComponent(); this.loadAddEditItems = new LoadAddEditItems(this, items) { methodType = methodType }; loadAddEditItems.Init(); }
public frmAddEditPQ(MethodType methodType, PriceQuotations pq) { InitializeComponent(); this.methodType = methodType; priceQuotations = new LoadAddEditPQ(this, pq) { methodType = methodType }; priceQuotations.Init(); }
public frmAddEditPurchaseRequest(MethodType methodType, PurchaseRequests item) { InitializeComponent(); var tran = new LoadAddEditPurchaseRequest(this, item) { methodType = methodType }; transaction = ((ITransactions <PurchaseRequests>)tran); transaction.Init(); this.Item = tran.item; }
public frmAddEditPO(MethodType methodType, PurchaseOrders purchaseOrders) { InitializeComponent(); this.po = purchaseOrders; purchaseOrder = new LoadAddEditPO(this, purchaseOrders) { methodType = methodType }; purchaseOrder.Init(); if (methodType == MethodType.Add) { btnCreateObR.Enabled = false; } }