Inheritance: ViewModelBase, IDisposable
Exemplo n.º 1
0
 public PurchaseOrderXtraForm(string nmb)
 {
     InitializeComponent();
     SetControlsTextLength();
     viewModel = (PurchaseOrderViewModel)Program.Kernel.Get<PurchaseOrderViewModel>(new ConstructorArgument("number", nmb));
     number.SetAsIdentifier();
 }
Exemplo n.º 2
0
 private void PurchaseOrderXtraForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     viewModel.Dispose();
     viewModel = null;
 }
Exemplo n.º 3
0
 public SaveOrderCommand(IPurchaseOrderRepository repo, PurchaseOrderViewModel viewModel, IUserNotify notify)
 {
     this.viewModel = viewModel;
     this.repo      = repo;
     this.notify    = notify;
 }
Exemplo n.º 4
0
 public SaveOrderCommand(IPurchaseOrderRepository repo, PurchaseOrderViewModel viewModel, IUserNotify notify)
 {
     this.viewModel = viewModel;
     this.repo = repo;
     this.notify = notify;
 }