public productForm(Context context, Product product) { this.context = context; InitializeComponent(); this.product = product; populateFields(); }
public Printer(Context context, Form parent) { this.context = context; this.parent = parent; webbrowser = new WebBrowser(); webbrowser.Parent = this.parent; SetBrowserPrintSettings(); }
public customerForm(Context context, Customer customer) { this.context = context; InitializeComponent(); this.customer = customer; populateFields(); }
public customerForm(Context context) { this.context = context; InitializeComponent(); customer = new Customer(); populateFields(); }
public userForm(Context context) { this.context = context; InitializeComponent(); user = new User(); populateFields(); }
public userForm(Context context, User user) { this.context = context; InitializeComponent(); this.user = user; populateFields(); }
public usersForm(Context context) { this.context = context; InitializeComponent(); this.Text = this.Text.Replace("[*companyname*]", Properties.Settings.Default.companyname); }
public productForm(Context context) { this.context = context; InitializeComponent(); product = new Product(); populateFields(); }
public statementForm(Context context, Statement statement) { this.context = context; this.statement = statement; InitializeComponent(); populateFields(); }
public statementForm(Context context, Customer customer, DateTime startdate, DateTime enddate) { this.context = context; InitializeComponent(); this.statement = new Statement(customer, false, startdate, enddate); populateFields(); }
public reportsForm(Context context, ReportType reporttype) { this.context = context; InitializeComponent(); this.report = new Report(reporttype); populateFields(); }
public statementForm(Context context, Customer customer, Boolean zerobased) { this.context = context; InitializeComponent(); this.statement = new Statement(customer, zerobased); populateFields(); }
public paymentForm(Context context, Customer customer) { this.context = context; InitializeComponent(); this.customer = customer; payment = new Payment(customer); populateFields(); }
public paymentForm(Context context, Invoice invoice) { this.context = context; InitializeComponent(); this.invoice = invoice; this.customer = invoice.Customer; payment = new Payment(invoice); populateFields(); }
public selectProductForm(Context context, InvoiceProduct invoiceproduct) { this.context = context; InitializeComponent(); searchproducts = Manager.listSearchProducts(); loadProductsList(); this.invoiceproduct = invoiceproduct; populateFields(invoiceproduct); }
public customersForm(Context context) { this.context = context; InitializeComponent(); buttonEdit.Visible = buttonDelete.Visible = Security.allowCustomerManagement(context.User); buttonPayment.Visible = Security.allowPayments(context.User); buttonStatement.Visible = Security.allowStatementsList(context.User); buttonEmail.Visible = Security.allowEmail(context.User); this.Text = this.Text.Replace("[*companyname*]", Properties.Settings.Default.companyname); }
public printForm(Context context, String PreviewHTML, String PrintHTML, bool printOnLoad) { InitializeComponent(); webBrowserPreview.DocumentText = PreviewHTML; webBrowserPrintWindow.Url = new Uri("http://www.meulenfoods.co.za"); webBrowserPrintWindow.DocumentText = PrintHTML; textBoxSource.Text = PrintHTML; buttonShowHTML.Visible = context.User.Role.Equals(Roles.Admin); if (printOnLoad) { webBrowserPrintWindow.DocumentCompleted += webBrowserPrintWindow_DocumentCompleted_printonload; } }
public invoicesForm(Context context) { this.context = context; InitializeComponent(); buttonNew.Visible = Security.allowInvoiceCreate(this.context.User); buttonEdit.Visible = buttonDelete.Visible = Security.allowInvoiceManagement(this.context.User); buttonPayment.Visible = Security.allowPayments(this.context.User); buttonFinalize.Visible = Security.allowFinalize(this.context.User); buttonEmail.Visible = Security.allowEmail(this.context.User); this.Text = this.Text.Replace("[*companyname*]", Properties.Settings.Default.companyname); }
public invoiceForm(Context context) { this.context = context; InitializeComponent(); invoice = new Invoice(); searchcustomers = Manager.listSearchCustomers(); loadCustomersList(); enableCustomerFields(); buttonPrint.Visible = buttonSave.Visible = Security.allowInvoiceManagement(context.User); populateInvoiceFields(invoice); loadListProducts(); populateCustomerFields(invoice.Customer); }
public invoiceForm(Context context, Invoice invoice) { this.context = context; InitializeComponent(); this.invoice = invoice; searchcustomers = Manager.listSearchCustomers(); loadCustomersList(); buttonSave.Enabled = buttonSavePrint.Enabled = Security.allowInvoiceManagement(context.User); buttonAddProduct.Enabled = buttonEditProduct.Enabled = buttonRemoveProduct.Enabled = Security.allowInvoiceManagement(context.User); populateInvoiceFields(invoice); loadListProducts(); populateCustomerFields(invoice.Customer); }
public formDashboard(Context context) { this.context = context; InitializeComponent(); }
public importForm(Context context) { this.context = context; InitializeComponent(); }