public NewTaxWindow(Tax tax, DatabaseContext context, TaxWindow taxWindow) : this(context) { nameTextField.Text = tax.Name; descriptionTextField.Text = tax.Description; taxAmountTextField.Text = tax.TaxAmount; this.tax = tax; isUpdateFlag = true; this.taxWindow = taxWindow; }
public MainWindow(DatabaseContext context) { _context = context; InitializeComponent(); _context.Database.EnsureDeleted(); _context.Database.EnsureCreated(); companyWindow = new CompanyWindow(_context); customerWindow = new CustomerWindow(_context); invoiceWindow = new InvoiceWindow(_context); productWindow = new ProductWindow(_context); taxWindow = new TaxWindow(_context); }
public NewTaxWindow(TaxWindow taxWindow, DatabaseContext context) : this(context) { this.taxWindow = taxWindow; }