Beispiel #1
0
 private void btModify_Click(object sender, EventArgs e)
 {
     sub = new UISubProduct(this);
     ViewModel.loadProductToModify((Product)lboxProduct.SelectedValue);
     ViewModel.VMMain.switchToSubProduct(sub);
     ViewModel.VMMain.UIMainForm.disableButtons();
 }
Beispiel #2
0
 private void btAddProduct_Click(object sender, EventArgs e)
 {
     sub = new UISubProduct(this);
     ViewModel.VMMain.switchToSubProduct(sub);
     ViewModel.VMMain.UIMainForm.disableButtons();
 }