Example #1
0
        private void Initialize()
        {
            clientWidget  = new ClientWidgetViewModel();
            projectWidget = new ProjectWidgetViewModel();
            wellsWidget   = new WellsGeneralWidgetViewModel();

            widgetPanelControlVm.AddWidget(clientWidget);
            widgetPanelControlVm.AddWidget(projectWidget);
            widgetPanelControlVm.AddWidget(wellsWidget);

//            wellsWidget.ChangeSleepMode(true);
        }
 // TODO determine if there should be a controller with this viewmodel as a dependency
 // or should it be a service, a mediator
 public void AddWidget(WidgetViewModelBase addWidgetViewModel)
 {
     viewModels.Add(addWidgetViewModel);
 }