示例#1
0
        public OutputWindow( Workspace workspace )
        {
            InitializeComponent();

            myWorkspace = workspace;

            //this.DockState = DockState.DockBottom;
        }
示例#2
0
        public ObjectBrowser( CodeProvider cp, ImageList images, Workspace workspace)
        {
            this.Text = "Object Browser";
            InitializeComponent();

            myWorkspace = workspace;

            treeView1.ImageList = images;
            treeView2.ImageList = images;

            code = cp;

            LoadLibs( code );
        }
示例#3
0
文件: MainForm.cs 项目: itsbth/GLuaR
        public MainForm()
        {
            InitializeComponent();

            imgList.Images.Add("root", Resources.project_root);
            imgList.Images.Add("code", Resources.project_code);
            imgList.Images.Add("tasklist_checkbox", Resources.tasklist_checkbox);
            imgList.Images.Add("server", Resources.function_server);
            imgList.Images.Add("client", Resources.function_client);
            imgList.Images.Add("shared", Resources.function_shared);
            imgList.Images.Add("library", Resources.library);
            imgList.Images.Add("keyword", Resources.keyword);
            imgList.Images.Add("folder_open", Resources.project_folder_open);
            imgList.Images.Add("folder_closed", Resources.project_folder_closed);
            imgList.Images.Add("file_lost", Resources.file_unavailable);

            workspace = new Workspace(mydc, new ContextMenuStrip(), new ContextMenuStrip(), null, null, null, imgList);
        }
示例#4
0
        public TaskWindow(Workspace workspace)
        {
            InitializeComponent();

            _myWorkspace = workspace;
        }
示例#5
0
文件: Folder.cs 项目: itsbth/GLuaR
        public void BuildTreeview(Workspace.Workspace work, Project proj)
        {
            Project = proj;

            foreach (Folder f in Folders)
            {
                var node = new TreeNode
                               {
                                   Text = f.Name,
                                   ContextMenuStrip = work.FolderStrip,
                                   ImageKey = "project_folder_closed",
                                   SelectedImageKey = "project_folder_closed",
                                   Tag = f
                               };
                f.Node = node;
                Node.Nodes.Add(node);

                f.BuildTreeview(work, proj);
            }

            foreach (OpenedFile pf in Files)
            {
                string filepath = FullName();

                filepath += @"\";

                if (!File.Exists(filepath + pf.Name))
                {
                    pf.Valid = false;
                    pf.Saved = true;
                    pf.Folder = this;
                    var node = new TreeNode
                                   {
                                       Text = pf.Name,
                                       ContextMenuStrip = work.CodeStrip,
                                       ImageKey = "file_lost",
                                       SelectedImageKey = "file_lost",
                                       Tag = pf
                                   };
                    pf.Node = node;
                    Node.Nodes.Add(node);
                    continue;
                }

                pf.FullName = filepath + pf.Name;
                pf.Saved = true;
                pf.Valid = true;
                pf.Folder = this;

                var tn2 = new TreeNode
                              {
                                  Text = pf.Name,
                                  ContextMenuStrip = work.CodeStrip,
                                  ImageKey = "code",
                                  SelectedImageKey = "code",
                                  Tag = pf
                              };
                pf.Node = tn2;

                Node.Nodes.Add(tn2);
            }
        }
示例#6
0
        public ProjectExplorer( Workspace workspace )
        {
            InitializeComponent();

            myWorkspace = workspace;
        }