Prizm.Main.Forms.PipeMill.Heat.HeatViewModel.HeatViewModel C# (CSharp) Method

HeatViewModel() private method

private HeatViewModel ( IHeatRepositories heatRepository, string heatNumber, IUserNotify notify ) : Prizm.Data.DAL.Mill
heatRepository IHeatRepositories
heatNumber string
notify IUserNotify
return Prizm.Data.DAL.Mill
        public HeatViewModel(IHeatRepositories heatRepository, string heatNumber, IUserNotify notify)
        {
            this.notify = notify;
            this.repo = heatRepository;
            saveCommand = ViewModelSource.Create(() => new SaveHeatCommand(this, repo, notify));

            var heat = GetHeatByNumber(heatNumber);
            if(heat != null)
            {
                Heat = heat;
                SetupManufacturers();
                heats = new List<Prizm.Domain.Entity.Mill.Heat>() { heat };
            }

        }