Beispiel #1
0
 public Emissions(Study currentStudy)
 {
     _currentStudy = currentStudy;
     Types = _currentStudy.PlantTypes;
     EmissionsTypes = _currentStudy.Emissions;
     CalculateClickCommand = new Command(arg => CalculateClickMethod(arg as Window));
 }
Beispiel #2
0
 public ChoseStudy(bool forCompare)
 {
     _context = MainContext.GetInstance();
     Studies =  new ObservableCollection<Study>(_context.Studies.ToList());
     DeleteButtonClickCommand = new Command(arg => DeleteButtonClickMethod(arg as Window));
     if (forCompare) ShowStudyClickCommand = new Command(args => CompareStudyClickMethod(args));
     else ShowStudyClickCommand = new Command(args => ShowStudyClickMethod(args));
 }
Beispiel #3
0
 public AddStudy()
 {
     AddStudyClickCommand = new Command(args => AddStudyClickMethod(args));
     MersimClickCommand = new Command(args => MersimClickMethod(args));
     FixsysClickCommand = new Command(args => FixsysClickMethod(args));
     VarsysClickCommand = new Command(args => VarsysClickMethod(args));
     IsPlantsFromFile = true;
 }
Beispiel #4
0
 public ShowStudy(Models.Study currentStudy)
 {
     _currentStudy = currentStudy;
     ExcelClickCommand = new Command(arg => ExcelClickMethod(arg as Window));
     PlantsClickCommand = new Command(arg => PlantsClickMethod(arg));
     TypesClickCommand = new Command(arg => TypesClickMethod(arg));
     EmissionsClickCommand = new Command(arg => EmissionsClickMethod());
     _backgroundWorker = new BackgroundWorker();
     _backgroundWorker.DoWork += _backgroundWorker_DoWork;
     _backgroundWorker.RunWorkerCompleted += _backgroundWorker_RunWorkerCompleted;
 }