public ControlWorkspaceTree()
        {
            InitializeComponent();

            WorkspaceTree workspaceTree = new WorkspaceTree(GisApp.ActiveApp.Workspace);
            workspaceTree.Dock = DockStyle.Fill;
            workspaceTree.SelectionChanged += workspaceTree_SelectionChanged;
            workspaceTree.NodeMouseDoubleClick += workspaceTree_NodeMouseDoubleClick;
            workspaceTree.NodeMouseClick += workspaceTree_NodeMouseClick;
            this.Controls.Add(workspaceTree);
        }
示例#2
0
        public void Init()
        {
            string        path = Boot.Core.Steam.GetGame().GetPath();
            WorkspaceTree mods = null, core = null;

            Dispatcher.Invoke(delegate()
            {
                mods = new WorkspaceTree(new FileSystem(path + "\\" + "mods"));
                core = new WorkspaceTree(new FileSystem(path + "\\" + "data"));
            });

            Dispatcher.Invoke(DispatcherPriority.Normal, new Action(() =>
            {
                this.workspace_mods.Content = mods;
                this.workspace_core.Content = core;
            }));
            menu.Init();
        }