public PageEvents(BaseLayer baseLayer, EventsDependingActionListViewModel eventsDependingActionListViewModel)
 {
     InitializeComponent();
     _baseLayer = baseLayer;
     _eventsDependingActionListViewModel = eventsDependingActionListViewModel;
     BindElements();
 }
 public PageActions()
 {
     InitializeComponent();
     _baseLayer = new BaseLayer();
     _eventsDependingActionListViewModel = new EventsDependingActionListViewModel(_baseLayer);
     ErrorCount.Reset();
 }
 public EventsDependingActionViewModel(BaseLayer baseLayer, EventsDependingActionListViewModel eventsWithActionListViewModel)
 {
     var ev = new Event();
     this.Name = ev.Name;
     this.Probability = ev.Probability;
     Actions = baseLayer.DssDbContext.Actions.Local.ToList();
     EventsWithActionListViewModel = eventsWithActionListViewModel;
     AddEventCommand = new DelegateCommand<object>(this.OnAddEvent, this.CanAddEvent);
 }
 public PageCombinations(BaseLayer baseLayer, EventsDependingActionListViewModel eventsDependingActionListViewModel)
 {
     InitializeComponent();
     _baseLayer = baseLayer;
     _eventsDependingActionListViewModel = eventsDependingActionListViewModel;
     _localTaskLayer = new LocalTaskLayer(baseLayer, eventsDependingActionListViewModel);
     _localTaskLayer.CreateCombinations();
     GrdCombinsLst.ItemsSource = _localTaskLayer.CombinationWithParamViews;
 }
 public PageSolve(BaseLayer baseLayer, LocalTaskLayer localTaskLayer,
     EventsDependingActionListViewModel eventsDependingActionListViewModel)
 {
     InitializeComponent();
     _baseLayer = baseLayer;
     _localTaskLayer = localTaskLayer;
     _eventsDependingActionListViewModel =
         eventsDependingActionListViewModel;
     BindElements();
 }
Esempio n. 6
0
        public EventsDependingActionViewModel(BaseLayer baseLayer, EventsDependingActionListViewModel eventsWithActionListViewModel)
        {
            var ev = new Event();

            this.Name        = ev.Name;
            this.Probability = ev.Probability;
            Actions          = baseLayer.DssDbContext.Actions.Local.ToList();
            EventsWithActionListViewModel = eventsWithActionListViewModel;
            AddEventCommand = new DelegateCommand <object>(this.OnAddEvent, this.CanAddEvent);
        }
 public LocalTaskLayer(BaseLayer baseLayer, EventsDependingActionListViewModel eventsDependingActionListViewModel)
 {
     EventsDependingActionListViewModel = eventsDependingActionListViewModel;
     base.BaseLayer = baseLayer;
 }