📄 addwebreferencedialog.cs
字号:
//// created on 10/11/2002 at 2:06 PM
//
//using System;
//using System.IO;
//using System.Drawing;
//using System.Collections;
//using System.ComponentModel;
//using System.Windows.Forms;
//using System.Data;
//using System.Xml;
//using System.Xml.Xsl;
//using System.CodeDom.Compiler;
//using WeifenLuo.WinFormsUI;
//using System.Web.Services.Description;
//
//using ICSharpCode.SharpDevelop.Gui;
//using ICSharpCode.Core.Services;
//using ICSharpCode.SharpDevelop.Internal.Project;
//using ICSharpCode.SharpDevelop.BrowserDisplayBinding;
//
//namespace ICSharpCode.SharpDevelop.Gui.Dialogs
//{
// /// <summary>
// /// Summary description for Form1.
// /// </summary>
// public class AddWebReferenceDialog : System.Windows.Forms.Form
// {
// private System.Windows.Forms.Panel panel1;
// private System.Windows.Forms.Panel panel2;
// private AxWebBrowser axBrowser;
// private System.Windows.Forms.Button btnBack;
// private System.Windows.Forms.Button btnForward;
// private System.Windows.Forms.Button btnRefresh;
// private System.Windows.Forms.Button btnAbort;
// private System.Windows.Forms.Button btnGo;
// private System.Windows.Forms.ComboBox cboUrl;
// private System.Windows.Forms.Button btnAdd;
// private System.Windows.Forms.Button btnCancel;
//// private WeifenLuo.WinFormsUI.TabControl tabControl1;
//// private WeifenLuo.WinFormsUI.TabPage tabPage1;
//// private WeifenLuo.WinFormsUI.TabPage tabPage2;
// private System.Windows.Forms.Label label1;
//
// private System.Windows.Forms.Panel panel3;
// private System.Windows.Forms.PictureBox pictureBox2;
// private System.Windows.Forms.PictureBox pictureBox1;
// private System.Windows.Forms.TreeView treeView1;
// private System.Windows.Forms.Splitter splitter1;
// private System.Windows.Forms.ListView listView1;
// private System.Windows.Forms.ColumnHeader header1;
// private System.Windows.Forms.ColumnHeader header2;
// private System.Windows.Forms.ImageList imgList;
// private System.Windows.Forms.CheckBox checkBox1;
//
//
// private System.Windows.Forms.ToolTip tips;
// /// <summary>
// /// Required designer variable.
// /// </summary>
// private System.ComponentModel.Container components = null;
//
// private IProject project = null;
// private ResourceService resourceService = (ResourceService)ServiceManager.Services.GetService(typeof(IResourceService));
// private FileUtilityService fileUtilityService = (FileUtilityService)ServiceManager.Services.GetService(typeof(FileUtilityService));
//
// private TempFileCollection tempFiles = new TempFileCollection();
//
// ArrayList referenceInformations = new ArrayList();
// public ArrayList ReferenceInformations
// {
// get {
// return referenceInformations;
// }
// }
//
// public AddWebReferenceDialog(IProject p)
// {
// //
// // Required for Windows Form Designer support
// //
// InitializeComponent();
//
// //
// // TODO: Add any constructor code after InitializeComponent call
// //
// this.project = p;
// }
//
// /// <summary>
// /// Clean up any resources being used.
// /// </summary>
// protected override void Dispose( bool disposing )
// {
// if( disposing )
// {
// if (components != null)
// {
// components.Dispose();
// }
// }
// base.Dispose( disposing );
// }
//
// private void InitializeComponent()
// {
// this.tips = new System.Windows.Forms.ToolTip();
// this.panel1 = new System.Windows.Forms.Panel();
// this.cboUrl = new System.Windows.Forms.ComboBox();
// this.btnGo = new System.Windows.Forms.Button();
// this.btnRefresh = new System.Windows.Forms.Button();
// this.btnBack = new System.Windows.Forms.Button();
// this.btnForward = new System.Windows.Forms.Button();
// this.btnAbort = new System.Windows.Forms.Button();
// this.panel2 = new System.Windows.Forms.Panel();
// this.btnCancel = new System.Windows.Forms.Button();
// this.btnAdd = new System.Windows.Forms.Button();
// this.axBrowser = new ICSharpCode.SharpDevelop.BrowserDisplayBinding.AxWebBrowser();
// this.tabControl1 = new WeifenLuo.WinFormsUI.TabControl();
// this.tabPage1 = new WeifenLuo.WinFormsUI.TabPage();
// this.tabPage2 = new WeifenLuo.WinFormsUI.TabPage();
// this.label1 = new System.Windows.Forms.Label();
// this.panel3 = new System.Windows.Forms.Panel();
// this.pictureBox2 = new System.Windows.Forms.PictureBox();
// this.pictureBox1 = new System.Windows.Forms.PictureBox();
// this.treeView1 = new System.Windows.Forms.TreeView();
// this.splitter1 = new System.Windows.Forms.Splitter();
// this.listView1 = new System.Windows.Forms.ListView();
// this.imgList = new System.Windows.Forms.ImageList();
// this.checkBox1 = new System.Windows.Forms.CheckBox();
//
// this.panel1.SuspendLayout();
// this.panel2.SuspendLayout();
// this.tabPage1.SuspendLayout();
// this.panel3.SuspendLayout();
// ((System.ComponentModel.ISupportInitialize)(this.axBrowser)).BeginInit();
// this.SuspendLayout();
//
// //
// // panel1
// //
// this.panel1.Controls.AddRange(new System.Windows.Forms.Control[] {
// this.cboUrl,
// this.label1,
// this.btnGo,
// this.btnRefresh,
// this.btnAbort,
// this.btnForward,
// this.btnBack});
// this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
// this.panel1.Name = "panel1";
// this.panel1.Size = new System.Drawing.Size(486, 23);
// this.panel1.TabIndex = 1;
// //
// // label1
// //
// this.label1.Dock = System.Windows.Forms.DockStyle.Left;
// this.label1.Location = new System.Drawing.Point(112, 0);
// this.label1.Name = "label1";
// this.label1.Size = new System.Drawing.Size(84, 23);
// this.label1.TabIndex = 5;
// this.label1.Text = "Address:";
// this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// //
// // cboUrl
// //
// this.cboUrl.Dock = System.Windows.Forms.DockStyle.Fill;
// //this.cboUrl.Location = new System.Drawing.Point(103, 0);
// this.cboUrl.Name = "cboUrl";
// //this.cboUrl.Size = new System.Drawing.Size(346, 23);
// this.cboUrl.TabIndex = 4;
// // for testing only
// this.cboUrl.Text = "http://www.learnxmlws.com/services/weatherRetriever.asmx?WSDL";
// //
// // btnGo
// //
// this.btnGo.Dock = System.Windows.Forms.DockStyle.Right;
// this.btnGo.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
// this.btnGo.Location = new System.Drawing.Point(449, 0);
// this.btnGo.Image = this.resourceService.GetBitmap("Icons.16x16.SelectionArrow");
// this.btnGo.Name = "btnGo";
// this.btnGo.Size = new System.Drawing.Size(28, 23);
// this.btnGo.TabIndex = 3;
// this.btnGo.Text = String.Empty;
// this.btnGo.Click += new System.EventHandler(this.btnGo_Click);
// this.tips.SetToolTip(btnGo, "GO");
// //
// // btnRefresh
// //
// this.btnRefresh.Dock = System.Windows.Forms.DockStyle.Left;
// this.btnRefresh.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
// this.btnRefresh.Image = this.resourceService.GetBitmap("Icons.16x16.BrowserRefresh");
// this.btnRefresh.Location = new System.Drawing.Point(75, 0);
// this.btnRefresh.Name = "btnRefresh";
// this.btnRefresh.Size = new System.Drawing.Size(28, 23);
// this.btnRefresh.TabIndex = 1;
// this.btnRefresh.Click += new System.EventHandler(this.btnRefresh_Click);
// this.tips.SetToolTip(btnRefresh, "Refresh");
// //
// // btnBack
// //
// this.btnBack.Dock = System.Windows.Forms.DockStyle.Left;
// this.btnBack.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
// this.btnBack.Image = this.resourceService.GetBitmap("Icons.16x16.BrowserBefore");
// this.btnBack.Name = "btnBack";
// this.btnBack.Size = new System.Drawing.Size(28,23);
// this.btnBack.TabIndex = 0;
// this.btnBack.Text = String.Empty;
// this.btnBack.Click += new System.EventHandler(this.btnBack_Click);
// this.tips.SetToolTip(btnBack, "Back");
// //
// // btnForward
// //
// this.btnForward.Dock = System.Windows.Forms.DockStyle.Left;
// this.btnForward.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
// this.btnForward.Image = this.resourceService.GetBitmap("Icons.16x16.BrowserAfter");
// this.btnForward.Name = "btnForward";
// this.btnForward.Size = new System.Drawing.Size(28,23);
// this.btnForward.TabIndex = 0;
// this.btnForward.Text = String.Empty;
// this.btnForward.Click += new System.EventHandler(this.btnForward_Click);
// this.tips.SetToolTip(btnForward, "Forward");
// //
// // btnAbort
// //
// this.btnAbort.Dock = System.Windows.Forms.DockStyle.Left;
// this.btnAbort.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
// this.btnAbort.Image = this.resourceService.GetBitmap("Icons.16x16.BrowserCancel");
// this.btnAbort.Name = "btnAbort";
// this.btnAbort.Size = new System.Drawing.Size(28,23);
// this.btnAbort.TabIndex = 0;
// this.btnAbort.Text = String.Empty;
// this.btnAbort.Click += new System.EventHandler(this.btnAbort_Click);
// this.tips.SetToolTip(btnAbort, "Stop");
// //
// // panel2
// //
// this.panel2.Controls.AddRange(new System.Windows.Forms.Control[] {
// this.checkBox1,
// this.btnCancel,
// this.btnAdd});
// this.panel2.Dock = System.Windows.Forms.DockStyle.Bottom;
// this.panel2.Location = new System.Drawing.Point(0, 303);
// this.panel2.Name = "panel2";
// this.panel2.Size = new System.Drawing.Size(486, 39);
// this.panel2.TabIndex = 2;
// //
// // btnCancel
// //
// this.btnCancel.Anchor = (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right);
// this.btnCancel.Location = new System.Drawing.Point(404, 10);
// this.btnCancel.FlatStyle = FlatStyle.Flat;
// this.btnCancel.Name = "btnCancel";
// this.btnCancel.TabIndex = 1;
// this.btnCancel.Text = "Cancel";
// this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
// //
// // btnAdd
// //
// this.btnAdd.Anchor = (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right);
// this.btnAdd.Enabled = false;
// this.btnAdd.FlatStyle = FlatStyle.Flat;
// this.btnAdd.Location = new System.Drawing.Point(280, 10);
// this.btnAdd.Name = "btnAdd";
// this.btnAdd.Size = new System.Drawing.Size(120, 23);
// this.btnAdd.TabIndex = 0;
// this.btnAdd.Text = "Add Web Reference";
// this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
// this.btnAdd.DialogResult = DialogResult.OK;
// //
// // axBrowser
// //
// this.axBrowser.Dock = System.Windows.Forms.DockStyle.Fill;
// this.axBrowser.Enabled = true;
// this.axBrowser.Location = new System.Drawing.Point(0, 23);
// //this.axBrowser.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axBrowser.OcxState")));
// this.axBrowser.Size = new System.Drawing.Size(336, 280);
// this.axBrowser.TabIndex = 3;
// this.axBrowser.NavigateComplete2 += new DWebBrowserEvents2_NavigateComplete2EventHandler(this.axBrowser_NavigateComplete2);
// this.axBrowser.NavigateError += new DWebBrowserEvents2_NavigateErrorEventHandler(this.axBrowser_NavigateError);
// this.axBrowser.BeforeNavigate2 += new DWebBrowserEvents2_BeforeNavigate2EventHandler(this.axBrowser_BeforeNavigate2);
//
// //
// // tabControl1
// //
// this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
// this.tabControl1.HideTabsMode = WeifenLuo.WinFormsUI.TabControl.HideTabsModes.ShowAlways;
// this.tabControl1.Location = new System.Drawing.Point(0, 23);
// this.tabControl1.Name = "tabControl1";
// this.tabControl1.SelectedIndex = 0;
// this.tabControl1.SelectedTab = this.tabPage1;
// this.tabControl1.Size = new System.Drawing.Size(486, 280);
// this.tabControl1.TabIndex = 4;
// this.tabControl1.TabPages.AddRange(new WeifenLuo.WinFormsUI.TabPage[] {
// this.tabPage1,
// this.tabPage2});
//
// //
// // panel3
// //
// this.panel3.Controls.AddRange(new System.Windows.Forms.Control[] {
// this.pictureBox2,
// this.pictureBox1});
// this.panel3.Dock = System.Windows.Forms.DockStyle.Top;
// this.panel3.Name = "panel3";
// this.panel3.Size = new System.Drawing.Size(759, 88);
// this.panel3.TabIndex = 2;
// //
// // pictureBox2
// //
// this.pictureBox2.BackgroundImage = resourceService.GetBitmap("GradientTop");
// this.pictureBox2.Dock = System.Windows.Forms.DockStyle.Fill;
// this.pictureBox2.Location = new System.Drawing.Point(226, 0);
// this.pictureBox2.Name = "pictureBox2";
// this.pictureBox2.Size = new System.Drawing.Size(533, 88);
// this.pictureBox2.TabIndex = 3;
// this.pictureBox2.TabStop = false;
// //
// // pictureBox1
// //
// this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Left;
// this.pictureBox1.Image = resourceService.GetBitmap("WebReferencesDialog");
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -