public DOS2DEProjectsView() { InitializeComponent(); _instance = this; if (DesignerProperties.GetIsInDesignMode(this)) { ViewModel = new DOS2DEModuleData(); ViewModel.AvailableProjectsVisible = true; ViewModel.LoadPanelVisibility = Visibility.Collapsed; } Init(); }
public DOS2DEProjectsView(MainWindow mainAppWindow, DOS2DEProjectController controller) { InitializeComponent(); _instance = this; Init(); Controller = controller; MainWindow = mainAppWindow; this.ViewModel = Controller.Data; DataContext = this.ViewModel; //ViewModel.LoadPanelVisibility = Visibility.Visible; ToggleAvailableProjectsView(Controller.Data.NewProjectsAvailable); }