Example #1
0
 public SaveHeatCommand(HeatViewModel viewModel, IHeatRepositories repo,
                        IUserNotify notify)
 {
     this.viewModel = viewModel;
     this.notify    = notify;
     this.repo      = repo;
 }
Example #2
0
 public SaveHeatCommand(HeatViewModel viewModel, IHeatRepositories repo,
     IUserNotify notify)
 {
     this.viewModel = viewModel;
     this.notify = notify;
     this.repo = repo;
 }
Example #3
0
        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 };
            }

        }
Example #4
0
        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
                };
            }
        }
Example #5
0
 public SaveHeatCommand(HeatViewModel viewModel, IHeatRepositories repo)
 {
     this.viewModel = viewModel;
     this.repo = repo;
 }