Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }