/// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.treeView1 = new System.Windows.Forms.TreeView();
     this.SuspendLayout();
     //
     // treeView1
     //
     this.treeView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.treeView1.Location = new System.Drawing.Point(0, 0);
     this.treeView1.Name = "treeView1";
     this.treeView1.Size = new System.Drawing.Size(221, 160);
     this.treeView1.TabIndex = 1;
     this.treeView1.MouseClick += new System.Windows.Forms.MouseEventHandler(this.treeView1_MouseClick);
     //
     // CallStackView
     //
     this.ClientSize = new System.Drawing.Size(224, 161);
     this.CloseButton = false;
     this.CloseButtonVisible = false;
     this.Controls.Add(this.treeView1);
     this.HideOnClose = true;
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.MinimumSize = new System.Drawing.Size(10, 10);
     this.Name = "CallStackView";
     this.Padding = new System.Windows.Forms.Padding(0, 2, 0, 2);
     this.ShowHint = WeifenLuo.WinFormsUI.Docking.DockState.DockLeft;
     this.TabText = "Call Stack";
     this.Text = "Call Stack";
     this.ResumeLayout(false);
 }
예제 #2
0
        public static void BindingKetCau(System.Windows.Forms.TreeView treeViewKetCau)
        {
            treeViewKetCau.Nodes.Clear();
            BLL_KetCau        obj    = new BLL_KetCau();
            List <NhomKetCau> dsNhom = obj.NhomKetCau_GetList(string.Empty);

            if (dsNhom != null)
            {
                var listNhom = (from nhom in dsNhom
                                orderby nhom.SapXep
                                select nhom);

                foreach (NhomKetCau n in listNhom)
                {
                    System.Windows.Forms.TreeNode root = treeViewKetCau.Nodes.Add(n.MaNhomKetCau.ToString(), n.TenNhomKetCau);

                    List <KetCau> dsKetCau = obj.GetList(n.MaNhomKetCau, string.Empty);
                    if (dsKetCau != null)
                    {
                        foreach (KetCau kc in dsKetCau)
                        {
                            root.Nodes.Add(kc.MaKetCau.ToString(), kc.TenKetCau);
                        }
                    }
                }

                treeViewKetCau.ExpandAll();
            }
        }
예제 #3
0
 public CVentanaProcesos(CViewsManager vm)
 {
     view                      = (vm.getFirstView("GestorProcesos.VentanaProcesos") != null)? vm.getFirstView("GestorProcesos.VentanaProcesos"): vm.AddView("GestorProcesos.VentanaProcesos");
     VentanaProcesos           = (System.Windows.Forms.UserControl)view.getCtrl("GestorProcesos.VentanaProcesos");
     VentanaProcesos_cstr      = view.getCtrlStruct("GestorProcesos.VentanaProcesos");
     tabProcesos               = (System.Windows.Forms.TabControl)view.getCtrl("tabProcesos");
     tabProcesos_cstr          = view.getCtrlStruct("tabProcesos");
     Pcontent                  = (System.Windows.Forms.TabPage)view.getCtrl("Pcontent");
     Pcontent_cstr             = view.getCtrlStruct("Pcontent");
     PProcessPanel             = (System.Windows.Forms.TabPage)view.getCtrl("PProcessPanel");
     PProcessPanel_cstr        = view.getCtrlStruct("PProcessPanel");
     PLeft                     = (System.Windows.Forms.Panel)view.getCtrl("PLeft");
     PLeft_cstr                = view.getCtrlStruct("PLeft");
     PProcessList              = (System.Windows.Forms.Panel)view.getCtrl("PProcessList");
     PProcessList_cstr         = view.getCtrlStruct("PProcessList");
     LProcess                  = (System.Windows.Forms.ListBox)view.getCtrl("LProcess");
     LProcess_cstr             = view.getCtrlStruct("LProcess");
     contextMenu_Proceso       = (System.Windows.Forms.ContextMenuStrip)view.getCtrl("contextMenu_Proceso");
     contextMenu_Proceso_cstr  = view.getCtrlStruct("contextMenu_Proceso");
     PProcessDir               = (System.Windows.Forms.Panel)view.getCtrl("PProcessDir");
     PProcessDir_cstr          = view.getCtrlStruct("PProcessDir");
     TV_Processes              = (System.Windows.Forms.TreeView)view.getCtrl("TV_Processes");
     TV_Processes_cstr         = view.getCtrlStruct("TV_Processes");
     contextMenu_Procesos      = (System.Windows.Forms.ContextMenuStrip)view.getCtrl("contextMenu_Procesos");
     contextMenu_Procesos_cstr = view.getCtrlStruct("contextMenu_Procesos");
 }
예제 #4
0
 public static System.Windows.Forms.TreeNode get_SelectedNodeTSS(
     System.Windows.Forms.TreeView target)
 {
     System.Windows.Forms.TreeNode selectNode = new System.Windows.Forms.TreeNode("testing");
     selectNode.Tag = "12345678";
     return(selectNode);
 }
        //UPGRADE_TODO: Interface 'javax.swing.tree.TreeModel' was converted to 'System.Windows.Forms.TreeNode' which has a different behavior. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1073_3"'
        //UPGRADE_TODO: Interface 'javax.swing.event.TreeSelectionListener' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1095_3"'
        public JTreeStringTemplatePanel(System.Windows.Forms.TreeNode tm, TreeSelectionListener listener)
        {
            // use a layout that will stretch tree to panel size
            //UPGRADE_ISSUE: Method 'java.awt.Container.setLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtContainersetLayout_javaawtLayoutManager_3"'
            //UPGRADE_ISSUE: Constructor 'java.awt.BorderLayout.BorderLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout_3"'
            /*
            setLayout(new BorderLayout());*/

            // Create tree
            tree = SupportClass.TreeSupport.CreateTreeView(tm);

            // Change line style
            //UPGRADE_ISSUE: Method 'javax.swing.JComponent.putClientProperty' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaxswingJComponentputClientProperty_javalangObject_javalangObject_3"'
            tree.putClientProperty("JTree.lineStyle", "Angled");

            // Add TreeSelectionListener
            if (listener != null)
                tree.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(listener.valueChanged);

            // Put tree in a scrollable pane's viewport
            //UPGRADE_TODO: Class 'javax.swing.JScrollPane' was converted to 'System.Windows.Forms.ScrollableControl' which has a different behavior. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1073_3"'
            //UPGRADE_TODO: Constructor 'javax.swing.JScrollPane.JScrollPane' was converted to 'System.Windows.Forms.ScrollableControl.ScrollableControl' which has a different behavior. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1073_javaxswingJScrollPaneJScrollPane_3"'
            System.Windows.Forms.ScrollableControl temp_scrollablecontrol;
            temp_scrollablecontrol = new System.Windows.Forms.ScrollableControl();
            temp_scrollablecontrol.AutoScroll = true;
            System.Windows.Forms.ScrollableControl sp = temp_scrollablecontrol;
            //UPGRADE_ISSUE: Method 'javax.swing.JScrollPane.getViewport' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaxswingJScrollPanegetViewport_3"'
            //UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1073_javaawtContaineradd_javaawtComponent_3"'
            sp.getViewport().Controls.Add(tree);

            //UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1073_javaawtContaineradd_javaawtComponent_javalangObject_3"'
            Controls.Add(sp);
            sp.Dock = System.Windows.Forms.DockStyle.Fill;
            sp.BringToFront();
        }
예제 #6
0
파일: Tree.cs 프로젝트: xstos/alithiatec
        internal void ToTreeView(System.Windows.Forms.TreeView tv)
        {
            tv.Nodes.Clear();
            Tree <D> tree = this;

            System.Windows.Forms.TreeNodeCollection tnc;
            System.Windows.Forms.TreeNode           tn;
            Tree <D> t;
            Stack <System.Windows.Forms.TreeNodeCollection> tvStack = new Stack <System.Windows.Forms.TreeNodeCollection>();
            Stack <Tree <D> > treeStack = new Stack <Tree <D> >();

            tvStack.Push(tv.Nodes);
            treeStack.Push(tree);
            while (tvStack.Count > 0)
            {
                tnc = tvStack.Pop();
                t   = treeStack.Pop();
                foreach (Tree <D> var in t)
                {
                    treeStack.Push(var);
                    tn = tnc.Add(var.key, String.Concat(var.key, "(", var.parent.dictionary.RefCount(var.key), ")"));
                    tvStack.Push(tn.Nodes);
                    tn.Tag = var.data;
                }
            }
        }
예제 #7
0
        }// end if

        #endregion
        #region //填冲客户编信息 TrreView控件
        public void fillEmployee(object objTreeView, object obimage, OleDbDataReader dr)
        {
            try
            {
                tbDai   = new tbDaiConnection();
                oledCon = tbDai.OledCon();
                oledDr  = dr;
                if (objTreeView.GetType().ToString() == "System.Windows.Forms.TreeView")                //判断参数类型
                {
                    System.Windows.Forms.ImageList imlist = (System.Windows.Forms.ImageList)obimage;    //实例参数对象
                    System.Windows.Forms.TreeView  TV     = (System.Windows.Forms.TreeView)objTreeView; //实例参数对象
                    TV.Nodes.Clear();                                                                   //清除节点数据
                    TV.ImageList = imlist;                                                              //调置控件属性
                    System.Windows.Forms.TreeNode TN = new System.Windows.Forms.TreeNode("员工编号", 0, 1); //添加根节点
                    while (oledDr.Read())
                    {
                        TN.Nodes.Add("", oledDr[0].ToString(), 0, 1); //添加子节点
                    }
                    TV.Nodes.Add(TN);
                    oledDr.Close();
                    TV.ExpandAll();//展
                }
            }//
            catch (Exception ee)
            {
            }
        }// end fi
예제 #8
0
        internal void ShowExcerpt(System.Windows.Forms.TreeView treeview)
        {
            string excerptFileName = Path.Combine(GetResultDirTarget(), "excerptResults.json");

            Controls.JsonTreeView.JsonTreeViewLoader.LoadJsonToTreeView(treeview, File.ReadAllText(excerptFileName), excerptFileName);
            treeview.TopNode?.Expand();
        }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.treeView = new System.Windows.Forms.TreeView();
     this.SuspendLayout();
     //
     // treeView
     //
     this.treeView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.treeView.Location = new System.Drawing.Point(0, 0);
     this.treeView.Margin = new System.Windows.Forms.Padding(0);
     this.treeView.Name = "treeView";
     this.treeView.Size = new System.Drawing.Size(219, 160);
     this.treeView.TabIndex = 4;
     //
     // AssembliesView
     //
     this.ClientSize = new System.Drawing.Size(219, 162);
     this.CloseButton = false;
     this.CloseButtonVisible = false;
     this.Controls.Add(this.treeView);
     this.HideOnClose = true;
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.MinimumSize = new System.Drawing.Size(100, 100);
     this.Name = "AssembliesView";
     this.Padding = new System.Windows.Forms.Padding(0, 2, 0, 2);
     this.ShowHint = WeifenLuo.WinFormsUI.Docking.DockState.DockLeft;
     this.TabText = "Assemblies";
     this.Text = "Assemblies";
     this.ResumeLayout(false);
 }
예제 #10
0
 public CFormControlesEventos(CViewsManager vm)
 {
     view = (vm.getFirstView("GestorControles.FormControlesEventos") != null)? vm.getFirstView("GestorControles.FormControlesEventos"): vm.AddView("GestorControles.FormControlesEventos");
     FormControlesEventos      = (System.Windows.Forms.Form)view.getCtrl("GestorControles.FormControlesEventos");
     FormControlesEventos_cstr = view.getCtrlStruct("GestorControles.FormControlesEventos");
     PRight                 = (System.Windows.Forms.Panel)view.getCtrl("PRight");
     PRight_cstr            = view.getCtrlStruct("PRight");
     PEventBottom           = (System.Windows.Forms.Panel)view.getCtrl("PEventBottom");
     PEventBottom_cstr      = view.getCtrlStruct("PEventBottom");
     PEventsGrid            = (System.Windows.Forms.Panel)view.getCtrl("PEventsGrid");
     PEventsGrid_cstr       = view.getCtrlStruct("PEventsGrid");
     DG_EventosControl      = (System.Windows.Forms.DataGridView)view.getCtrl("DG_EventosControl");
     DG_EventosControl_cstr = view.getCtrlStruct("DG_EventosControl");
     panel1                 = (System.Windows.Forms.Panel)view.getCtrl("panel1");
     panel1_cstr            = view.getCtrlStruct("panel1");
     BGuardar               = (System.Windows.Forms.Button)view.getCtrl("BGuardar");
     BGuardar_cstr          = view.getCtrlStruct("BGuardar");
     PTopEvent_Consult      = (System.Windows.Forms.Panel)view.getCtrl("PTopEvent_Consult");
     PTopEvent_Consult_cstr = view.getCtrlStruct("PTopEvent_Consult");
     toolStrip1             = (System.Windows.Forms.ToolStrip)view.getCtrl("toolStrip1");
     toolStrip1_cstr        = view.getCtrlStruct("toolStrip1");
     ListaEventos           = (System.Windows.Forms.ListView)view.getCtrl("ListaEventos");
     ListaEventos_cstr      = view.getCtrlStruct("ListaEventos");
     PLeft             = (System.Windows.Forms.Panel)view.getCtrl("PLeft");
     PLeft_cstr        = view.getCtrlStruct("PLeft");
     TV_Controles      = (System.Windows.Forms.TreeView)view.getCtrl("TV_Controles");
     TV_Controles_cstr = view.getCtrlStruct("TV_Controles");
 }
예제 #11
0
        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PickEntryStep));
            this.treeView = new System.Windows.Forms.TreeView();
            this.treeImages = new System.Windows.Forms.ImageList(this.components);
            this.SuspendLayout();
            // 
            // treeView
            // 
            resources.ApplyResources(this.treeView, "treeView");
            this.treeView.FullRowSelect = true;
            this.treeView.HideSelection = false;
            this.treeView.ImageList = this.treeImages;
            this.treeView.Name = "treeView";
            this.treeView.DoubleClick += new System.EventHandler(this.TreeView_DoubleClick);
            // 
            // treeImages
            // 
            this.treeImages.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit;
            resources.ApplyResources(this.treeImages, "treeImages");
            this.treeImages.TransparentColor = System.Drawing.Color.Transparent;
            // 
            // PickEntryStep
            // 
            resources.ApplyResources(this, "$this");
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.BackColor = System.Drawing.Color.Transparent;
            this.Controls.Add(this.treeView);
            this.Name = "PickEntryStep";
            this.Tag = "Double click on the file in the directory tree below to be the entry point for yo" +
                "ur application.  This should be an executable.";
            this.ResumeLayout(false);

        }
예제 #12
0
        }// end fi

        #endregion
        #region //填冲商品类别信息 TrreView控件
        public void filltbProPath(object objTreeView, object obimage)
        {
            try
            {
                tbDai   = new tbDaiConnection();
                oledCon = tbDai.OledCon();
                string strAdd = "select * from tb_ProPath where ProPath='" + 0 + "'";
                oledCmd = new OleDbCommand(strAdd, oledCon);
                oledDr  = oledCmd.ExecuteReader();
                if (objTreeView.GetType().ToString() == "System.Windows.Forms.TreeView")
                {
                    System.Windows.Forms.ImageList imlist = (System.Windows.Forms.ImageList)obimage;

                    System.Windows.Forms.TreeView TV = (System.Windows.Forms.TreeView)objTreeView;
                    TV.Nodes.Clear();

                    TV.ImageList = imlist;
                    System.Windows.Forms.TreeNode TN = new System.Windows.Forms.TreeNode("商品分类", 0, 1);
                    while (oledDr.Read())
                    {
                        TN.Nodes.Add("", oledDr[1].ToString(), 0, 1);
                    }
                    TV.Nodes.Add(TN);
                    oledDr.Close();
                    TV.ExpandAll();
                }
            }//
            catch (Exception ee)
            {
            }
        }// end fi
 /// <summary> 
 /// 设计器支持所需的方法 - 不要
 /// 使用代码编辑器修改此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     this.treeView1 = new System.Windows.Forms.TreeView();
     this.SuspendLayout();
     //
     // treeView1
     //
     this.treeView1.CheckBoxes = true;
     this.treeView1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.treeView1.ItemHeight = 16;
     this.treeView1.Location = new System.Drawing.Point(0, 0);
     this.treeView1.Name = "treeView1";
     this.treeView1.Size = new System.Drawing.Size(235, 382);
     this.treeView1.TabIndex = 0;
     this.treeView1.AfterCheck += new System.Windows.Forms.TreeViewEventHandler(this.treeView1_AfterCheck);
     //
     // TreeViewForRoles
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.treeView1);
     this.Name = "TreeViewForRoles";
     this.Size = new System.Drawing.Size(235, 382);
     this.ResumeLayout(false);
 }
		/// <summary> 
		/// Required method for Designer support - do not modify 
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SolutionPickerControl));
			this.treeIcons = new System.Windows.Forms.ImageList(this.components);
			this.solutionTree = new System.Windows.Forms.TreeView();
			this.SuspendLayout();
			// 
			// treeIcons
			// 
			this.treeIcons.ColorDepth = System.Windows.Forms.ColorDepth.Depth24Bit;
			resources.ApplyResources(this.treeIcons, "treeIcons");
			this.treeIcons.TransparentColor = System.Drawing.Color.Magenta;
			// 
			// solutionTree
			// 
			resources.ApplyResources(this.solutionTree, "solutionTree");
			this.solutionTree.ImageList = this.treeIcons;
			this.solutionTree.Name = "solutionTree";
			this.solutionTree.Sorted = true;
			this.solutionTree.BeforeExpand += new System.Windows.Forms.TreeViewCancelEventHandler(this.OnBeforeExpand);
			this.solutionTree.DoubleClick += new System.EventHandler(this.OnSelect);
			// 
			// SolutionPickerControl
			// 
			resources.ApplyResources(this, "$this");
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			this.Controls.Add(this.solutionTree);
			this.Name = "SolutionPickerControl";
			this.ResumeLayout(false);

		}
예제 #15
0
        }// end if

        #endregion
        #region //填冲客户编信息 TrreView控件
        public void filltbProPath(object objTreeView, object obimage, OleDbDataReader dr)
        {
            try
            {
                tbDai   = new tbDaiConnection();
                oledCon = tbDai.OledCon();
                oledDr  = dr;
                if (objTreeView.GetType().ToString() == "System.Windows.Forms.TreeView")
                {
                    System.Windows.Forms.ImageList imlist = (System.Windows.Forms.ImageList)obimage;

                    System.Windows.Forms.TreeView TV = (System.Windows.Forms.TreeView)objTreeView;
                    TV.Nodes.Clear();

                    TV.ImageList = imlist;
                    System.Windows.Forms.TreeNode TN = new System.Windows.Forms.TreeNode("客户编号", 0, 1);
                    while (oledDr.Read())
                    {
                        TN.Nodes.Add("", oledDr[0].ToString(), 0, 1);
                    }
                    TV.Nodes.Add(TN);
                    oledDr.Close();
                    TV.ExpandAll();
                }
            }//
            catch (Exception ee)
            {
            }
        }// end fi
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.groupBox1 = new System.Windows.Forms.GroupBox();
     this.treeViewClassficationList = new System.Windows.Forms.TreeView();
     this.btnOutput = new System.Windows.Forms.Button();
     this.btnCancel = new System.Windows.Forms.Button();
     this.groupBox1.SuspendLayout();
     this.SuspendLayout();
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.treeViewClassficationList);
     this.groupBox1.Location = new System.Drawing.Point(5, 3);
     this.groupBox1.Name = "groupBox1";
     this.groupBox1.Size = new System.Drawing.Size(277, 264);
     this.groupBox1.TabIndex = 0;
     this.groupBox1.TabStop = false;
     this.groupBox1.Text = "重量分类列表";
     //
     // treeViewClassficationList
     //
     this.treeViewClassficationList.Location = new System.Drawing.Point(7, 16);
     this.treeViewClassficationList.Name = "treeViewClassficationList";
     this.treeViewClassficationList.Size = new System.Drawing.Size(264, 242);
     this.treeViewClassficationList.TabIndex = 0;
     //
     // btnOutput
     //
     this.btnOutput.Location = new System.Drawing.Point(120, 273);
     this.btnOutput.Name = "btnOutput";
     this.btnOutput.Size = new System.Drawing.Size(75, 23);
     this.btnOutput.TabIndex = 1;
     this.btnOutput.Text = "导出";
     this.btnOutput.UseVisualStyleBackColor = true;
     //
     // btnCancel
     //
     this.btnCancel.Location = new System.Drawing.Point(201, 273);
     this.btnCancel.Name = "btnCancel";
     this.btnCancel.Size = new System.Drawing.Size(75, 23);
     this.btnCancel.TabIndex = 2;
     this.btnCancel.Text = "取消";
     this.btnCancel.UseVisualStyleBackColor = true;
     //
     // OutputWeightClassficationFrm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(288, 302);
     this.Controls.Add(this.btnCancel);
     this.Controls.Add(this.btnOutput);
     this.Controls.Add(this.groupBox1);
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.Name = "OutputWeightClassficationFrm";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "重量分类选择对话框";
     this.groupBox1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
예제 #17
0
        // rsBindTree, rsBindTreeEx
        // 绑定 TreeView
        // dst 的结构:
        // 冗余的分组结构(不用 Group By, 用重复表示分组),并且按分组排序,Levels 指定分组数(即层数)
        // ImageIndex 是用分号分割的一个字串,每个元素代表一个图标索引
        static public bool rsBindTree(System.Data.DataSet dst, System.Windows.Forms.TreeView tvw
                                      , int Levels, string ImageIndex)
        {
            if (dst == null || tvw == null)
            {
                return(false);
            }

            if (dst.Tables.Count == 0)
            {
                return(false);
            }

            tvw.Nodes.Clear();

            try
            {
                int intRow = 0;
                // 一定要叫做 "根"?
                rsBindTreeEx(dst, tvw.Nodes.Add("根"), ref intRow, dst.Tables[0].Rows.Count, 0, Levels, ImageIndex);
                tvw.Nodes[0].Expand();
            }
            catch
            {
                return(false);
            }

            return(true);
        }
예제 #18
0
 public CVentanaProgramas(CViewsManager vm)
 {
     view                       = (vm.getFirstView("GestorProgramas.VentanaProgramas") != null)? vm.getFirstView("GestorProgramas.VentanaProgramas"): vm.AddView("GestorProgramas.VentanaProgramas");
     VentanaProgramas           = (System.Windows.Forms.Form)view.getCtrl("GestorProgramas.VentanaProgramas");
     VentanaProgramas_cstr      = view.getCtrlStruct("GestorProgramas.VentanaProgramas");
     PProcesses                 = (System.Windows.Forms.Panel)view.getCtrl("PProcesses");
     PProcesses_cstr            = view.getCtrlStruct("PProcesses");
     PTop                       = (System.Windows.Forms.Panel)view.getCtrl("PTop");
     PTop_cstr                  = view.getCtrlStruct("PTop");
     PListaProcesos             = (System.Windows.Forms.Panel)view.getCtrl("PListaProcesos");
     PListaProcesos_cstr        = view.getCtrlStruct("PListaProcesos");
     ListaProcesos              = (System.Windows.Forms.DataGridView)view.getCtrl("ListaProcesos");
     ListaProcesos_cstr         = view.getCtrlStruct("ListaProcesos");
     contextMenu_LProcesos      = (System.Windows.Forms.ContextMenuStrip)view.getCtrl("contextMenu_LProcesos");
     contextMenu_LProcesos_cstr = view.getCtrlStruct("contextMenu_LProcesos");
     PanelArbolProgramas        = (System.Windows.Forms.Panel)view.getCtrl("PanelArbolProgramas");
     PanelArbolProgramas_cstr   = view.getCtrlStruct("PanelArbolProgramas");
     ArbolProgramas             = (System.Windows.Forms.TreeView)view.getCtrl("ArbolProgramas");
     ArbolProgramas_cstr        = view.getCtrlStruct("ArbolProgramas");
     contextMenu_Programas      = (System.Windows.Forms.ContextMenuStrip)view.getCtrl("contextMenu_Programas");
     contextMenu_Programas_cstr = view.getCtrlStruct("contextMenu_Programas");
     MenuTop                    = (System.Windows.Forms.ToolStrip)view.getCtrl("MenuTop");
     MenuTop_cstr               = view.getCtrlStruct("MenuTop");
     OpenXML_Document           = new o_OpenXML_Document(view);
     Cargar_arbol_recursivo     = new o_Cargar_arbol_recursivo(view);
 }
예제 #19
0
        /// <summary>
        /// Instantiates a TreeModelViewImpl.  
        /// This contains the implementation of the Tree Model View.  
        /// The Tree Model View is the graphical user interface for the tree model and its nodes.
        /// </summary>
        /// <param name="formWindow"></param>
        /// <param name="formTreeView"></param>
        public TreeModelViewImpl(Forms.IpcTreeWebWindow formWindow, System.Windows.Forms.TreeView formTreeView)
        {
            _formTreeNodes = new SortedList<string, FormTreeNodeContainer>();

            _formWindow = formWindow;
            _treeView = formTreeView;
        }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PickEntryStep));
     this.treeView   = new System.Windows.Forms.TreeView();
     this.treeImages = new System.Windows.Forms.ImageList(this.components);
     this.SuspendLayout();
     //
     // treeView
     //
     resources.ApplyResources(this.treeView, "treeView");
     this.treeView.FullRowSelect = true;
     this.treeView.HideSelection = false;
     this.treeView.ImageList     = this.treeImages;
     this.treeView.Name          = "treeView";
     this.treeView.DoubleClick  += new System.EventHandler(this.TreeView_DoubleClick);
     //
     // treeImages
     //
     this.treeImages.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit;
     resources.ApplyResources(this.treeImages, "treeImages");
     this.treeImages.TransparentColor = System.Drawing.Color.Transparent;
     //
     // PickEntryStep
     //
     resources.ApplyResources(this, "$this");
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.BackColor     = System.Drawing.Color.Transparent;
     this.Controls.Add(this.treeView);
     this.Name = "PickEntryStep";
     this.Tag  = "Double click on the file in the directory tree below to be the entry point for yo" +
                 "ur application.  This should be an executable.";
     this.ResumeLayout(false);
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SolutionPickerControl));
     this.treeIcons    = new System.Windows.Forms.ImageList(this.components);
     this.solutionTree = new System.Windows.Forms.TreeView();
     this.SuspendLayout();
     //
     // treeIcons
     //
     this.treeIcons.ColorDepth = System.Windows.Forms.ColorDepth.Depth24Bit;
     resources.ApplyResources(this.treeIcons, "treeIcons");
     this.treeIcons.TransparentColor = System.Drawing.Color.Magenta;
     //
     // solutionTree
     //
     resources.ApplyResources(this.solutionTree, "solutionTree");
     this.solutionTree.ImageList     = this.treeIcons;
     this.solutionTree.Name          = "solutionTree";
     this.solutionTree.Sorted        = true;
     this.solutionTree.BeforeExpand += new System.Windows.Forms.TreeViewCancelEventHandler(this.OnBeforeExpand);
     this.solutionTree.AfterSelect  += new System.Windows.Forms.TreeViewEventHandler(this.OnSelect);
     //
     // SolutionPickerControl
     //
     resources.ApplyResources(this, "$this");
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.solutionTree);
     this.Name = "SolutionPickerControl";
     this.ResumeLayout(false);
 }
        /// <summary>
        /// Instantiates a new IpcEventTreeModelAdapter.
        /// </summary>
        /// <param name="formWindow"></param>
        /// <param name="formTreeView"></param>
        public IpcEventTreeModelAdapter(Forms.IpcTreeWebWindow formWindow, Forms.IpcEventMonitorMdiWindow mdiWindow, System.Windows.Forms.TreeView formTreeView)
        {
            _webURL = "file:///{0}/Html/IpcEventMonitorPane.html";

            _formWindow = formWindow;
            _mdiWindow = mdiWindow;
            _formTreeView = formTreeView;
            _webBrowser = _formWindow.WebBrowser1;

            //create utility bus
            _utilsBus = new Niawa.Utilities.UtilsServiceBus();

            //set up ipc logging for this class (to log events that occur in the tree model)
            _evtWriter = new Niawa.MsEventIpcEventAdapter.MsEventIpcEventWriter(_utilsBus);
            _evtWriter.Start();
            _evtWriter.AddIpcEventWriter(Niawa.IpcController.IpcFactory.CreateIpcEventWriter("IpcEventMonitor", true, "TreeModel", _utilsBus), "TreeModel");

            //instantiate view
            _view = new TreeModel.TreeModelViewImpl(_formWindow, _formTreeView);

            //instantiate node view factory
            _nodeViewFactory = new TreeModel.TreeModelNodeViewFactoryImpl(_webBrowser, _webURL);

            //instantiate tree model controller
            _treeModelController = new TreeModelNodeControls.TreeModelController(_view, _nodeViewFactory, _evtWriter.EvtConsumer, "IpcEventMonitor", string.Empty);
        }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.splitContainer1 = new System.Windows.Forms.SplitContainer();
       this.listBox1 = new System.Windows.Forms.ListBox();
       this.tv = new System.Windows.Forms.TreeView();
       this.splitContainer1.Panel1.SuspendLayout();
       this.splitContainer1.Panel2.SuspendLayout();
       this.splitContainer1.SuspendLayout();
       this.SuspendLayout();
       //
       // splitContainer1
       //
       this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
       this.splitContainer1.Location = new System.Drawing.Point( 0, 0 );
       this.splitContainer1.Name = "splitContainer1";
       //
       // splitContainer1.Panel1
       //
       this.splitContainer1.Panel1.Controls.Add( this.listBox1 );
       //
       // splitContainer1.Panel2
       //
       this.splitContainer1.Panel2.Controls.Add( this.tv );
       this.splitContainer1.Size = new System.Drawing.Size( 459, 556 );
       this.splitContainer1.SplitterDistance = 153;
       this.splitContainer1.TabIndex = 0;
       //
       // listBox1
       //
       this.listBox1.Dock = System.Windows.Forms.DockStyle.Fill;
       this.listBox1.FormattingEnabled = true;
       this.listBox1.Location = new System.Drawing.Point( 0, 0 );
       this.listBox1.Name = "listBox1";
       this.listBox1.Size = new System.Drawing.Size( 153, 550 );
       this.listBox1.Sorted = true;
       this.listBox1.TabIndex = 0;
       this.listBox1.SelectedIndexChanged += new System.EventHandler( this.listBox1_SelectedIndexChanged );
       //
       // tv
       //
       this.tv.Dock = System.Windows.Forms.DockStyle.Fill;
       this.tv.Location = new System.Drawing.Point( 0, 0 );
       this.tv.Name = "tv";
       this.tv.Size = new System.Drawing.Size( 302, 556 );
       this.tv.TabIndex = 0;
       //
       // CmdInspectElectricalForm2
       //
       this.AutoScaleDimensions = new System.Drawing.SizeF( 6F, 13F );
       this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
       this.ClientSize = new System.Drawing.Size( 459, 556 );
       this.Controls.Add( this.splitContainer1 );
       this.Name = "CmdInspectElectricalForm2";
       this.Text = "Electrical System Inspector";
       this.splitContainer1.Panel1.ResumeLayout( false );
       this.splitContainer1.Panel2.ResumeLayout( false );
       this.splitContainer1.ResumeLayout( false );
       this.ResumeLayout( false );
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Windows.Forms.TreeNode treeNode1 = new System.Windows.Forms.TreeNode("Bitbucket");
     this.treeView1 = new System.Windows.Forms.TreeView();
     this.button1 = new System.Windows.Forms.Button();
     this.textBox1 = new System.Windows.Forms.TextBox();
     this.textBox2 = new System.Windows.Forms.TextBox();
     this.SuspendLayout();
     //
     // treeView1
     //
     this.treeView1.Location = new System.Drawing.Point(12, 41);
     this.treeView1.Name = "treeView1";
     treeNode1.Name = "root";
     treeNode1.Text = "Bitbucket";
     this.treeView1.Nodes.AddRange(new System.Windows.Forms.TreeNode[] {
     treeNode1});
     this.treeView1.Size = new System.Drawing.Size(776, 397);
     this.treeView1.TabIndex = 0;
     //
     // button1
     //
     this.button1.Location = new System.Drawing.Point(12, 12);
     this.button1.Name = "button1";
     this.button1.Size = new System.Drawing.Size(75, 23);
     this.button1.TabIndex = 1;
     this.button1.Text = "button1";
     this.button1.UseVisualStyleBackColor = true;
     this.button1.Click += new System.EventHandler(this.button1_Click);
     //
     // textBox1
     //
     this.textBox1.Location = new System.Drawing.Point(93, 12);
     this.textBox1.Name = "textBox1";
     this.textBox1.Size = new System.Drawing.Size(100, 20);
     this.textBox1.TabIndex = 2;
     //
     // textBox2
     //
     this.textBox2.Location = new System.Drawing.Point(199, 12);
     this.textBox2.Name = "textBox2";
     this.textBox2.Size = new System.Drawing.Size(100, 20);
     this.textBox2.TabIndex = 3;
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(800, 450);
     this.Controls.Add(this.textBox2);
     this.Controls.Add(this.textBox1);
     this.Controls.Add(this.button1);
     this.Controls.Add(this.treeView1);
     this.Name = "Form1";
     this.Text = "Form1";
     this.Shown += new System.EventHandler(this.Form1_Shown);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(TargetsWindow));
     this._targetsContextMenu = new System.Windows.Forms.ContextMenuStrip(this.components);
     this._runMenuItem        = new System.Windows.Forms.ToolStripMenuItem();
     this._treeView           = new System.Windows.Forms.TreeView();
     this._toolTip            = new System.Windows.Forms.ToolTip(this.components);
     this._targetsContextMenu.SuspendLayout();
     this.SuspendLayout();
     //
     // _targetsContextMenu
     //
     this._targetsContextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this._runMenuItem
     });
     this._targetsContextMenu.Name = "_targetsPopupMenu";
     this._targetsContextMenu.Size = new System.Drawing.Size(153, 48);
     //
     // _runMenuItem
     //
     this._runMenuItem.Image        = ((System.Drawing.Image)(resources.GetObject("_runMenuItem.Image")));
     this._runMenuItem.Name         = "_runMenuItem";
     this._runMenuItem.ShortcutKeys = System.Windows.Forms.Keys.F5;
     this._runMenuItem.Size         = new System.Drawing.Size(152, 22);
     this._runMenuItem.Text         = "&Run";
     this._runMenuItem.ToolTipText  = "Builds the selected target";
     this._runMenuItem.Click       += new System.EventHandler(this.RunMenuItemClick);
     //
     // _treeView
     //
     this._treeView.CheckBoxes       = true;
     this._treeView.ContextMenuStrip = this._targetsContextMenu;
     this._treeView.Dock             = System.Windows.Forms.DockStyle.Fill;
     this._treeView.Location         = new System.Drawing.Point(0, 0);
     this._treeView.Name             = "_treeView";
     this._treeView.Size             = new System.Drawing.Size(292, 266);
     this._treeView.TabIndex         = 6;
     this._treeView.AfterCheck      += new System.Windows.Forms.TreeViewEventHandler(this.TreeViewAfterCheck);
     this._treeView.MouseClick      += new System.Windows.Forms.MouseEventHandler(this._treeView_MouseClick);
     this._treeView.MouseMove       += new System.Windows.Forms.MouseEventHandler(this.TreeViewMouseMove);
     //
     // TargetsWindow
     //
     this.ClientSize = new System.Drawing.Size(292, 266);
     this.Controls.Add(this._treeView);
     this.DockAreas = ((WeifenLuo.WinFormsUI.Docking.DockAreas)(((((WeifenLuo.WinFormsUI.Docking.DockAreas.Float | WeifenLuo.WinFormsUI.Docking.DockAreas.DockLeft)
                                                                   | WeifenLuo.WinFormsUI.Docking.DockAreas.DockRight)
                                                                  | WeifenLuo.WinFormsUI.Docking.DockAreas.DockTop)
                                                                 | WeifenLuo.WinFormsUI.Docking.DockAreas.DockBottom)));
     this.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Icon     = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name     = "TargetsWindow";
     this.ShowHint = WeifenLuo.WinFormsUI.Docking.DockState.DockLeft;
     this.TabText  = "Targets";
     this.Text     = "Targets";
     this._targetsContextMenu.ResumeLayout(false);
     this.ResumeLayout(false);
 }
예제 #26
0
        private int buildGeoPiece(ArrayList fileContent, int index, System.Windows.Forms.TreeView tv, System.Windows.Forms.TreeNode pTn)
        {
            GeoPiece gPiece = new GeoPiece(fileContent, index, fileName, tv, pTn);

            geoPiecesArrayList.Add(gPiece);

            return(gPiece.getLastIndex());
        }
예제 #27
0
        private int buildGeoSets(ArrayList fileContent, int index, System.Windows.Forms.TreeView tv, System.Windows.Forms.TreeNode pTn)
        {
            GeoSet gSet = new GeoSet(fileContent, index, fileName, tv, pTn);

            geoSetsArrayList.Add(gSet);

            return(gSet.getLastIndex());
        }
예제 #28
0
        public string createTreeViewNodes(System.Windows.Forms.TreeView tv,
                                          System.Windows.Forms.TreeNodeMouseClickEventHandler tNmouseClickEH)
        {
            try
            {
                //Cursor.Current = System.Windows.Forms.Cursors.WaitCursor;
                string dNameHeader   = "\tDisplayName";
                string includeHeader = "\tInclude";
                //this.CostumeTV_lable.Text = fileName;
                StreamReader sr = new StreamReader(filePath);
                String       line, displayName = "";
                tv.BeginUpdate();

                // Clear the TreeView each time the method is called.
                tv.Nodes.Clear();
                tv.NodeMouseDoubleClick += tNmouseClickEH;
                while ((line = sr.ReadLine()) != null)
                {
                    if (line.StartsWith(dNameHeader))
                    {
                        int startIndex = line.IndexOf('\"');
                        int endIndex   = line.IndexOf('\"', startIndex + 1);
                        int nameLen    = endIndex - startIndex;
                        displayName = line.Substring(startIndex + 1, nameLen - 1);
                        tv.Nodes.Add(new System.Windows.Forms.TreeNode(displayName));
                    }
                    if (line.StartsWith(includeHeader))
                    {
                        int    startIndex       = includeHeader.Length;
                        int    nameLen          = line.Length - startIndex;
                        string includeStatement = line.Substring(1, line.Length - 1);
                        string includeName      = line.Substring(startIndex + 1, nameLen - 1);
                        string ctmFileName      = Path.GetFileName(includeName);
                        string fullPath         = pathRoot + includeName;

                        bool exists = File.Exists(fullPath);
                        System.Windows.Forms.TreeNode chTNode = new System.Windows.Forms.TreeNode(ctmFileName);
                        chTNode.ToolTipText = includeName;
                        chTNode.Tag         = fullPath;
                        if (!exists)
                        {
                            chTNode.ForeColor = System.Drawing.Color.Red;
                        }
                        tv.Nodes[tv.Nodes.Count - 1].Nodes.Add(chTNode);
                    }
                }
                sr.Close();
                //Cursor.Current = Cursors.Default;

                // Begin repainting the TreeView.
                tv.EndUpdate();
                return("built treeview \r\n");
            }
            catch (Exception e)
            {
                return(e.Message + "\r\n");
            }
        }
예제 #29
0
 /// <summary>
 /// This method is required for Windows Forms designer support.
 /// Do not change the method contents inside the source code editor. The Forms designer might
 /// not be able to load this method if it was changed manually.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DDTree));
     this.textBox1    = new System.Windows.Forms.TextBox();
     this.treeView1   = new System.Windows.Forms.TreeView();
     this.pictureBox1 = new System.Windows.Forms.PictureBox();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
     this.SuspendLayout();
     //
     // textBox1
     //
     this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                  | System.Windows.Forms.AnchorStyles.Right)));
     this.textBox1.Location = new System.Drawing.Point(6, 3);
     this.textBox1.Name     = "textBox1";
     this.textBox1.ReadOnly = true;
     this.textBox1.Size     = new System.Drawing.Size(155, 21);
     this.textBox1.TabIndex = 0;
     //
     // treeView1
     //
     this.treeView1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this.treeView1.BorderStyle  = System.Windows.Forms.BorderStyle.FixedSingle;
     this.treeView1.Location     = new System.Drawing.Point(6, 30);
     this.treeView1.Name         = "treeView1";
     this.treeView1.Size         = new System.Drawing.Size(182, 139);
     this.treeView1.TabIndex     = 2;
     this.treeView1.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.TreeView1AfterSelect);
     this.treeView1.MouseLeave  += new System.EventHandler(this.TreeView1MouseLeave);
     //
     // pictureBox1
     //
     this.pictureBox1.Anchor          = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.pictureBox1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("pictureBox1.BackgroundImage")));
     this.pictureBox1.Location        = new System.Drawing.Point(162, 3);
     this.pictureBox1.Name            = "pictureBox1";
     this.pictureBox1.Size            = new System.Drawing.Size(26, 24);
     this.pictureBox1.TabIndex        = 3;
     this.pictureBox1.TabStop         = false;
     this.pictureBox1.Click          += new System.EventHandler(this.PictureBox1Click);
     this.pictureBox1.MouseEnter     += new System.EventHandler(this.PictureBox1MouseEnter);
     this.pictureBox1.MouseLeave     += new System.EventHandler(this.PictureBox1MouseLeave);
     //
     // DDTree
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.treeView1);
     this.Controls.Add(this.pictureBox1);
     this.Controls.Add(this.textBox1);
     this.Name  = "DDTree";
     this.Size  = new System.Drawing.Size(195, 175);
     this.Load += new System.EventHandler(this.DDTreeLoad);
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
예제 #30
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.splitContainer1 = new System.Windows.Forms.SplitContainer();
     this.treeView1 = new System.Windows.Forms.TreeView();
     this.panel = new System.Windows.Forms.Panel();
     this.splitContainer1.Panel1.SuspendLayout();
     this.splitContainer1.Panel2.SuspendLayout();
     this.splitContainer1.SuspendLayout();
     this.SuspendLayout();
     //
     // splitContainer1
     //
     this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.splitContainer1.Location = new System.Drawing.Point(0, 0);
     this.splitContainer1.Name = "splitContainer1";
     //
     // splitContainer1.Panel1
     //
     this.splitContainer1.Panel1.Controls.Add(this.treeView1);
     //
     // splitContainer1.Panel2
     //
     this.splitContainer1.Panel2.Controls.Add(this.panel);
     this.splitContainer1.Size = new System.Drawing.Size(635, 342);
     this.splitContainer1.SplitterDistance = 211;
     this.splitContainer1.TabIndex = 0;
     //
     // treeView1
     //
     this.treeView1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.treeView1.Location = new System.Drawing.Point(0, 0);
     this.treeView1.Name = "treeView1";
     this.treeView1.Size = new System.Drawing.Size(211, 342);
     this.treeView1.TabIndex = 0;
     this.treeView1.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeView1_AfterSelect);
     //
     // panel
     //
     this.panel.Dock = System.Windows.Forms.DockStyle.Fill;
     this.panel.Location = new System.Drawing.Point(0, 0);
     this.panel.Name = "panel";
     this.panel.Size = new System.Drawing.Size(420, 342);
     this.panel.TabIndex = 0;
     //
     // FormOptionPage
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(635, 342);
     this.Controls.Add(this.splitContainer1);
     this.Name = "FormOptionPage";
     this.Text = "FormOptionPage";
     this.Load += new System.EventHandler(this.FormOptionPage_Load);
     this.splitContainer1.Panel1.ResumeLayout(false);
     this.splitContainer1.Panel2.ResumeLayout(false);
     this.splitContainer1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
예제 #31
0
        public static BidirectionalGraph <object, IEdge <object> > getGraph(this System.Windows.Forms.TreeView treeView, bool recursive)
        {
            var graph = new BidirectionalGraph <object, IEdge <object> >();

            treeView.nodes().forEach <System.Windows.Forms.TreeNode>(
                (childNode) => graph.addFromTreeNode(childNode, recursive));

            return(graph);
        }
 /// <summary>
 /// デザイナ サポートに必要なメソッドです。このメソッドの内容を
 /// コード エディタで変更しないでください。
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(VariableSelectDialog));
     this.selectTree = new System.Windows.Forms.TreeView();
     this.VSProductButton = new System.Windows.Forms.Button();
     this.VSCloseButton = new System.Windows.Forms.Button();
     this.VSSourceButton = new System.Windows.Forms.Button();
     this.VSConstantButton = new System.Windows.Forms.Button();
     this.SuspendLayout();
     //
     // selectTree
     //
     resources.ApplyResources(this.selectTree, "selectTree");
     this.selectTree.Name = "selectTree";
     this.selectTree.NodeMouseDoubleClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.SelectTreeDoubleClick);
     //
     // VSProductButton
     //
     resources.ApplyResources(this.VSProductButton, "VSProductButton");
     this.VSProductButton.Name = "VSProductButton";
     this.VSProductButton.UseVisualStyleBackColor = true;
     this.VSProductButton.Click += new System.EventHandler(this.ProductButtonClick);
     //
     // VSCloseButton
     //
     resources.ApplyResources(this.VSCloseButton, "VSCloseButton");
     this.VSCloseButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.VSCloseButton.Name = "VSCloseButton";
     this.VSCloseButton.UseVisualStyleBackColor = true;
     //
     // VSSourceButton
     //
     resources.ApplyResources(this.VSSourceButton, "VSSourceButton");
     this.VSSourceButton.Name = "VSSourceButton";
     this.VSSourceButton.UseVisualStyleBackColor = true;
     this.VSSourceButton.Click += new System.EventHandler(this.SourceButtonClick);
     //
     // VSConstantButton
     //
     resources.ApplyResources(this.VSConstantButton, "VSConstantButton");
     this.VSConstantButton.Name = "VSConstantButton";
     this.VSConstantButton.UseVisualStyleBackColor = true;
     this.VSConstantButton.Click += new System.EventHandler(this.ConstantButtonClick);
     //
     // VariableSelectDialog
     //
     resources.ApplyResources(this, "$this");
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.CancelButton = this.VSCloseButton;
     this.Controls.Add(this.VSProductButton);
     this.Controls.Add(this.selectTree);
     this.Controls.Add(this.VSSourceButton);
     this.Controls.Add(this.VSCloseButton);
     this.Controls.Add(this.VSConstantButton);
     this.Name = "VariableSelectDialog";
     this.ResumeLayout(false);
 }
예제 #33
0
        public CADBrower(System.Windows.Forms.TreeView _treeView, AnyCAD.Presentation.RenderWindow3d _renderView)
        {
            treeView   = _treeView;
            renderView = _renderView;
            faceStyle  = new FaceStyle();

            System.Windows.Forms.TreeNode node = treeView.Nodes.Add("AnyCAD.net");
            nodeStack.Push(node);
        }
예제 #34
0
        private void cleanUpTv(System.Windows.Forms.TreeView tv, System.Windows.Forms.TreeNodeMouseClickEventHandler tNmouseClickEH)
        {
            tv.NodeMouseDoubleClick -= tNmouseClickEH;

            foreach (System.Windows.Forms.TreeNode tn in tv.Nodes)
            {
                cleanUpTn(tn);
            }
        }
예제 #35
0
 /// <summary> 
 /// 设计器支持所需的方法 - 不要
 /// 使用代码编辑器修改此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     this.btnOK = new System.Windows.Forms.Button();
     this.btnRet = new System.Windows.Forms.Button();
     this.testPointView = new System.Windows.Forms.TreeView();
     this.checkedListBox1 = new System.Windows.Forms.CheckedListBox();
     this.SuspendLayout();
     //
     // btnOK
     //
     this.btnOK.Location = new System.Drawing.Point(294, 422);
     this.btnOK.Name = "btnOK";
     this.btnOK.Size = new System.Drawing.Size(124, 34);
     this.btnOK.TabIndex = 7;
     this.btnOK.Text = "添加考点";
     this.btnOK.UseVisualStyleBackColor = true;
     this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
     //
     // btnRet
     //
     this.btnRet.Location = new System.Drawing.Point(441, 422);
     this.btnRet.Name = "btnRet";
     this.btnRet.Size = new System.Drawing.Size(112, 34);
     this.btnRet.TabIndex = 6;
     this.btnRet.Text = "返回";
     this.btnRet.UseVisualStyleBackColor = true;
     this.btnRet.Click += new System.EventHandler(this.btnRet_Click);
     //
     // testPointView
     //
     this.testPointView.Location = new System.Drawing.Point(7, 8);
     this.testPointView.Name = "testPointView";
     this.testPointView.Size = new System.Drawing.Size(281, 448);
     this.testPointView.TabIndex = 5;
     this.testPointView.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.testPointView_AfterSelect);
     //
     // checkedListBox1
     //
     this.checkedListBox1.FormattingEnabled = true;
     this.checkedListBox1.HorizontalScrollbar = true;
     this.checkedListBox1.Location = new System.Drawing.Point(294, 8);
     this.checkedListBox1.Name = "checkedListBox1";
     this.checkedListBox1.Size = new System.Drawing.Size(259, 404);
     this.checkedListBox1.TabIndex = 4;
     //
     // testPowerpoint
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.btnOK);
     this.Controls.Add(this.btnRet);
     this.Controls.Add(this.testPointView);
     this.Controls.Add(this.checkedListBox1);
     this.Name = "testPowerpoint";
     this.Size = new System.Drawing.Size(567, 468);
     this.ResumeLayout(false);
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.tree = new System.Windows.Forms.TreeView();
     this.btnEnd = new System.Windows.Forms.Button();
     this.btnClose = new System.Windows.Forms.Button();
     this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
     this.SuspendLayout();
     //
     // tree
     //
     this.tree.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.tree.CheckBoxes = true;
     this.tree.Location = new System.Drawing.Point(12, 12);
     this.tree.Name = "tree";
     this.tree.Size = new System.Drawing.Size(424, 367);
     this.tree.TabIndex = 0;
     //
     // btnEnd
     //
     this.btnEnd.Location = new System.Drawing.Point(446, 307);
     this.btnEnd.Name = "btnEnd";
     this.btnEnd.Size = new System.Drawing.Size(75, 23);
     this.btnEnd.TabIndex = 1;
     this.btnEnd.Text = "Готово";
     this.btnEnd.UseVisualStyleBackColor = true;
     this.btnEnd.Click += new System.EventHandler(this.button1_Click);
     //
     // btnClose
     //
     this.btnClose.Location = new System.Drawing.Point(446, 352);
     this.btnClose.Name = "btnClose";
     this.btnClose.Size = new System.Drawing.Size(75, 23);
     this.btnClose.TabIndex = 2;
     this.btnClose.Text = "Отмена";
     this.btnClose.UseVisualStyleBackColor = true;
     this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
     //
     // openFileDialog1
     //
     this.openFileDialog1.FileName = "openFileDialog1";
     this.openFileDialog1.Filter = "XML Files|*.xml";
     this.openFileDialog1.Title = "\"Select XML File\"";
     //
     // AddPartTree
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(529, 391);
     this.Controls.Add(this.btnClose);
     this.Controls.Add(this.btnEnd);
     this.Controls.Add(this.tree);
     this.Name = "AddPartTree";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "Выбор разделов";
     this.Load += new System.EventHandler(this.AddPartTree_Load);
     this.ResumeLayout(false);
 }
예제 #37
0
파일: Engine.cs 프로젝트: radtek/Gradual
 public static void ConfigureControl_TreeView(System.Windows.Forms.TreeView pControl)
 {
     if (pControl.Tag == null || (pControl.Tag != null && pControl.Tag != "SemRenderizacao"))
     {
         pControl.BorderStyle = System.Windows.Forms.BorderStyle.None;
         pControl.BackColor   = StyleSettings.TextBox_BackGround_Color_Start;
         pControl.ForeColor   = StyleSettings.TextBox_Text_ForeColor;
         pControl.LineColor   = StyleSettings.TextBox_Text_ForeColor;
     }
 }
예제 #38
0
        public static TreeNode BuildHierarchy(DataTable dt)
        {
            if (dt != null)
            {
                var nodes = new Dictionary <object, TreeNode>(dt.Rows.Count + 1);
                for (int i = 0; i < dt.Rows.Count; i++)
                {
                    DataRow r = dt.Rows[i];

                    object parentId = r["ParentItemId"];
                    object childId  = r["ItemId"];
                    string text     = r["Name"].ToString();

                    TreeNode parent;
                    if (!nodes.TryGetValue(parentId, out parent))
                    {
                        parent = new TreeNode
                        {
                            Tag = parentId
                        };
                        nodes.Add(parentId, parent);
                    }

                    TreeNode child;
                    if (!nodes.TryGetValue(childId, out child))
                    {
                        child = new TreeNode
                        {
                            Tag = childId
                        };
                        nodes.Add(childId, child);
                    }

                    child.Text = text;
                    parent.Nodes.Add(child);
                }

                var root = new TreeNode("Root");
                foreach (var node in nodes.Values)
                {
                    if (node.Parent == null || (string.IsNullOrEmpty(node.Parent.Text) && node.Parent.Tag == null))
                    {
                        root.Nodes.Add(node);
                    }
                }

                // Full path can only be retrieved when a TreeNode has been added to a TreeView
                using (var treeView = new TreeView())
                    treeView.Nodes.Add(root);

                return(root);
            }

            return(null);
        }
예제 #39
0
        public CADBrower(System.Windows.Forms.TreeView _treeView, AnyCAD.Presentation.RenderWindow3d _renderView)
        {
            treeView = _treeView;
            renderView = _renderView;
            faceStyle = new FaceStyle();

            System.Windows.Forms.TreeNode node = treeView.Nodes.Add("AnyCAD.net");
            nodeStack.Push(node);

            fileSys = new StreamWriter("d:/xxx.txt");
        }
예제 #40
0
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		void InitializeComponent() {
			treeView1 = new System.Windows.Forms.TreeView();
			richTextBox1 = new System.Windows.Forms.RichTextBox();
			tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
			tableLayoutPanel1.SuspendLayout();
			SuspendLayout();
			// 
			// treeView1
			// 
			treeView1.Dock = System.Windows.Forms.DockStyle.Fill;
			treeView1.Location = new System.Drawing.Point(13, 13);
			treeView1.Name = "treeView1";
			treeView1.Size = new System.Drawing.Size(114, 391);
			treeView1.TabIndex = 0;
			// 
			// richTextBox1
			// 
			richTextBox1.Dock = System.Windows.Forms.DockStyle.Fill;
			richTextBox1.Location = new System.Drawing.Point(133, 13);
			richTextBox1.Name = "richTextBox1";
			richTextBox1.ReadOnly = true;
			richTextBox1.ShortcutsEnabled = false;
			richTextBox1.Size = new System.Drawing.Size(432, 391);
			richTextBox1.TabIndex = 1;
			richTextBox1.Text = "";
			// 
			// tableLayoutPanel1
			// 
			tableLayoutPanel1.ColumnCount = 2;
			tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 120F));
			tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
			tableLayoutPanel1.Controls.Add(treeView1);
			tableLayoutPanel1.Controls.Add(richTextBox1, 1, 0);
			tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
			tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
			tableLayoutPanel1.Name = "tableLayoutPanel1";
			tableLayoutPanel1.Padding = new System.Windows.Forms.Padding(10);
			tableLayoutPanel1.RowCount = 1;
			tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
			tableLayoutPanel1.Size = new System.Drawing.Size(578, 417);
			tableLayoutPanel1.TabIndex = 2;
			// 
			// HelpForm
			// 
			AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			ClientSize = new System.Drawing.Size(578, 417);
			Controls.Add(tableLayoutPanel1);
			Name = "HelpForm";
			Text = "HelpForm";
			tableLayoutPanel1.ResumeLayout(false);
			ResumeLayout (false);

		}
예제 #41
0
        public void initialize(ArrayList fileContent, int index, string filename, System.Windows.Forms.TreeView tv, System.Windows.Forms.TreeNode bonSetTn)
        {
            System.Windows.Forms.TreeNode pTn = new System.Windows.Forms.TreeNode();

            System.Windows.Forms.TreeNode tnChild = null;

            pathRoot = common.COH_IO.getRootPath(filename);

            this.fileName = filename;

            geoPiecesArrayList = new ArrayList();

            members = new ArrayList();

            startIndex = index;

            int i = prep(fileContent, filename, ref pTn);

            for ( ; i < fileContent.Count; i++)
            {
                string str      = (string)fileContent[i];
                string strNoTab = common.COH_IO.stripWS_Tabs_newLine_Qts(str, false);

                if (strNoTab.ToLower().StartsWith("info"))
                {
                    i = buildGeoPiece(fileContent, i, tv, pTn);
                }

                else if (strNoTab.ToLower().StartsWith("end"))
                {
                    this.lastIndex = i;
                    break;
                }
                else
                {
                    members.Add(str);
                    if (strNoTab.Length > 2 && !strNoTab.StartsWith("//"))
                    {
                        tnChild = createTreeNode(strNoTab, str, "tNGSChild_" + i);
                        common.COH_IO.setImageIndex(ref tnChild, str);
                        pTn.Nodes.Add(tnChild);
                    }
                }
            }

            if (bonSetTn != null)
            {
                bonSetTn.Nodes.Add(pTn);
            }
            else
            {
                tv.Nodes.Add(pTn);
            }
        }
예제 #42
0
        // 重载……
        static public bool rsBindTree(System.Data.DataSet dst, System.Windows.Forms.TreeView tvw
                                      , int Levels, string ImageIndex, string RootName)
        {
            bool blnResult;

            if (blnResult = rsBindTree(dst, tvw, Levels, ImageIndex))
            {
                tvw.Nodes[0].Text = RootName;
            }

            return(blnResult);
        }
예제 #43
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.button2 = new System.Windows.Forms.Button();
     treeView1    = new System.Windows.Forms.TreeView();
     this.button1 = new System.Windows.Forms.Button();
     this.SuspendLayout();
     //
     // button2
     //
     this.button2.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.button2.Font     = new System.Drawing.Font("Tahoma", 10F);
     this.button2.Location = new System.Drawing.Point(566, 498);
     this.button2.Name     = "button2";
     this.button2.Size     = new System.Drawing.Size(100, 50);
     this.button2.TabIndex = 2;
     this.button2.Text     = "START UPDATE";
     this.button2.UseVisualStyleBackColor = true;
     this.button2.Click += new System.EventHandler(this.button2_Click);
     //
     // treeView1
     //
     treeView1.LabelEdit    = true;
     treeView1.Location     = new System.Drawing.Point(12, 12);
     treeView1.Name         = "treeView1";
     treeView1.Size         = new System.Drawing.Size(519, 536);
     treeView1.TabIndex     = 3;
     treeView1.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeView1_AfterSelect);
     //
     // button1
     //
     this.button1.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.button1.Font     = new System.Drawing.Font("Tahoma", 10F);
     this.button1.Location = new System.Drawing.Point(672, 498);
     this.button1.Name     = "button1";
     this.button1.Size     = new System.Drawing.Size(100, 50);
     this.button1.TabIndex = 4;
     this.button1.Text     = "STOP";
     this.button1.UseVisualStyleBackColor = true;
     this.button1.Click += new System.EventHandler(this.button1_Click);
     //
     // Form2
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(784, 561);
     this.Controls.Add(this.button1);
     this.Controls.Add(treeView1);
     this.Controls.Add(this.button2);
     this.Name          = "Form2";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "Result";
     this.ResumeLayout(false);
 }
예제 #44
0
 /// <summary>
 /// デザイナ サポートに必要なメソッドです。このメソッドの内容を
 /// コード エディタで変更しないでください。
 /// </summary>
 private void InitializeComponent()
 {
     this.treeView1 = new System.Windows.Forms.TreeView();
     this.splitter1 = new System.Windows.Forms.Splitter();
     this.textBox1  = new System.Windows.Forms.TextBox();
     this.SuspendLayout();
     //
     // treeView1
     //
     this.treeView1.AllowDrop          = true;
     this.treeView1.Dock               = System.Windows.Forms.DockStyle.Left;
     this.treeView1.ImageIndex         = -1;
     this.treeView1.LabelEdit          = true;
     this.treeView1.Location           = new System.Drawing.Point(0, 0);
     this.treeView1.Name               = "treeView1";
     this.treeView1.SelectedImageIndex = -1;
     this.treeView1.Size               = new System.Drawing.Size(200, 389);
     this.treeView1.TabIndex           = 0;
     //
     // splitter1
     //
     this.splitter1.Location = new System.Drawing.Point(200, 0);
     this.splitter1.Name     = "splitter1";
     this.splitter1.Size     = new System.Drawing.Size(3, 389);
     this.splitter1.TabIndex = 1;
     this.splitter1.TabStop  = false;
     //
     // textBox1
     //
     this.textBox1.AcceptsReturn = true;
     this.textBox1.AcceptsTab    = true;
     this.textBox1.Dock          = System.Windows.Forms.DockStyle.Fill;
     this.textBox1.Font          = new System.Drawing.Font("MS ゴシック", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(128)));
     this.textBox1.Location      = new System.Drawing.Point(203, 0);
     this.textBox1.Multiline     = true;
     this.textBox1.Name          = "textBox1";
     this.textBox1.ScrollBars    = System.Windows.Forms.ScrollBars.Both;
     this.textBox1.Size          = new System.Drawing.Size(445, 389);
     this.textBox1.TabIndex      = 2;
     this.textBox1.Text          = "";
     this.textBox1.WordWrap      = false;
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 12);
     this.ClientSize        = new System.Drawing.Size(648, 389);
     this.Controls.Add(this.textBox1);
     this.Controls.Add(this.splitter1);
     this.Controls.Add(this.treeView1);
     this.Name = "Form1";
     this.Text = "Form1";
     this.ResumeLayout(false);
 }
예제 #45
0
        public void editCostume_Piece(System.Windows.Forms.TreeNode tn,
                                      System.Windows.Forms.TreeView tv,
                                      System.Windows.Forms.TreeNodeMouseClickEventHandler tNmouseClickEH)
        {
            AddCostumePiece acp = new AddCostumePiece(this.filePath, ref this.fileContent, tn, 0, true, false);

            if (acp.showAddWindow())
            {
                buildTree(tv, tNmouseClickEH);
            }
            acp.Dispose();
        }
예제 #46
0
 private void CreateTreeView()
 {
     this.tree_result = new System.Windows.Forms.TreeView();
     // 
     // tree_result
     // 
     this.tree_result.Dock = System.Windows.Forms.DockStyle.Fill;
     this.tree_result.Location = new System.Drawing.Point(0, 0);
     this.tree_result.Name = "tree_result";
     this.tree_result.Size = new System.Drawing.Size(1048, 364);
     this.tree_result.TabIndex = 0;
     this.tab_result4.Controls.Add(this.tree_result);
 }
예제 #47
0
 private void CreateTreeView()
 {
     this.tree_result = new System.Windows.Forms.TreeView();
     //
     // tree_result
     //
     this.tree_result.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.tree_result.Location = new System.Drawing.Point(0, 0);
     this.tree_result.Name     = "tree_result";
     this.tree_result.Size     = new System.Drawing.Size(1048, 364);
     this.tree_result.TabIndex = 0;
     this.tab_result4.Controls.Add(this.tree_result);
 }
 /// <summary>
 /// Metodo necessario per il supporto della finestra di progettazione. Non modificare
 /// il contenuto del metodo con l'editor di codice.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmModelBrowser));
     this.tvModelBrowser = new System.Windows.Forms.TreeView();
     this.SuspendLayout();
     //
     // tvModelBrowser
     //
     this.tvModelBrowser.AllowDrop = true;
     this.tvModelBrowser.Dock = System.Windows.Forms.DockStyle.Fill;
     this.tvModelBrowser.HideSelection = false;
     this.tvModelBrowser.Location = new System.Drawing.Point(2, 2);
     this.tvModelBrowser.Name = "tvModelBrowser";
     this.tvModelBrowser.ShowNodeToolTips = true;
     this.tvModelBrowser.Size = new System.Drawing.Size(146, 224);
     this.tvModelBrowser.TabIndex = 1;
     this.tvModelBrowser.DragDrop += new System.Windows.Forms.DragEventHandler(this.tvModelBrowser_DragDrop);
     this.tvModelBrowser.BeforeExpand += new System.Windows.Forms.TreeViewCancelEventHandler(this.tvModelBrowser_BeforeExpand);
     this.tvModelBrowser.DragOver += new System.Windows.Forms.DragEventHandler(this.tvModelBrowser_DragOver);
     this.tvModelBrowser.Enter += new System.EventHandler(this.tvModelBrowser_Enter);
     this.tvModelBrowser.DoubleClick += new System.EventHandler(this.tvModelBrowser_DoubleClick);
     this.tvModelBrowser.BeforeCollapse += new System.Windows.Forms.TreeViewCancelEventHandler(this.tvModelBrowser_BeforeCollapse);
     this.tvModelBrowser.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.tvModelBrowser_AfterSelect);
     this.tvModelBrowser.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tvModelBrowser_KeyDown);
     this.tvModelBrowser.ItemDrag += new System.Windows.Forms.ItemDragEventHandler(this.tvModelBrowser_ItemDrag);
     this.tvModelBrowser.MouseDown += new System.Windows.Forms.MouseEventHandler(this.tvModelBrowser_MouseDown);
     //
     // frmModelBrowser
     //
     this.AllowEndUserDocking = false;
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(148, 226);
     this.CloseButton = false;
     this.ControlBox = false;
     this.Controls.Add(this.tvModelBrowser);
     this.DockAreas = WeifenLuo.WinFormsUI.Docking.DockAreas.DockLeft;
     this.HideOnClose = true;
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.Name = "frmModelBrowser";
     this.Padding = new System.Windows.Forms.Padding(2, 2, 0, 0);
     this.ShowHint = WeifenLuo.WinFormsUI.Docking.DockState.DockLeft;
     this.ShowIcon = false;
     this.ShowInTaskbar = false;
     this.TabText = "[Model Browser]";
     this.Text = "[Model Browser]";
     this.ResumeLayout(false);
 }
 /// <summary> 
 /// Required method for Designer support - do not modify 
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SiteCollectionDeploymentTargetsControl));
       this.webApplicationsLabel = new System.Windows.Forms.Label();
       this.hintLabel = new System.Windows.Forms.Label();
       this.siteCollectionsTreeView = new System.Windows.Forms.TreeView();
       this.SuspendLayout();
       //
       // webApplicationsLabel
       //
       this.webApplicationsLabel.AccessibleDescription = null;
       this.webApplicationsLabel.AccessibleName = null;
       resources.ApplyResources(this.webApplicationsLabel, "webApplicationsLabel");
       this.webApplicationsLabel.Font = null;
       this.webApplicationsLabel.Name = "webApplicationsLabel";
       //
       // hintLabel
       //
       this.hintLabel.AccessibleDescription = null;
       this.hintLabel.AccessibleName = null;
       resources.ApplyResources(this.hintLabel, "hintLabel");
       this.hintLabel.Font = null;
       this.hintLabel.Name = "hintLabel";
       //
       // siteCollectionsTreeView
       //
       this.siteCollectionsTreeView.AccessibleDescription = null;
       this.siteCollectionsTreeView.AccessibleName = null;
       resources.ApplyResources(this.siteCollectionsTreeView, "siteCollectionsTreeView");
       this.siteCollectionsTreeView.BackgroundImage = null;
       this.siteCollectionsTreeView.CheckBoxes = true;
       this.siteCollectionsTreeView.Font = null;
       this.siteCollectionsTreeView.Name = "siteCollectionsTreeView";
       //
       // SiteCollectionDeploymentTargetsControl
       //
       this.AccessibleDescription = null;
       this.AccessibleName = null;
       resources.ApplyResources(this, "$this");
       this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
       this.BackgroundImage = null;
       this.Controls.Add(this.siteCollectionsTreeView);
       this.Controls.Add(this.webApplicationsLabel);
       this.Controls.Add(this.hintLabel);
       this.Font = null;
       this.Name = "SiteCollectionDeploymentTargetsControl";
       this.ResumeLayout(false);
       this.PerformLayout();
 }
예제 #50
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.tvProviderTree = new System.Windows.Forms.TreeView();
     this.btnOK = new System.Windows.Forms.Button();
     this.btnCancel = new System.Windows.Forms.Button();
     this.SuspendLayout();
     //
     // tvProviderTree
     //
     this.tvProviderTree.Dock = System.Windows.Forms.DockStyle.Top;
     this.tvProviderTree.Location = new System.Drawing.Point(0, 0);
     this.tvProviderTree.Name = "tvProviderTree";
     this.tvProviderTree.Size = new System.Drawing.Size(323, 318);
     this.tvProviderTree.TabIndex = 0;
     //
     // btnOK
     //
     this.btnOK.Location = new System.Drawing.Point(61, 342);
     this.btnOK.Name = "btnOK";
     this.btnOK.Size = new System.Drawing.Size(75, 23);
     this.btnOK.TabIndex = 1;
     this.btnOK.Text = "&OK";
     this.btnOK.UseVisualStyleBackColor = true;
     this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
     //
     // btnCancel
     //
     this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.btnCancel.Location = new System.Drawing.Point(175, 342);
     this.btnCancel.Name = "btnCancel";
     this.btnCancel.Size = new System.Drawing.Size(75, 23);
     this.btnCancel.TabIndex = 2;
     this.btnCancel.Text = "&Cancel";
     this.btnCancel.UseVisualStyleBackColor = true;
     //
     // fmSelectProvider
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(323, 391);
     this.Controls.Add(this.btnCancel);
     this.Controls.Add(this.btnOK);
     this.Controls.Add(this.tvProviderTree);
     this.Name = "fmSelectProvider";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "fmSelectProvider";
     this.ResumeLayout(false);
 }
        /// <summary>
        /// Instantiates IpcTreeWebWindowFunctions.  Functions support IpcTreeWebWindow win form.
        /// </summary>
        /// <param name="ipcEvents"></param>
        /// <param name="window"></param>
        /// <param name="mdiWindow"></param>
        /// <param name="tsslStatus"></param>
        /// <param name="treeView"></param>
        public IpcTreeWebWindowFunctions(List<string> ipcEvents
                , IpcTreeWebWindow window
                , IpcEventMonitorContainer mdiWindow    
                , System.Windows.Forms.ToolStripStatusLabel tsslStatus
                , System.Windows.Forms.TreeView treeView)
        {
            _ipcEvents = ipcEvents;
            _window = window;
            _mdiWindow = mdiWindow;
            _tsslStatus = tsslStatus;
            _treeView = treeView;
            _treeModel = new FormFunctions.IpcTreeWebWindowTreeModel(_treeView, _window);

            //a thread for each IPC Type Reader
            threads = new SortedList<string, IpcTreeWebWindowThread>();
        }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.button1 = new System.Windows.Forms.Button();
     this.textBox1 = new System.Windows.Forms.TextBox();
     this.treeView1 = new System.Windows.Forms.TreeView();
     this.SuspendLayout();
     //
     // button1
     //
     this.button1.Location = new System.Drawing.Point(209, 306);
     this.button1.Name = "button1";
     this.button1.Size = new System.Drawing.Size(75, 23);
     this.button1.TabIndex = 0;
     this.button1.Text = "button1";
     this.button1.UseVisualStyleBackColor = true;
     this.button1.Click += new System.EventHandler(this.button1_Click);
     //
     // textBox1
     //
     this.textBox1.Location = new System.Drawing.Point(209, 12);
     this.textBox1.Multiline = true;
     this.textBox1.Name = "textBox1";
     this.textBox1.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
     this.textBox1.Size = new System.Drawing.Size(585, 288);
     this.textBox1.TabIndex = 1;
     //
     // treeView1
     //
     this.treeView1.Location = new System.Drawing.Point(12, 12);
     this.treeView1.Name = "treeView1";
     this.treeView1.Size = new System.Drawing.Size(191, 317);
     this.treeView1.TabIndex = 2;
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(806, 341);
     this.Controls.Add(this.treeView1);
     this.Controls.Add(this.textBox1);
     this.Controls.Add(this.button1);
     this.Name = "Form1";
     this.Text = "Form1";
     this.Load += new System.EventHandler(this.Form1_Load);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
예제 #53
0
 /// <summary>
 /// 设计器支持所需的方法 - 不要
 /// 使用代码编辑器修改此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Frm_Main));
     this.treeView1 = new System.Windows.Forms.TreeView();
     this.imageList1 = new System.Windows.Forms.ImageList(this.components);
     this.SuspendLayout();
     //
     // treeView1
     //
     this.treeView1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.treeView1.ImageIndex = 0;
     this.treeView1.ImageList = this.imageList1;
     this.treeView1.Location = new System.Drawing.Point(0, 0);
     this.treeView1.Name = "treeView1";
     this.treeView1.SelectedImageIndex = 0;
     this.treeView1.Size = new System.Drawing.Size(303, 196);
     this.treeView1.TabIndex = 0;
     //
     // imageList1
     //
     this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
     this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
     this.imageList1.Images.SetKeyName(0, "1.bmp");
     this.imageList1.Images.SetKeyName(1, "2.bmp");
     this.imageList1.Images.SetKeyName(2, "3.bmp");
     this.imageList1.Images.SetKeyName(3, "4.bmp");
     this.imageList1.Images.SetKeyName(4, "5.bmp");
     this.imageList1.Images.SetKeyName(5, "6.bmp");
     this.imageList1.Images.SetKeyName(6, "7.bmp");
     this.imageList1.Images.SetKeyName(7, "8.bmp");
     this.imageList1.Images.SetKeyName(8, "9.bmp");
     this.imageList1.Images.SetKeyName(9, "10.bmp");
     //
     // Frm_Main
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(303, 196);
     this.Controls.Add(this.treeView1);
     this.Name = "Frm_Main";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "将数据库数据显示到树视图中\t";
     this.Load += new System.EventHandler(this.Form1_Load);
     this.ResumeLayout(false);
 }
예제 #54
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager( typeof( EntityTypesForm ) );
     this.treeView = new System.Windows.Forms.TreeView();
     this.imageList1 = new System.Windows.Forms.ImageList( this.components );
     this.SuspendLayout();
     //
     // treeView
     //
     this.treeView.Dock = System.Windows.Forms.DockStyle.Fill;
     this.treeView.HideSelection = false;
     this.treeView.ImageIndex = 0;
     this.treeView.ImageList = this.imageList1;
     this.treeView.Location = new System.Drawing.Point( 0, 0 );
     this.treeView.Name = "treeView";
     this.treeView.SelectedImageIndex = 0;
     this.treeView.Size = new System.Drawing.Size( 292, 270 );
     this.treeView.TabIndex = 1;
     this.treeView.Text = "s";
     this.treeView.AfterSelect += new System.Windows.Forms.TreeViewEventHandler( this.treeView_AfterSelect );
     //
     // imageList1
     //
     this.imageList1.ImageStream = ( (System.Windows.Forms.ImageListStreamer)( resources.GetObject( "imageList1.ImageStream" ) ) );
     this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
     this.imageList1.Images.SetKeyName( 0, "Folder_16.png" );
     this.imageList1.Images.SetKeyName( 1, "EntityType_16.png" );
     //
     // EntityTypesForm
     //
     this.BackColor = System.Drawing.SystemColors.Control;
     this.ClientSize = new System.Drawing.Size( 292, 270 );
     this.Controls.Add( this.treeView );
     this.DockAreas = ( (WeifenLuo.WinFormsUI.Docking.DockAreas)( ( ( ( ( WeifenLuo.WinFormsUI.Docking.DockAreas.Float | WeifenLuo.WinFormsUI.Docking.DockAreas.DockLeft )
                     | WeifenLuo.WinFormsUI.Docking.DockAreas.DockRight )
                     | WeifenLuo.WinFormsUI.Docking.DockAreas.DockTop )
                     | WeifenLuo.WinFormsUI.Docking.DockAreas.DockBottom ) ) );
     this.Font = new System.Drawing.Font( "Microsoft Sans Serif", 7.471698F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ( (byte)( 204 ) ) );
     this.HideOnClose = true;
     this.Name = "EntityTypesForm";
     this.ShowHint = WeifenLuo.WinFormsUI.Docking.DockState.DockRight;
     this.TabText = "Entity Types";
     this.Text = "Entity Types";
     this.ResumeLayout( false );
 }
예제 #55
0
 /// <summary> 
 /// 设计器支持所需的方法 - 不要
 /// 使用代码编辑器修改此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     this.btnOK = new System.Windows.Forms.Button();
     this.testWordView = new System.Windows.Forms.TreeView();
     this.checkedListBox1 = new System.Windows.Forms.CheckedListBox();
     this.SuspendLayout();
     //
     // btnOK
     //
     this.btnOK.Location = new System.Drawing.Point(349, 420);
     this.btnOK.Name = "btnOK";
     this.btnOK.Size = new System.Drawing.Size(95, 34);
     this.btnOK.TabIndex = 11;
     this.btnOK.Text = "添加考点";
     this.btnOK.UseVisualStyleBackColor = true;
     this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
     //
     // testWordView
     //
     this.testWordView.Location = new System.Drawing.Point(6, 6);
     this.testWordView.Name = "testWordView";
     this.testWordView.Size = new System.Drawing.Size(337, 448);
     this.testWordView.TabIndex = 9;
     this.testWordView.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.testWordView_AfterSelect);
     //
     // checkedListBox1
     //
     this.checkedListBox1.FormattingEnabled = true;
     this.checkedListBox1.HorizontalScrollbar = true;
     this.checkedListBox1.Location = new System.Drawing.Point(349, 6);
     this.checkedListBox1.Name = "checkedListBox1";
     this.checkedListBox1.Size = new System.Drawing.Size(293, 404);
     this.checkedListBox1.TabIndex = 8;
     //
     // testWord
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.btnOK);
     this.Controls.Add(this.testWordView);
     this.Controls.Add(this.checkedListBox1);
     this.Name = "testWord";
     this.Size = new System.Drawing.Size(656, 468);
     this.ResumeLayout(false);
 }
 /// <summary> 
 /// Required method for Designer support - do not modify 
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     this.treeView1 = new System.Windows.Forms.TreeView();
     this.button1 = new System.Windows.Forms.Button();
     this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.SuspendLayout();
     //
     // treeView1
     //
     this.treeView1.Location = new System.Drawing.Point(13, 57);
     this.treeView1.Name = "treeView1";
     this.treeView1.Size = new System.Drawing.Size(162, 472);
     this.treeView1.TabIndex = 0;
     this.treeView1.DoubleClick += new System.EventHandler(this.treeView1_DoubleClick);
     //
     // button1
     //
     this.button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.button1.Location = new System.Drawing.Point(13, 16);
     this.button1.Name = "button1";
     this.button1.Size = new System.Drawing.Size(162, 35);
     this.button1.TabIndex = 1;
     this.button1.Text = "Save to XWiki";
     this.button1.UseVisualStyleBackColor = true;
     this.button1.Click += new System.EventHandler(this.SaveToXwiki);
     //
     // contextMenuStrip1
     //
     this.contextMenuStrip1.Name = "contextMenuStrip1";
     this.contextMenuStrip1.Size = new System.Drawing.Size(153, 26);
     //
     // UserControl1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.button1);
     this.Controls.Add(this.treeView1);
     this.Name = "UserControl1";
     this.Size = new System.Drawing.Size(198, 545);
     this.Load += new System.EventHandler(this.UserControl1_Load);
     this.ResumeLayout(false);
 }
 /// <summary> 
 /// Required method for Designer support - do not modify 
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.button3 = new System.Windows.Forms.Button();
     this._treeView = new System.Windows.Forms.TreeView();
     this.SuspendLayout();
     //
     // button3
     //
     this.button3.BackColor = System.Drawing.Color.CadetBlue;
     this.button3.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.button3.ForeColor = System.Drawing.Color.White;
     this.button3.Location = new System.Drawing.Point(0, 350);
     this.button3.Name = "button3";
     this.button3.Size = new System.Drawing.Size(244, 23);
     this.button3.TabIndex = 1;
     this.button3.Text = "Esci";
     this.button3.UseVisualStyleBackColor = false;
     this.button3.Click += new System.EventHandler(this.button3_Click);
     //
     // _treeView
     //
     this._treeView.BackColor = System.Drawing.Color.Silver;
     this._treeView.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this._treeView.Dock = System.Windows.Forms.DockStyle.Top;
     this._treeView.Font = new System.Drawing.Font("Courier New", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this._treeView.ForeColor = System.Drawing.Color.Black;
     this._treeView.Location = new System.Drawing.Point(0, 0);
     this._treeView.Name = "_treeView";
     this._treeView.Size = new System.Drawing.Size(244, 332);
     this._treeView.TabIndex = 0;
     //
     // PannelloSinistra
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.BackColor = System.Drawing.Color.Silver;
     this.Controls.Add(this.button3);
     this.Controls.Add(this._treeView);
     this.Name = "PannelloSinistra";
     this.Size = new System.Drawing.Size(244, 373);
     this.ResumeLayout(false);
 }
예제 #58
0
 /// <summary>
 /// デザイナ サポートに必要なメソッドです。このメソッドの内容を
 /// コード エディタで変更しないでください。
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FolderSelectDialog));
     this.mainMenu1 = new System.Windows.Forms.MainMenu();
     this.cancelMenuItem = new System.Windows.Forms.MenuItem();
     this.acceptMenuItem = new System.Windows.Forms.MenuItem();
     this.folderTreeView = new System.Windows.Forms.TreeView();
     this.SuspendLayout();
     //
     // mainMenu1
     //
     this.mainMenu1.MenuItems.Add(this.cancelMenuItem);
     this.mainMenu1.MenuItems.Add(this.acceptMenuItem);
     //
     // cancelMenuItem
     //
     resources.ApplyResources(this.cancelMenuItem, "cancelMenuItem");
     this.cancelMenuItem.Click += new System.EventHandler(this.cancelMenuItem_Click);
     //
     // acceptMenuItem
     //
     resources.ApplyResources(this.acceptMenuItem, "acceptMenuItem");
     this.acceptMenuItem.Click += new System.EventHandler(this.acceptMenuItem_Click);
     //
     // folderTreeView
     //
     resources.ApplyResources(this.folderTreeView, "folderTreeView");
     this.folderTreeView.Name = "folderTreeView";
     this.folderTreeView.PathSeparator = "\\";
     this.folderTreeView.BeforeExpand += new System.Windows.Forms.TreeViewCancelEventHandler(this.folderTreeView_BeforeExpand);
     //
     // FolderSelectDialog
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
     resources.ApplyResources(this, "$this");
     this.Controls.Add(this.folderTreeView);
     this.Menu = this.mainMenu1;
     this.Name = "FolderSelectDialog";
     this.ResumeLayout(false);
 }
예제 #59
0
 /// <summary> 
 /// 设计器支持所需的方法 - 不要
 /// 使用代码编辑器修改此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     this.comboBox1 = new System.Windows.Forms.ComboBox();
     this.treeView1 = new System.Windows.Forms.TreeView();
     this.SuspendLayout();
     //
     // comboBox1
     //
     this.comboBox1.Dock = System.Windows.Forms.DockStyle.Top;
     this.comboBox1.FormattingEnabled = true;
     this.comboBox1.Location = new System.Drawing.Point(0, 0);
     this.comboBox1.Name = "comboBox1";
     this.comboBox1.Size = new System.Drawing.Size(157, 20);
     this.comboBox1.TabIndex = 0;
     this.comboBox1.Enter += new System.EventHandler(this.comboBox1_Enter);
     //
     // treeView1
     //
     this.treeView1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.treeView1.Location = new System.Drawing.Point(0, 20);
     this.treeView1.Name = "treeView1";
     this.treeView1.Size = new System.Drawing.Size(157, 194);
     this.treeView1.TabIndex = 1;
     this.treeView1.Visible = false;
     this.treeView1.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeView1_AfterSelect);
     this.treeView1.Enter += new System.EventHandler(this.treeView1_Enter);
     this.treeView1.Leave += new System.EventHandler(this.treeView1_Leave);
     //
     // ComboBoxTree
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.BackColor = System.Drawing.Color.Transparent;
     this.Controls.Add(this.treeView1);
     this.Controls.Add(this.comboBox1);
     this.Name = "ComboBoxTree";
     this.Size = new System.Drawing.Size(157, 214);
     this.Load += new System.EventHandler(this.ComboboxTree_Load);
     this.Leave += new System.EventHandler(this.ComboboxTree_Leave);
     this.ResumeLayout(false);
 }
        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            this.treeView = new System.Windows.Forms.TreeView();
            this.treeImages = new System.Windows.Forms.ImageList(this.components);
            this.SuspendLayout();
            // 
            // treeView
            // 
            this.treeView.Dock = System.Windows.Forms.DockStyle.Fill;
            this.treeView.FullRowSelect = true;
            this.treeView.HideSelection = false;
            this.treeView.ImageIndex = 0;
            this.treeView.ImageList = this.treeImages;
            this.treeView.Location = new System.Drawing.Point(0, 0);
            this.treeView.Name = "treeView";
            this.treeView.SelectedImageIndex = 0;
            this.treeView.Size = new System.Drawing.Size(300, 225);
            this.treeView.TabIndex = 0;
            this.treeView.DoubleClick += new System.EventHandler(this.TreeView_DoubleClick);
            // 
            // treeImages
            // 
            this.treeImages.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit;
            this.treeImages.ImageSize = new System.Drawing.Size(16, 16);
            this.treeImages.TransparentColor = System.Drawing.Color.Transparent;
            // 
            // PickEntryStep
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.BackColor = System.Drawing.Color.Transparent;
            this.Controls.Add(this.treeView);
            this.Name = "PickEntryStep";
            this.Size = new System.Drawing.Size(300, 225);
            this.Tag = "Double click on the file in the directory tree below to be the entry point for yo" +
                "ur application.  This should be an executable.";
            this.ResumeLayout(false);

        }