/// <summary> /// FrmAddShipper() /// Form Constructor /// </summary> /// <param name="businessArg"></param> public FrmAddShipper(Business businessArg) { InitializeComponent(); business = businessArg; newShipper = new Shipper(); updatedShipper = new Shipper(); }
public FrmAddCustomer(Business bus) { InitializeComponent(); business = bus; newCustomer = new Customer(); updatedCustomer = new Customer(); }
private Image updatedImg; //cache currently selected image on update category tab page #endregion Fields #region Constructors public FrmAddCategory(Business businessArg) { InitializeComponent(); business = businessArg; newCategory = new Category(); updatedCategory = new Category(); }
/// <summary> /// FrmAddEmployee() /// Constructor /// </summary> /// <param name="bus"></param> public FrmAddEmployee(Business bus) { InitializeComponent(); business = bus; newEmployee = new Employee(); updateEmployee = new Employee(); clerks = business.Employees; }
/// <summary> /// FrmAddProduct() /// Form Constructor /// </summary> /// <param name="businessArg"></param> public FrmAddProduct(Business businessArg) { InitializeComponent(); business = businessArg; categories = business.Categories; suppliers = business.Suppliers; newProduct = new Product();//represents product to be added to database updatedProduct = new Product();//represents product to be updated in database }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Business business = new Business(); business.Dispose(); business.Dispose(); }
/// <summary> /// The constructor for the confirmation form. /// </summary> /// <param name="b"></param> /// <param name="orderDetailList"></param> /// <param name="c"></param> /// <param name="emp"></param> public FrmConfirmation(Business businessArg, Order order, List<OrderDetail> orderDetailList, Customer cust, Employee emp) { InitializeComponent(); currentOrder = order; business = businessArg; orderDetails = orderDetailList; currentCustomer = cust; currentEmp = emp; }
private Customer customerSelected; //passed to Confirmation Window #endregion Fields #region Constructors /// <summary> /// FrmOrder() /// The constructor for the Order Form /// </summary> /// <param name="b"></param> public FrmOrder(Business businessArg) { InitializeComponent(); business = businessArg; }
/// <summary> /// FrmControl() /// Constructor which takes a business object and sets a reference to it. /// </summary> /// <param name="businessArg"></param> public FrmControl(Business businessArg) { InitializeComponent(); business = businessArg; }
private Product selectedProduct; //member variable to pass back selected list of product objects to control form #endregion Fields #region Constructors /// <summary> /// FrmCatalog() /// constructor for the Catalog form /// </summary> /// <param name="b"></param> public FrmCatalog(Business businessArg) { InitializeComponent(); business = businessArg; }