예제 #1
0
        /// <summary>
        /// Méthode requise pour la prise en charge du concepteur - ne modifiez pas
        /// le contenu de cette méthode avec l'éditeur de code.
        /// </summary>
        private void InitializeComponent()
        {
            var resources = new ComponentResourceManager(typeof(MenuPropertyBuilderForm));

            this._pgMenu        = new WinForms.PropertyGrid();
            this.toolBarButton1 = new WinForms.ToolBarButton();
            this._tvMenu        = new WinForms.TreeView();
            this.label1         = new WinForms.Label();
            this.label2         = new WinForms.Label();
            _bCancel            = new ButtonXP();
            _bOK            = new ButtonXP();
            _bMoveUp        = new ButtonXP();
            _bMoveDown      = new ButtonXP();
            _bAddChild      = new ButtonXP();
            _bRemoveNode    = new ButtonXP();
            _bAddRoot       = new ButtonXP();
            _bChildSibling  = new ButtonXP();
            _bSlibingParent = new ButtonXP();

            this.SuspendLayout();

            SetControlProperties(_pgMenu, nameof(_pgMenu), new Point(250, 30), new Size(245, 228), 6);
            SetControlProperties(_tvMenu, nameof(_tvMenu), new Point(9, 53), new Size(232, 203), 7);
            SetControlProperties(label1, nameof(label1), new Point(10, 8), new Size(189, 16), 15);
            SetControlProperties(label2, nameof(label2), new Point(250, 11), new Size(189, 16), 16);
            SetControlProperties(_bCancel, nameof(_bCancel), new Point(75, 23), 25, _bCancel_Click, null);
            SetControlProperties(_bOK, nameof(_bOK), new Point(337, 265), 24, _bOK_Click, null);
            SetControlProperties(_bMoveUp, nameof(_bMoveUp), new Point(89, 24), 23, _bMoveUp_Click, resources);
            SetControlProperties(_bMoveDown, nameof(_bMoveDown), new Point(116, 24), 22, _bMoveDown_Click, resources);
            SetControlProperties(_bAddChild, nameof(_bAddChild), new Point(35, 24), 21, _bAddChild_Click, resources);
            SetControlProperties(_bRemoveNode, nameof(_bRemoveNode), new Point(62, 24), 20, _bRemoveNode_Click, resources);
            SetControlProperties(_bAddRoot, nameof(_bAddRoot), new Point(8, 24), 19, _bAddRoot_Click, resources);
            SetControlProperties(_bChildSibling, nameof(_bChildSibling), new Point(169, 24), 18, _bChildSibling_Click, resources);
            SetControlProperties(_bSlibingParent, nameof(_bSlibingParent), new Point(142, 24), 17, _bSlibingParent_Click, resources);

            this._pgMenu.LineColor             = SystemColors.ScrollBar;
            this._pgMenu.PropertyValueChanged += this._pgMenu_PropertyValueChanged;
            this.toolBarButton1.Text           = ToolbarButton1Text;
            this._tvMenu.AfterSelect          += this._tvMenu_AfterSelect;
            this.label1.Text   = ItemsText;
            this.label2.Text   = PropertiesText;
            this._bCancel.Text = CancelText;
            this._bOK.Text     = OkText;

            this.AutoScaleBaseSize = new Size(5, 13);
            this.ClientSize        = new Size(508, 290);
            this.Controls.AddRange(new [] { _bCancel, _bOK, _bMoveUp, _bMoveDown, _bAddChild, _bRemoveNode, _bAddRoot, _bChildSibling, _bSlibingParent });
            this.Controls.Add(this.label2);
            this.Controls.Add(this.label1);
            this.Controls.Add(this._pgMenu);
            this.Controls.Add(this._tvMenu);
            this.FormBorderStyle = WinForms.FormBorderStyle.Fixed3D;
            this.MaximizeBox     = false;
            this.MinimizeBox     = false;
            this.Name            = $"Tool{nameof(MenuPropertyBuilderForm)}";
            this.StartPosition   = WinForms.FormStartPosition.CenterScreen;
            this.Text            = MenuPropertyBuilderText;
            this.Load           += this.ToolMenuPropertyBuilderForm_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()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PropertyBuilderForm));
     this.label1          = new System.Windows.Forms.Label();
     this.label2          = new System.Windows.Forms.Label();
     this._tvTree         = new System.Windows.Forms.TreeView();
     this._bAddRoot       = new ActiveUp.WebControls.WinControls.ButtonXP();
     this._bAddChild      = new ActiveUp.WebControls.WinControls.ButtonXP();
     this._bDelete        = new ActiveUp.WebControls.WinControls.ButtonXP();
     this._bMoveUp        = new ActiveUp.WebControls.WinControls.ButtonXP();
     this._bMoveDown      = new ActiveUp.WebControls.WinControls.ButtonXP();
     this._bSlibingParent = new ActiveUp.WebControls.WinControls.ButtonXP();
     this._bChildSlibing  = new ActiveUp.WebControls.WinControls.ButtonXP();
     this._pgTreeView     = new System.Windows.Forms.PropertyGrid();
     this._bOK            = new ActiveUp.WebControls.WinControls.ButtonXP();
     this._bCancel        = new ActiveUp.WebControls.WinControls.ButtonXP();
     this._bCancel1       = new ActiveUp.WebControls.WinControls.ButtonXP();
     this.SuspendLayout();
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(8, 8);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(100, 13);
     this.label1.TabIndex = 0;
     this.label1.Text     = "Items :";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(257, 9);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(100, 16);
     this.label2.TabIndex = 1;
     this.label2.Text     = "Properties :";
     //
     // _tvTree
     //
     this._tvTree.Location       = new System.Drawing.Point(7, 53);
     this._tvTree.Name           = "_tvTree";
     this._tvTree.Size           = new System.Drawing.Size(243, 216);
     this._tvTree.TabIndex       = 2;
     this._tvTree.AfterCheck    += new System.Windows.Forms.TreeViewEventHandler(this._tvTree_AfterCheck);
     this._tvTree.AfterCollapse += new System.Windows.Forms.TreeViewEventHandler(this._tvTree_AfterCollapse);
     this._tvTree.AfterSelect   += new System.Windows.Forms.TreeViewEventHandler(this._tvTree_AfterSelect);
     this._tvTree.AfterExpand   += new System.Windows.Forms.TreeViewEventHandler(this._tvTree_AfterExpand);
     //
     // _bAddRoot
     //
     this._bAddRoot.DefaultScheme = false;
     this._bAddRoot.Image         = ((System.Drawing.Image)(resources.GetObject("_bAddRoot.Image")));
     this._bAddRoot.Location      = new System.Drawing.Point(6, 24);
     this._bAddRoot.Name          = "_bAddRoot";
     this._bAddRoot.Scheme        = ActiveUp.WebControls.WinControls.ButtonXP.Schemes.Silver;
     this._bAddRoot.Size          = new System.Drawing.Size(25, 25);
     this._bAddRoot.SizeImgButton = new System.Drawing.Size(0, 0);
     this._bAddRoot.TabIndex      = 3;
     this._bAddRoot.Click        += new System.EventHandler(this._bAddRoot_Click);
     //
     // _bAddChild
     //
     this._bAddChild.DefaultScheme = false;
     this._bAddChild.Image         = ((System.Drawing.Image)(resources.GetObject("_bAddChild.Image")));
     this._bAddChild.Location      = new System.Drawing.Point(32, 24);
     this._bAddChild.Name          = "_bAddChild";
     this._bAddChild.Scheme        = ActiveUp.WebControls.WinControls.ButtonXP.Schemes.Silver;
     this._bAddChild.Size          = new System.Drawing.Size(25, 25);
     this._bAddChild.SizeImgButton = new System.Drawing.Size(0, 0);
     this._bAddChild.TabIndex      = 4;
     this._bAddChild.Click        += new System.EventHandler(this._bAddChild_Click);
     //
     // _bDelete
     //
     this._bDelete.DefaultScheme = false;
     this._bDelete.Image         = ((System.Drawing.Image)(resources.GetObject("_bDelete.Image")));
     this._bDelete.Location      = new System.Drawing.Point(58, 24);
     this._bDelete.Name          = "_bDelete";
     this._bDelete.Scheme        = ActiveUp.WebControls.WinControls.ButtonXP.Schemes.Silver;
     this._bDelete.Size          = new System.Drawing.Size(25, 25);
     this._bDelete.SizeImgButton = new System.Drawing.Size(0, 0);
     this._bDelete.TabIndex      = 5;
     this._bDelete.Click        += new System.EventHandler(this._bDelete_Click);
     //
     // _bMoveUp
     //
     this._bMoveUp.DefaultScheme = false;
     this._bMoveUp.Image         = ((System.Drawing.Image)(resources.GetObject("_bMoveUp.Image")));
     this._bMoveUp.Location      = new System.Drawing.Point(84, 24);
     this._bMoveUp.Name          = "_bMoveUp";
     this._bMoveUp.Scheme        = ActiveUp.WebControls.WinControls.ButtonXP.Schemes.Silver;
     this._bMoveUp.Size          = new System.Drawing.Size(25, 25);
     this._bMoveUp.SizeImgButton = new System.Drawing.Size(0, 0);
     this._bMoveUp.TabIndex      = 6;
     this._bMoveUp.Click        += new System.EventHandler(this._bMoveUp_Click);
     //
     // _bMoveDown
     //
     this._bMoveDown.DefaultScheme = false;
     this._bMoveDown.Image         = ((System.Drawing.Image)(resources.GetObject("_bMoveDown.Image")));
     this._bMoveDown.Location      = new System.Drawing.Point(110, 24);
     this._bMoveDown.Name          = "_bMoveDown";
     this._bMoveDown.Scheme        = ActiveUp.WebControls.WinControls.ButtonXP.Schemes.Silver;
     this._bMoveDown.Size          = new System.Drawing.Size(25, 25);
     this._bMoveDown.SizeImgButton = new System.Drawing.Size(0, 0);
     this._bMoveDown.TabIndex      = 7;
     this._bMoveDown.Click        += new System.EventHandler(this._bMoveDown_Click);
     //
     // _bSlibingParent
     //
     this._bSlibingParent.DefaultScheme = false;
     this._bSlibingParent.Image         = ((System.Drawing.Image)(resources.GetObject("_bSlibingParent.Image")));
     this._bSlibingParent.Location      = new System.Drawing.Point(137, 24);
     this._bSlibingParent.Name          = "_bSlibingParent";
     this._bSlibingParent.Scheme        = ActiveUp.WebControls.WinControls.ButtonXP.Schemes.Silver;
     this._bSlibingParent.Size          = new System.Drawing.Size(25, 25);
     this._bSlibingParent.SizeImgButton = new System.Drawing.Size(0, 0);
     this._bSlibingParent.TabIndex      = 8;
     this._bSlibingParent.Click        += new System.EventHandler(this._bSlibingParent_Click);
     //
     // _bChildSlibing
     //
     this._bChildSlibing.DefaultScheme = false;
     this._bChildSlibing.Image         = ((System.Drawing.Image)(resources.GetObject("_bChildSlibing.Image")));
     this._bChildSlibing.Location      = new System.Drawing.Point(164, 24);
     this._bChildSlibing.Name          = "_bChildSlibing";
     this._bChildSlibing.Scheme        = ActiveUp.WebControls.WinControls.ButtonXP.Schemes.Silver;
     this._bChildSlibing.Size          = new System.Drawing.Size(25, 25);
     this._bChildSlibing.SizeImgButton = new System.Drawing.Size(0, 0);
     this._bChildSlibing.TabIndex      = 9;
     this._bChildSlibing.Click        += new System.EventHandler(this._bChildSlibing_Click);
     //
     // _pgTreeView
     //
     this._pgTreeView.LineColor             = System.Drawing.SystemColors.ScrollBar;
     this._pgTreeView.Location              = new System.Drawing.Point(257, 26);
     this._pgTreeView.Name                  = "_pgTreeView";
     this._pgTreeView.Size                  = new System.Drawing.Size(243, 244);
     this._pgTreeView.TabIndex              = 10;
     this._pgTreeView.PropertyValueChanged += new System.Windows.Forms.PropertyValueChangedEventHandler(this._pgTreeView_PropertyValueChanged);
     //
     // _bOK
     //
     this._bOK.DefaultScheme = false;
     this._bOK.Image         = null;
     this._bOK.Location      = new System.Drawing.Point(343, 273);
     this._bOK.Name          = "_bOK";
     this._bOK.Scheme        = ActiveUp.WebControls.WinControls.ButtonXP.Schemes.Silver;
     this._bOK.Size          = new System.Drawing.Size(75, 23);
     this._bOK.SizeImgButton = new System.Drawing.Size(0, 0);
     this._bOK.TabIndex      = 11;
     this._bOK.Text          = "OK";
     this._bOK.Click        += new System.EventHandler(this._bOK_Click);
     //
     // _bCancel
     //
     this._bCancel.DefaultScheme = false;
     this._bCancel.Image         = null;
     this._bCancel.Location      = new System.Drawing.Point(0, 0);
     this._bCancel.Name          = "_bCancel";
     this._bCancel.Scheme        = ActiveUp.WebControls.WinControls.ButtonXP.Schemes.Silver;
     this._bCancel.Size          = new System.Drawing.Size(0, 0);
     this._bCancel.SizeImgButton = new System.Drawing.Size(0, 0);
     this._bCancel.TabIndex      = 0;
     //
     // _bCancel1
     //
     this._bCancel1.DefaultScheme = false;
     this._bCancel1.Image         = null;
     this._bCancel1.Location      = new System.Drawing.Point(423, 273);
     this._bCancel1.Name          = "_bCancel1";
     this._bCancel1.Scheme        = ActiveUp.WebControls.WinControls.ButtonXP.Schemes.Silver;
     this._bCancel1.Size          = new System.Drawing.Size(75, 23);
     this._bCancel1.SizeImgButton = new System.Drawing.Size(0, 0);
     this._bCancel1.TabIndex      = 12;
     this._bCancel1.Text          = "Cancel";
     this._bCancel1.Click        += new System.EventHandler(this._bCancel1_Click);
     //
     // PropertyBuilderForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(509, 299);
     this.Controls.Add(this._bCancel1);
     this.Controls.Add(this._bCancel);
     this.Controls.Add(this._bOK);
     this.Controls.Add(this._pgTreeView);
     this.Controls.Add(this._bChildSlibing);
     this.Controls.Add(this._bSlibingParent);
     this.Controls.Add(this._bMoveDown);
     this.Controls.Add(this._bMoveUp);
     this.Controls.Add(this._bDelete);
     this.Controls.Add(this._bAddChild);
     this.Controls.Add(this._bAddRoot);
     this.Controls.Add(this._tvTree);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "PropertyBuilderForm";
     this.ShowInTaskbar   = false;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "Property Builder";
     this.Load           += new System.EventHandler(this.TreeViewPropertyBuilderForm_Load);
     this.ResumeLayout(false);
 }