public MainWindow(User user) { InitializeComponent(); MainWindow.user = user; userName.Text = MainWindow.user.username; if (MainWindow.user.admin) { userPermissions.Text = "Administrator"; } else { userPermissions.Text = "User"; } m_dashboard = new Dashboard(); m_invoice = new InvoiceMain(); m_receipt = new ReceiptMain(); m_creditNote = new CreditNoteMain(); m_statement = new StatementMain(this); m_product = new ProductMain(); m_customer = new CustomerMain(); m_quote = new QuoteMain(); m_expenses = new ExpensesMain(); m_settings = new SettingsMain(); m_order = new OrderMain(this); BtnDashboard_Click(null, null); }
private void test(object sender, EventArgs e) { Customer c = new Customer(); CustomerMain cm = new CustomerMain(c); TabItem t = new TabItem(); t.Content = cm; mainAreaVM.AddToRightArea(t); // mainWindow.A }
private void btnCustomers_Click(object sender, EventArgs e) { CustomerMain main = new CustomerMain(); main.ShowDialog(); }
public void SetUp() { _shims = ShimsContext.Create(); _customer = new CustomerMain(); CreateMaster(); }