private PipelineController(IView view) { Instance = this; PipelineSettings.Default.Load(); SelectedItems = new List <IProjectItem>(); _actionStack = new ActionStack(this); View = view; View.Attach(this); ProjectOpen = false; _watcher = new FileWatcher(this, view); _templateItems = new List <ContentItemTemplate>(); var root = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); if (Directory.Exists(Path.Combine(root, "..", "Resources", "Templates"))) { root = Path.Combine(root, "..", "Resources"); } LoadTemplates(Path.Combine(root, "Templates")); UpdateMenu(); view.UpdateRecentList(PipelineSettings.Default.ProjectHistory); }
private PipelineController(IView view) { Instance = this; SelectedItems = new List <IProjectItem>(); _actionStack = new ActionStack(this); View = view; View.Attach(this); ProjectOpen = false; _templateItems = new List <ContentItemTemplate>(); var root = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); var macPath = Path.Combine(root, "..", "Resources"); var windowsAndLinuxPath = Path.Combine(root, "Templates"); #if IDE LoadTemplates(root); #else if (Directory.Exists(macPath)) { LoadTemplates(macPath); } else { LoadTemplates(windowsAndLinuxPath); } #endif UpdateMenu(); view.UpdateRecentList(PipelineSettings.Default.ProjectHistory); }
public PipelineController(IView view) { _actionStack = new ActionStack(); Selection = new Selection(); View = view; View.Attach(this); ProjectOpen = false; _templateItems = new List <ContentItemTemplate>(); LoadTemplates(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "Templates")); }
public PipelineController(IView view, PipelineProject project) { _actionStack = new ActionStack(); Selection = new Selection(); _view = view; _view.Attach(this); _project = project; ProjectOpen = false; _templateItems = new List <ContentItemTemplate>(); LoadTemplates(Environment.CurrentDirectory + "\\Templates"); }