Beispiel #1
0
        private void openAddWindow(object parameter)
        {
            AddStockView new_stock = new AddStockView(null, HomeViewModel);

            new_stock.ShowDialog();
            refresh();
        }
Beispiel #2
0
        private void openEditWindow(object parameter)
        {
            AddStockView old_stock = new AddStockView(SelectedStock, HomeViewModel);

            old_stock.ShowDialog();
            refresh();
        }
Beispiel #3
0
 private void btnAddStock_Click(object sender, EventArgs e)
 {
     using (AddStockView addStockView = new AddStockView())
     {
         addStockView.ShowDialog();
     }
 }