コード例 #1
0
 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;
 }
コード例 #2
0
        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);
        }
コード例 #3
0
 public NewTaxWindow(TaxWindow taxWindow, DatabaseContext context) : this(context)
 {
     this.taxWindow = taxWindow;
 }