frmOpenURL.cs

Go to the documentation of this file.
00001 using System;
00002 using System.Drawing;
00003 using System.Collections;
00004 using System.ComponentModel;
00005 using System.Windows.Forms;
00006 
00007 namespace DNPlay
00008 {
00012         public class frmOpenURL : System.Windows.Forms.Form
00013         {
00014                 private System.Windows.Forms.Label label1;
00015                 private System.Windows.Forms.TextBox txtURL;
00016                 private System.Windows.Forms.Button cmdOK;
00017                 private System.Windows.Forms.Button cmdCancel;
00021                 private System.ComponentModel.Container components = null;
00022 
00023 
00024                 public String URLToOpen;
00025                 public bool wasOK;
00026 
00027                 public frmOpenURL()
00028                 {
00029                         //
00030                         // Required for Windows Form Designer support
00031                         //
00032                         InitializeComponent();
00033 
00034                         //
00035                         // TODO: Add any constructor code after InitializeComponent call
00036                         //
00037                 }
00038 
00042                 protected override void Dispose( bool disposing )
00043                 {
00044                         if( disposing )
00045                         {
00046                                 if(components != null)
00047                                 {
00048                                         components.Dispose();
00049                                 }
00050                         }
00051                         base.Dispose( disposing );
00052                 }
00053 
00054                 #region Windows Form Designer generated code
00059                 private void InitializeComponent()
00060                 {
00061                         this.label1 = new System.Windows.Forms.Label();
00062                         this.txtURL = new System.Windows.Forms.TextBox();
00063                         this.cmdOK = new System.Windows.Forms.Button();
00064                         this.cmdCancel = new System.Windows.Forms.Button();
00065                         this.SuspendLayout();
00066                         // 
00067                         // label1
00068                         // 
00069                         this.label1.Location = new System.Drawing.Point(16, 16);
00070                         this.label1.Name = "label1";
00071                         this.label1.Size = new System.Drawing.Size(368, 16);
00072                         this.label1.TabIndex = 0;
00073                         this.label1.Text = "Enter the URL you wish to open.";
00074                         // 
00075                         // txtURL
00076                         // 
00077                         this.txtURL.Location = new System.Drawing.Point(16, 48);
00078                         this.txtURL.Name = "txtURL";
00079                         this.txtURL.Size = new System.Drawing.Size(376, 20);
00080                         this.txtURL.TabIndex = 1;
00081                         this.txtURL.Text = "";
00082                         // 
00083                         // cmdOK
00084                         // 
00085                         this.cmdOK.Location = new System.Drawing.Point(304, 80);
00086                         this.cmdOK.Name = "cmdOK";
00087                         this.cmdOK.Size = new System.Drawing.Size(88, 24);
00088                         this.cmdOK.TabIndex = 2;
00089                         this.cmdOK.Text = "Open";
00090                         this.cmdOK.Click += new System.EventHandler(this.cmdOK_Click);
00091                         // 
00092                         // cmdCancel
00093                         // 
00094                         this.cmdCancel.Location = new System.Drawing.Point(200, 80);
00095                         this.cmdCancel.Name = "cmdCancel";
00096                         this.cmdCancel.Size = new System.Drawing.Size(88, 24);
00097                         this.cmdCancel.TabIndex = 3;
00098                         this.cmdCancel.Text = "Cancel";
00099                         this.cmdCancel.Click += new System.EventHandler(this.cmdCancel_Click);
00100                         // 
00101                         // frmOpenURL
00102                         // 
00103                         this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
00104                         this.ClientSize = new System.Drawing.Size(416, 110);
00105                         this.Controls.Add(this.cmdCancel);
00106                         this.Controls.Add(this.cmdOK);
00107                         this.Controls.Add(this.txtURL);
00108                         this.Controls.Add(this.label1);
00109                         this.Name = "frmOpenURL";
00110                         this.Text = "Open URL...";
00111                         this.ResumeLayout(false);
00112 
00113                 }
00114                 #endregion
00115 
00116                 private void cmdOK_Click(object sender, System.EventArgs e)
00117                 {
00118                         wasOK = true;
00119                         URLToOpen = txtURL.Text;
00120                         this.Close();
00121                 }
00122 
00123                 private void cmdCancel_Click(object sender, System.EventArgs e)
00124                 {
00125                         wasOK = false;
00126                         URLToOpen = "";
00127                         this.Close();
00128                 }
00129         }
00130 }

Generated on Tue Feb 15 14:54:23 2005 for oggdsf by  doxygen 1.3.9