public Vendor EditVendor() { ucVendors.DisableEdit(); Object o = frmDisplay.ShowDialog(ucVendors); ucVendors.EnableEdit(); this.tabVendors.Controls.Add(this.ucVendors); return(o as Vendor); }
public Product EditProduct() { ucProducts.DisableEdit(); Object o = frmDisplay.ShowDialog(ucProducts); ucProducts.EnableEdit(); this.tabProducts.Controls.Add(this.ucProducts); return(o as Product); }
public Client EditClient() { ucClients.DisableEdit(); Object o = frmDisplay.ShowDialog(ucClients); ucClients.EnableEdit(); this.tabClients.Controls.Add(this.ucClients); return(o as Client); }