public SaveHeatCommand(HeatViewModel viewModel, IHeatRepositories repo, IUserNotify notify) { this.viewModel = viewModel; this.notify = notify; this.repo = repo; }
public HeatViewModel(IHeatRepositories heatRepository, string heatNumber) { this.repo = heatRepository; saveCommand = ViewModelSource.Create(() => new SaveHeatCommand(this, repo)); var heat = GetHeatByNumber(heatNumber); if(heat != null) { Heat = heat; SetupManufacturers(); heats = new List<Prizm.Domain.Entity.Mill.Heat>() { heat }; } }
public HeatViewModel(IHeatRepositories heatRepository, string heatNumber) { this.repo = heatRepository; saveCommand = ViewModelSource.Create(() => new SaveHeatCommand(this, repo)); var heat = GetHeatByNumber(heatNumber); if (heat != null) { Heat = heat; SetupManufacturers(); heats = new List <Prizm.Domain.Entity.Mill.Heat>() { heat }; } }
public SaveHeatCommand(HeatViewModel viewModel, IHeatRepositories repo) { this.viewModel = viewModel; this.repo = repo; }