public StartPageVM(IProgressDialogService progressDialogService, ServiceDialogVMFactory dialogVMFactory) : base(null) { Init(Guid.NewGuid()); Icon = @"pack://application:,,,/ScenarioEditor.View;component/Resources/StartPageIcon.png"; mDialogVMFactory = dialogVMFactory; InitStartPage(); EditPanel = new EditPanelVM(typeof(StartPageVM), Id); EditPanel.AddTypes(new List <ICommand> { new VisibileContentCmd("MenuBar", typeof(ListBox), "MenuBarItemTitle", typeof(TextBlock)) }); Subscribe(); ProgressDialogService = progressDialogService; Task.Factory.StartNew(DataHolder.Instance.PrepareTmpDirectory); }
public StartPageVM(IProgressDialogService progressDialogService, ServiceDialogVMFactory dialogVMFactory) : base(null) { Init(Guid.NewGuid()); Icon = @"pack://application:,,,/ScenarioEditor.View;component/Resources/StartPageIcon.png"; mDialogVMFactory = dialogVMFactory; InitStartPage(); EditPanel = new EditPanelVM(typeof(StartPageVM), Id); EditPanel.AddTypes(new List<ICommand> { new VisibileContentCmd("MenuBar", typeof(ListBox), "MenuBarItemTitle", typeof(TextBlock)) }); Subscribe(); ProgressDialogService = progressDialogService; Task.Factory.StartNew(DataHolder.Instance.PrepareTmpDirectory); }