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 }; } }