Наследование: ViewModelBase, IDisposable
Пример #1
0
 public PurchaseOrderXtraForm(string nmb)
 {
     InitializeComponent();
     SetControlsTextLength();
     viewModel = (PurchaseOrderViewModel)Program.Kernel.Get<PurchaseOrderViewModel>(new ConstructorArgument("number", nmb));
     number.SetAsIdentifier();
 }
Пример #2
0
 private void PurchaseOrderXtraForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     viewModel.Dispose();
     viewModel = null;
 }
Пример #3
0
 public SaveOrderCommand(IPurchaseOrderRepository repo, PurchaseOrderViewModel viewModel, IUserNotify notify)
 {
     this.viewModel = viewModel;
     this.repo      = repo;
     this.notify    = notify;
 }
Пример #4
0
 public SaveOrderCommand(IPurchaseOrderRepository repo, PurchaseOrderViewModel viewModel, IUserNotify notify)
 {
     this.viewModel = viewModel;
     this.repo = repo;
     this.notify = notify;
 }