public PurchaseOrderXtraForm(string nmb) { InitializeComponent(); SetControlsTextLength(); viewModel = (PurchaseOrderViewModel)Program.Kernel.Get<PurchaseOrderViewModel>(new ConstructorArgument("number", nmb)); number.SetAsIdentifier(); }
private void PurchaseOrderXtraForm_FormClosed(object sender, FormClosedEventArgs e) { viewModel.Dispose(); viewModel = null; }
public SaveOrderCommand(IPurchaseOrderRepository repo, PurchaseOrderViewModel viewModel, IUserNotify notify) { this.viewModel = viewModel; this.repo = repo; this.notify = notify; }