private void openAddWindow(object parameter) { AddStockView new_stock = new AddStockView(null, HomeViewModel); new_stock.ShowDialog(); refresh(); }
private void openEditWindow(object parameter) { AddStockView old_stock = new AddStockView(SelectedStock, HomeViewModel); old_stock.ShowDialog(); refresh(); }
private void btnAddStock_Click(object sender, EventArgs e) { using (AddStockView addStockView = new AddStockView()) { addStockView.ShowDialog(); } }