예제 #1
0
 public void SetMethod(MethodInfo selectMethodInfo)
 {
     this._signatureTextBox.Text = ObjectDataSourceMethodEditor.GetMethodSignature(selectMethodInfo);
     Parameter[] parameters = ObjectDataSourceDesigner.MergeParameters(this._parameterEditorUserControl.GetParameters(), selectMethodInfo);
     this._parameterEditorUserControl.ClearParameters();
     this._parameterEditorUserControl.AddParameters(parameters);
 }
예제 #2
0
 public override string ToString()
 {
     if (this._methodInfo == null)
     {
         return(System.Design.SR.GetString("ObjectDataSourceMethodEditor_NoMethod"));
     }
     return(ObjectDataSourceMethodEditor.GetMethodSignature(this._methodInfo));
 }
            public TypeItem(System.Type type, bool filtered)
            {
                StringBuilder sb = new StringBuilder(0x40);

                ObjectDataSourceMethodEditor.AppendTypeName(type, true, sb);
                this._prettyTypeName = sb.ToString();
                this._typeName       = type.FullName;
                this._type           = type;
                this._filtered       = filtered;
            }
 private void InitializeComponent()
 {
     this._methodsTabControl = new TabControl();
     this._selectTabPage = new TabPage();
     this._selectObjectDataSourceMethodEditor = new ObjectDataSourceMethodEditor();
     this._updateTabPage = new TabPage();
     this._updateObjectDataSourceMethodEditor = new ObjectDataSourceMethodEditor();
     this._insertTabPage = new TabPage();
     this._insertObjectDataSourceMethodEditor = new ObjectDataSourceMethodEditor();
     this._deleteTabPage = new TabPage();
     this._deleteObjectDataSourceMethodEditor = new ObjectDataSourceMethodEditor();
     this._methodsTabControl.SuspendLayout();
     this._selectTabPage.SuspendLayout();
     this._updateTabPage.SuspendLayout();
     this._insertTabPage.SuspendLayout();
     this._deleteTabPage.SuspendLayout();
     base.SuspendLayout();
     this._methodsTabControl.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top;
     this._methodsTabControl.Controls.Add(this._selectTabPage);
     this._methodsTabControl.Controls.Add(this._updateTabPage);
     this._methodsTabControl.Controls.Add(this._insertTabPage);
     this._methodsTabControl.Controls.Add(this._deleteTabPage);
     this._methodsTabControl.Location = new Point(0, 0);
     this._methodsTabControl.Name = "_methodsTabControl";
     this._methodsTabControl.SelectedIndex = 0;
     this._methodsTabControl.ShowToolTips = true;
     this._methodsTabControl.Size = new Size(0x220, 0x112);
     this._methodsTabControl.TabIndex = 0;
     this._selectTabPage.Controls.Add(this._selectObjectDataSourceMethodEditor);
     this._selectTabPage.Location = new Point(4, 0x16);
     this._selectTabPage.Name = "_selectTabPage";
     this._selectTabPage.Size = new Size(0x218, 0xf8);
     this._selectTabPage.TabIndex = 10;
     this._selectTabPage.Text = "SELECT";
     this._selectObjectDataSourceMethodEditor.Dock = DockStyle.Fill;
     this._selectObjectDataSourceMethodEditor.Location = new Point(0, 0);
     this._selectObjectDataSourceMethodEditor.Name = "_selectObjectDataSourceMethodEditor";
     this._selectObjectDataSourceMethodEditor.TabIndex = 0;
     this._selectObjectDataSourceMethodEditor.MethodChanged += new EventHandler(this.OnSelectMethodChanged);
     this._updateTabPage.Controls.Add(this._updateObjectDataSourceMethodEditor);
     this._updateTabPage.Location = new Point(4, 0x16);
     this._updateTabPage.Name = "_updateTabPage";
     this._updateTabPage.Size = new Size(0x218, 0xf8);
     this._updateTabPage.TabIndex = 20;
     this._updateTabPage.Text = "UPDATE";
     this._updateObjectDataSourceMethodEditor.Dock = DockStyle.Fill;
     this._updateObjectDataSourceMethodEditor.Location = new Point(0, 0);
     this._updateObjectDataSourceMethodEditor.Name = "_updateObjectDataSourceMethodEditor";
     this._updateObjectDataSourceMethodEditor.TabIndex = 0;
     this._insertTabPage.Controls.Add(this._insertObjectDataSourceMethodEditor);
     this._insertTabPage.Location = new Point(4, 0x16);
     this._insertTabPage.Name = "_insertTabPage";
     this._insertTabPage.Size = new Size(0x218, 0xf8);
     this._insertTabPage.TabIndex = 30;
     this._insertTabPage.Text = "INSERT";
     this._insertObjectDataSourceMethodEditor.Dock = DockStyle.Fill;
     this._insertObjectDataSourceMethodEditor.Location = new Point(0, 0);
     this._insertObjectDataSourceMethodEditor.Name = "_insertObjectDataSourceMethodEditor";
     this._insertObjectDataSourceMethodEditor.TabIndex = 0;
     this._deleteTabPage.Controls.Add(this._deleteObjectDataSourceMethodEditor);
     this._deleteTabPage.Location = new Point(4, 0x16);
     this._deleteTabPage.Name = "_deleteTabPage";
     this._deleteTabPage.Size = new Size(0x218, 0xf8);
     this._deleteTabPage.TabIndex = 40;
     this._deleteTabPage.Text = "DELETE";
     this._deleteObjectDataSourceMethodEditor.Dock = DockStyle.Fill;
     this._deleteObjectDataSourceMethodEditor.Location = new Point(0, 0);
     this._deleteObjectDataSourceMethodEditor.Name = "_deleteObjectDataSourceMethodEditor";
     this._deleteObjectDataSourceMethodEditor.TabIndex = 0;
     base.Controls.Add(this._methodsTabControl);
     base.Name = "ObjectDataSourceChooseMethodsPanel";
     base.Size = new Size(0x220, 0x112);
     this._methodsTabControl.ResumeLayout(false);
     this._selectTabPage.ResumeLayout(false);
     this._updateTabPage.ResumeLayout(false);
     this._insertTabPage.ResumeLayout(false);
     this._deleteTabPage.ResumeLayout(false);
     base.ResumeLayout(false);
 }
 private void InitializeComponent()
 {
     this._methodsTabControl = new TabControl();
     this._selectTabPage     = new TabPage();
     this._selectObjectDataSourceMethodEditor = new ObjectDataSourceMethodEditor();
     this._updateTabPage = new TabPage();
     this._updateObjectDataSourceMethodEditor = new ObjectDataSourceMethodEditor();
     this._insertTabPage = new TabPage();
     this._insertObjectDataSourceMethodEditor = new ObjectDataSourceMethodEditor();
     this._deleteTabPage = new TabPage();
     this._deleteObjectDataSourceMethodEditor = new ObjectDataSourceMethodEditor();
     this._methodsTabControl.SuspendLayout();
     this._selectTabPage.SuspendLayout();
     this._updateTabPage.SuspendLayout();
     this._insertTabPage.SuspendLayout();
     this._deleteTabPage.SuspendLayout();
     base.SuspendLayout();
     this._methodsTabControl.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top;
     this._methodsTabControl.Controls.Add(this._selectTabPage);
     this._methodsTabControl.Controls.Add(this._updateTabPage);
     this._methodsTabControl.Controls.Add(this._insertTabPage);
     this._methodsTabControl.Controls.Add(this._deleteTabPage);
     this._methodsTabControl.Location      = new Point(0, 0);
     this._methodsTabControl.Name          = "_methodsTabControl";
     this._methodsTabControl.SelectedIndex = 0;
     this._methodsTabControl.ShowToolTips  = true;
     this._methodsTabControl.Size          = new Size(0x220, 0x112);
     this._methodsTabControl.TabIndex      = 0;
     this._selectTabPage.Controls.Add(this._selectObjectDataSourceMethodEditor);
     this._selectTabPage.Location = new Point(4, 0x16);
     this._selectTabPage.Name     = "_selectTabPage";
     this._selectTabPage.Size     = new Size(0x218, 0xf8);
     this._selectTabPage.TabIndex = 10;
     this._selectTabPage.Text     = "SELECT";
     this._selectObjectDataSourceMethodEditor.Dock           = DockStyle.Fill;
     this._selectObjectDataSourceMethodEditor.Location       = new Point(0, 0);
     this._selectObjectDataSourceMethodEditor.Name           = "_selectObjectDataSourceMethodEditor";
     this._selectObjectDataSourceMethodEditor.TabIndex       = 0;
     this._selectObjectDataSourceMethodEditor.MethodChanged += new EventHandler(this.OnSelectMethodChanged);
     this._updateTabPage.Controls.Add(this._updateObjectDataSourceMethodEditor);
     this._updateTabPage.Location = new Point(4, 0x16);
     this._updateTabPage.Name     = "_updateTabPage";
     this._updateTabPage.Size     = new Size(0x218, 0xf8);
     this._updateTabPage.TabIndex = 20;
     this._updateTabPage.Text     = "UPDATE";
     this._updateObjectDataSourceMethodEditor.Dock     = DockStyle.Fill;
     this._updateObjectDataSourceMethodEditor.Location = new Point(0, 0);
     this._updateObjectDataSourceMethodEditor.Name     = "_updateObjectDataSourceMethodEditor";
     this._updateObjectDataSourceMethodEditor.TabIndex = 0;
     this._insertTabPage.Controls.Add(this._insertObjectDataSourceMethodEditor);
     this._insertTabPage.Location = new Point(4, 0x16);
     this._insertTabPage.Name     = "_insertTabPage";
     this._insertTabPage.Size     = new Size(0x218, 0xf8);
     this._insertTabPage.TabIndex = 30;
     this._insertTabPage.Text     = "INSERT";
     this._insertObjectDataSourceMethodEditor.Dock     = DockStyle.Fill;
     this._insertObjectDataSourceMethodEditor.Location = new Point(0, 0);
     this._insertObjectDataSourceMethodEditor.Name     = "_insertObjectDataSourceMethodEditor";
     this._insertObjectDataSourceMethodEditor.TabIndex = 0;
     this._deleteTabPage.Controls.Add(this._deleteObjectDataSourceMethodEditor);
     this._deleteTabPage.Location = new Point(4, 0x16);
     this._deleteTabPage.Name     = "_deleteTabPage";
     this._deleteTabPage.Size     = new Size(0x218, 0xf8);
     this._deleteTabPage.TabIndex = 40;
     this._deleteTabPage.Text     = "DELETE";
     this._deleteObjectDataSourceMethodEditor.Dock     = DockStyle.Fill;
     this._deleteObjectDataSourceMethodEditor.Location = new Point(0, 0);
     this._deleteObjectDataSourceMethodEditor.Name     = "_deleteObjectDataSourceMethodEditor";
     this._deleteObjectDataSourceMethodEditor.TabIndex = 0;
     base.Controls.Add(this._methodsTabControl);
     base.Name = "ObjectDataSourceChooseMethodsPanel";
     base.Size = new Size(0x220, 0x112);
     this._methodsTabControl.ResumeLayout(false);
     this._selectTabPage.ResumeLayout(false);
     this._updateTabPage.ResumeLayout(false);
     this._insertTabPage.ResumeLayout(false);
     this._deleteTabPage.ResumeLayout(false);
     base.ResumeLayout(false);
 }