public SaveHeatCommand(HeatViewModel viewModel, IHeatRepositories repo, IUserNotify notify) { this.viewModel = viewModel; this.notify = notify; this.repo = repo; }
public HeatXtraForm(string heatNumber) { InitializeComponent(); SetControlsTextLength(); viewModel = (HeatViewModel)Program.Kernel.Get <HeatViewModel>(new ConstructorArgument("heatNumber", heatNumber)); if (viewModel.Heat == null) { CreateHeat(heatNumber); } else { this.ShowDialog(); } number.SetAsIdentifier(); }
public HeatXtraForm(string heatNumber) { InitializeComponent(); SetControlsTextLength(); viewModel = (HeatViewModel)Program.Kernel.Get<HeatViewModel>(new ConstructorArgument("heatNumber", heatNumber)); if(viewModel.Heat == null) { CreateHeat(heatNumber); } else { this.ShowDialog(); } number.SetAsLookUpIdentifier(); }
public SaveHeatCommand(HeatViewModel viewModel, IHeatRepositories repo) { this.viewModel = viewModel; this.repo = repo; }
private void HeatXtraForm_FormClosed(object sender, FormClosedEventArgs e) { viewModel.Dispose(); viewModel = null; }