示例#1
0
		//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
		//-------------------------------------------------------------------------------------
		#region << Constructors >>
		/// <summary>
		/// Конструктор по умолчанию.
		/// </summary>
		public InternalTreeViewEx(SimTreeViewEx treeView)
			: base()
		{
			InitializeComponent();
			col = new SimTreeNodeExCollection(base.Nodes);
			base.StateImageList = chImageList;
			this.treeView = treeView;
			base.ShowNodeToolTips = true;
		}
示例#2
0
		//-------------------------------------------------------------------------------------
		#region << Overrides Methods >>
		/// <summary>
		/// Initialize
		/// </summary>
		/// <param name="component"></param>
		public override void Initialize(IComponent component)
		{
			base.Initialize(component);
			//base.AutoResizeHandles = true;
			this.tree = component as SimTreeViewEx;
			this.strip = this.tree.MainToolStrip;
			base.EnableDesignMode(this.tree.MainToolStrip, "MainToolStrip");
			this.designerHost = (IDesignerHost)component.Site.GetService(typeof(IDesignerHost));
		}
示例#3
0
		/// <summary> 
		/// Required method for Designer support - do not modify 
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.mainPanel = new System.Windows.Forms.Panel();
			this.ftv = new Sim.Controls.SimTreeViewEx();
			this.imageList1 = new System.Windows.Forms.ImageList();
			this.statusStrip1 = new System.Windows.Forms.StatusStrip();
			this.btnOk = new System.Windows.Forms.ToolStripDropDownButton();
			this.btnClear = new System.Windows.Forms.ToolStripDropDownButton();
			// 
			// ftv
			// 
			this.ftv.BackColor = System.Drawing.Color.Transparent;
			this.ftv.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.ftv.Dock = System.Windows.Forms.DockStyle.Fill;
			this.ftv.HideSelection = false;
			this.ftv.ImageList = this.imageList1;
			this.ftv.Location = new System.Drawing.Point(2, 2);
			// 
			// ftv.MainToolStrip
			// 
			this.ftv.MainToolStrip.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
			this.ftv.MainToolStrip.Name = "MainToolStrip";
			this.ftv.MainToolStrip.Size = new System.Drawing.Size(330, 25);
			this.ftv.MainToolStrip.TabIndex = 0;
			this.ftv.MainToolStrip.Text = "toolStrip1";
			this.ftv.MainToolStrip.Visible = false;
			this.ftv.Name = "ftv";
			this.ftv.NodeItemsImageIndex = 2;
			this.ftv.Size = new System.Drawing.Size(330, 386);
			this.ftv.TabIndex = 1;
			this.ftv.SelectedNodeChanged += new Sim.Controls.SimTreeViewEx.SelectedNodeChangedHandler(this.ftv_SelectedNodeChanged);
			this.ftv.AfterCheck += new SimTreeViewEx.AfterCheckHandler(ftv_AfterCheck);
			this.ftv.NodeDoubleClick += new SimTreeViewEx.SelectedNodeChangedHandler(ftv_NodeDoubleClick);
			// 
			// imageList1
			// 
			this.imageList1.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit;
			this.imageList1.ImageSize = new System.Drawing.Size(16, 16);
			this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
			// 
			// statusStrip1
			// 
			this.statusStrip1.BackColor = System.Drawing.Color.Transparent;
			this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
												this.btnOk, this.btnClear});
			this.statusStrip1.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.HorizontalStackWithOverflow;
			this.statusStrip1.Location = new System.Drawing.Point(2, 388);
			this.statusStrip1.Name = "statusStrip1";
			this.statusStrip1.Size = new System.Drawing.Size(330, 22);
			this.statusStrip1.SizingGrip = false;
			this.statusStrip1.TabIndex = 2;
			this.statusStrip1.Text = "statusStrip1";
			// 
			// btnOk
			// 
			this.btnOk.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
			this.btnOk.Enabled = false;
			this.btnOk.Image = global::Sim.Controls.Properties.Resources.OK;
			this.btnOk.ImageTransparentColor = System.Drawing.Color.Magenta;
			this.btnOk.Name = "btnOk";
			this.btnOk.ShowDropDownArrow = false;
			this.btnOk.Size = new System.Drawing.Size(74, 20);
			this.btnOk.Text = "Выбрать";
			this.btnOk.Click += new System.EventHandler(this.btnOk_Click);
			// 
			// btnClear
			// 
			this.btnClear.Visible = false;
			this.btnClear.Image = global::Sim.Controls.Properties.Resources.Cancel;
			this.btnClear.Name = "btnClear";
			this.btnClear.ShowDropDownArrow = false;
			this.btnClear.Text = "Очистить";
			this.btnClear.Click += new System.EventHandler(this.btnClear_Click);
			// 
			// mainPanel
			// 
			mainPanel.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
			mainPanel.BackColor = Color.Transparent;
			mainPanel.Controls.Add(this.ftv);
			mainPanel.Controls.Add(this.statusStrip1);
			mainPanel.BackColor = System.Drawing.Color.Transparent;
			mainPanel.Padding = new System.Windows.Forms.Padding(2);
			mainPanel.Size = new System.Drawing.Size(334, 312);
			mainPanel.MinimumSize = new System.Drawing.Size(200, 200);
			// 
			// PopupTreeChoice
			// 
			this.Name = "PopupTreeChoice";
		}