Ejemplo n.º 1
0
        /// <summary>
        ///    Required method for Designer support - do not modify
        ///    the contents of this method with the code editor
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            this.checkBoxIncludeThrowingDelegate = new System.WinForms.CheckBox();
            this.labelStatus = new System.WinForms.Label();
            this.buttonStart = new System.WinForms.Button();
            this.groupBox1   = new System.WinForms.GroupBox();

            checkBoxIncludeThrowingDelegate.Location       = new System.Drawing.Point(40, 104);
            checkBoxIncludeThrowingDelegate.Text           = "Include Throwing Delegate";
            checkBoxIncludeThrowingDelegate.Size           = new System.Drawing.Size(200, 24);
            checkBoxIncludeThrowingDelegate.AccessibleRole = System.WinForms.AccessibleRoles.CheckButton;
            checkBoxIncludeThrowingDelegate.TabIndex       = 1;
            checkBoxIncludeThrowingDelegate.TextAlign      = System.Drawing.ContentAlignment.MiddleLeft;

            labelStatus.Location = new System.Drawing.Point(16, 24);
            labelStatus.Text     = "Not started";
            labelStatus.Size     = new System.Drawing.Size(184, 24);
            labelStatus.TabIndex = 0;

            buttonStart.Location = new System.Drawing.Point(32, 32);
            buttonStart.Size     = new System.Drawing.Size(224, 48);
            buttonStart.TabIndex = 0;
            buttonStart.Text     = "Start";
            buttonStart.AddOnClick(new System.EventHandler(buttonStart_Click));

            groupBox1.Location = new System.Drawing.Point(32, 160);
            groupBox1.TabIndex = 2;
            groupBox1.TabStop  = false;
            groupBox1.Text     = "Status";
            groupBox1.Size     = new System.Drawing.Size(224, 64);

            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            this.Text = "Form1";
            //@design this.TrayLargeIcon = true;
            //@design this.TrayHeight = 0;

            groupBox1.Controls.Add(labelStatus);
            this.Controls.Add(groupBox1);
            this.Controls.Add(checkBoxIncludeThrowingDelegate);
            this.Controls.Add(buttonStart);


            searcher = new ManagementObjectSearcher("root/default", "select * from __CIMOMIdentification");
        }
Ejemplo n.º 2
0
        /// <summary>
        ///    Required method for Designer support - do not modify
        ///    the contents of this method with the code editor
        /// </summary>
        private void InitializeComponent()
        {
            this.components  = new System.ComponentModel.Container();
            this.listBox1    = new System.WinForms.ListBox();
            this.label1      = new System.WinForms.Label();
            this.btnClose    = new System.WinForms.Button();
            this.panel1      = new System.WinForms.Panel();
            this.btnEditFile = new System.WinForms.Button();
            this.btnShow     = new System.WinForms.Button();

            listBox1.Location     = new System.Drawing.Point(10, 26);
            listBox1.Size         = new System.Drawing.Size(332, 82);
            listBox1.Dock         = System.WinForms.DockStyle.Fill;
            listBox1.TabIndex     = 6;
            listBox1.DoubleClick += new System.EventHandler(listBox1_DoubleClick);

            label1.Location = new System.Drawing.Point(10, 10);
            label1.Text     = "Selector";
            label1.Size     = new System.Drawing.Size(332, 16);
            label1.Dock     = System.WinForms.DockStyle.Top;
            label1.TabIndex = 1;
            label1.Click   += new System.EventHandler(label1_Click);

            btnClose.Location = new System.Drawing.Point(256, 8);
            btnClose.Size     = new System.Drawing.Size(75, 23);
            btnClose.TabIndex = 4;
            btnClose.Anchor   = System.WinForms.AnchorStyles.BottomRight;
            btnClose.Text     = "&Close";
            btnClose.Click   += new System.EventHandler(btnClose_Click);

            panel1.Dock            = System.WinForms.DockStyle.Bottom;
            panel1.Location        = new System.Drawing.Point(10, 110);
            panel1.Size            = new System.Drawing.Size(332, 32);
            panel1.TabIndex        = 7;
            panel1.Text            = "panel1";
            panel1.DockPadding.All = 10;

            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            this.Text        = "Configuration File Hierarchy";
            this.MaximizeBox = false;
            //@design this.TrayLargeIcon = true;
            this.BorderStyle = System.WinForms.FormBorderStyle.SizableToolWindow;
            //@design this.TrayHeight = 0;
            this.MinimizeBox     = false;
            this.ClientSize      = new System.Drawing.Size(352, 152);
            this.DockPadding.All = 10;

            btnEditFile.Location = new System.Drawing.Point(88, 8);
            btnEditFile.Size     = new System.Drawing.Size(75, 23);
            btnEditFile.TabIndex = 3;
            btnEditFile.Anchor   = System.WinForms.AnchorStyles.BottomLeft;
            btnEditFile.Text     = "&Edit File";
            btnEditFile.Click   += new System.EventHandler(btnEditFile_Click);

            btnShow.Location = new System.Drawing.Point(0, 8);
            btnShow.Size     = new System.Drawing.Size(75, 23);
            btnShow.TabIndex = 2;
            btnShow.Anchor   = System.WinForms.AnchorStyles.BottomLeft;
            btnShow.Text     = "&Show";
            btnShow.Click   += new System.EventHandler(btnShow_Click);

            this.Controls.Add(panel1);
            this.Controls.Add(label1);
            this.Controls.Add(listBox1);
            panel1.Controls.Add(btnShow);
            panel1.Controls.Add(btnEditFile);
            panel1.Controls.Add(btnClose);
        }
Ejemplo n.º 3
0
 /// <summary>
 ///    Required method for Designer support - do not modify
 ///    the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Preferences));
     this.components   = new System.ComponentModel.Container();
     this.groupBox2    = new System.WinForms.GroupBox();
     this.groupBox3    = new System.WinForms.GroupBox();
     this.lbBallColors = new System.WinForms.ListBox();
     this.groupBox1    = new System.WinForms.GroupBox();
     this.cbLockMouse  = new System.WinForms.CheckBox();
     this.label3       = new System.WinForms.Label();
     this.btnCancel    = new System.WinForms.Button();
     this.cbUseSound   = new System.WinForms.CheckBox();
     this.btnOK        = new System.WinForms.Button();
     this.label1       = new System.WinForms.Label();
     this.pictureBox3  = new System.WinForms.PictureBox();
     this.trbBallSpeed = new System.WinForms.TrackBar();
     this.label4       = new System.WinForms.Label();
     this.label2       = new System.WinForms.Label();
     this.pictureBox2  = new System.WinForms.PictureBox();
     this.pictureBox1  = new System.WinForms.PictureBox();
     trbBallSpeed.BeginInit();
     //@this.TrayHeight = 0;
     //@this.TrayLargeIcon = false;
     //@this.TrayAutoArrange = true;
     groupBox2.Location     = new System.Drawing.Point(8, 184);
     groupBox2.TabIndex     = 1;
     groupBox2.TabStop      = false;
     groupBox2.Text         = "Sound";
     groupBox2.Size         = new System.Drawing.Size(328, 64);
     groupBox3.Location     = new System.Drawing.Point(8, 256);
     groupBox3.TabIndex     = 2;
     groupBox3.TabStop      = false;
     groupBox3.Text         = "Control";
     groupBox3.Size         = new System.Drawing.Size(328, 64);
     lbBallColors.Location  = new System.Drawing.Point(104, 72);
     lbBallColors.Size      = new System.Drawing.Size(208, 82);
     lbBallColors.TabIndex  = 5;
     lbBallColors.Items.All = new object[5] {
         "Blue", "Cyan", "Green", "Gray", "Red"
     };
     groupBox1.Location     = new System.Drawing.Point(8, 8);
     groupBox1.TabIndex     = 0;
     groupBox1.TabStop      = false;
     groupBox1.Text         = "Ball";
     groupBox1.Size         = new System.Drawing.Size(328, 168);
     cbLockMouse.Location   = new System.Drawing.Point(56, 16);
     cbLockMouse.Text       = "Lock mouse into game area during play";
     cbLockMouse.Size       = new System.Drawing.Size(224, 24);
     cbLockMouse.TabIndex   = 1;
     label3.Location        = new System.Drawing.Point(296, 24);
     label3.Text            = "Fast";
     label3.Size            = new System.Drawing.Size(29, 16);
     label3.TabIndex        = 3;
     btnCancel.Location     = new System.Drawing.Point(184, 328);
     btnCancel.DialogResult = System.WinForms.DialogResult.Cancel;
     btnCancel.Size         = new System.Drawing.Size(75, 23);
     btnCancel.TabIndex     = 4;
     btnCancel.Text         = "Cancel";
     cbUseSound.Location    = new System.Drawing.Point(56, 16);
     cbUseSound.Text        = "&Use Sound";
     cbUseSound.Size        = new System.Drawing.Size(120, 24);
     cbUseSound.TabIndex    = 1;
     btnOK.Location         = new System.Drawing.Point(264, 328);
     btnOK.DialogResult     = System.WinForms.DialogResult.OK;
     btnOK.Size             = new System.Drawing.Size(75, 23);
     btnOK.TabIndex         = 3;
     btnOK.Text             = "OK";
     label1.Location        = new System.Drawing.Point(56, 24);
     label1.Text            = "Speed:";
     label1.Size            = new System.Drawing.Size(48, 16);
     label1.TabIndex        = 0;
     pictureBox3.Location   = new System.Drawing.Point(8, 16);
     pictureBox3.Size       = new System.Drawing.Size(40, 40);
     pictureBox3.TabIndex   = 6;
     pictureBox3.TabStop    = false;
     pictureBox3.Image      = (System.Drawing.Image)resources.GetObject("pictureBox3.Image");
     trbBallSpeed.Location  = new System.Drawing.Point(128, 24);
     trbBallSpeed.TabIndex  = 1;
     trbBallSpeed.Size      = new System.Drawing.Size(168, 42);
     label4.Location        = new System.Drawing.Point(56, 72);
     label4.Text            = "Color:";
     label4.Size            = new System.Drawing.Size(48, 16);
     label4.TabIndex        = 4;
     label2.Location        = new System.Drawing.Point(104, 24);
     label2.Text            = "Slow";
     label2.Size            = new System.Drawing.Size(31, 16);
     label2.TabIndex        = 2;
     pictureBox2.Location   = new System.Drawing.Point(8, 16);
     pictureBox2.Size       = new System.Drawing.Size(40, 40);
     pictureBox2.TabIndex   = 0;
     pictureBox2.TabStop    = false;
     pictureBox2.Image      = (System.Drawing.Image)resources.GetObject("pictureBox2.Image");
     pictureBox1.Location   = new System.Drawing.Point(8, 16);
     pictureBox1.Size       = new System.Drawing.Size(40, 40);
     pictureBox1.TabIndex   = 0;
     pictureBox1.TabStop    = false;
     pictureBox1.Image      = (System.Drawing.Image)resources.GetObject("pictureBox1.Image");
     this.Text              = "WinBlock Options";
     this.MaximizeBox       = false;
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.CancelButton      = this.btnCancel;
     this.BorderStyle       = System.WinForms.FormBorderStyle.FixedDialog;
     this.Font              = new System.Drawing.Font("Tahoma", 8);
     this.Icon              = (System.Drawing.Icon)resources.GetObject("$this.Icon");
     this.MinimizeBox       = false;
     this.ClientSize        = new System.Drawing.Size(346, 359);
     this.Controls.Add(this.btnCancel);
     this.Controls.Add(this.btnOK);
     this.Controls.Add(this.groupBox3);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.groupBox1);
     groupBox1.Controls.Add(this.pictureBox3);
     groupBox1.Controls.Add(this.lbBallColors);
     groupBox1.Controls.Add(this.label4);
     groupBox1.Controls.Add(this.label3);
     groupBox1.Controls.Add(this.label2);
     groupBox1.Controls.Add(this.trbBallSpeed);
     groupBox1.Controls.Add(this.label1);
     groupBox2.Controls.Add(this.cbUseSound);
     groupBox2.Controls.Add(this.pictureBox1);
     groupBox3.Controls.Add(this.cbLockMouse);
     groupBox3.Controls.Add(this.pictureBox2);
     trbBallSpeed.EndInit();
 }
Ejemplo n.º 4
0
 /// <summary>
 ///    Required method for Designer support - do not modify
 ///    the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components    = new System.ComponentModel.Container();
     this.label1        = new System.WinForms.Label();
     this.label7        = new System.WinForms.Label();
     this.label3        = new System.WinForms.Label();
     this.label2        = new System.WinForms.Label();
     this.btnDownload   = new System.WinForms.Button();
     this.txtPort       = new System.WinForms.TextBox();
     this.label8        = new System.WinForms.Label();
     this.label5        = new System.WinForms.Label();
     this.clPing        = new System.WinForms.ColumnHeader();
     this.txtURL        = new System.WinForms.TextBox();
     this.tabSearch     = new System.WinForms.TabPage();
     this.columnHeader2 = new System.WinForms.ColumnHeader();
     this.label6        = new System.WinForms.Label();
     this.tabLibrary    = new System.WinForms.TabPage();
     this.statusBar1    = new System.WinForms.StatusBar();
     this.tmrLogon      = new System.WinForms.Timer(this.components);
     this.clConnection  = new System.WinForms.ColumnHeader();
     this.lstResults    = new System.WinForms.ListView();
     this.tabControl1   = new System.WinForms.TabControl();
     this.pnlNumUsers   = new System.WinForms.StatusBarPanel();
     this.clMachineName = new System.WinForms.ColumnHeader();
     this.clFilePath    = new System.WinForms.ColumnHeader();
     this.clSize        = new System.WinForms.ColumnHeader();
     this.txtSearch     = new System.WinForms.TextBox();
     this.lstLibrary    = new System.WinForms.ListView();
     this.tabOptions    = new System.WinForms.TabPage();
     this.txtPath       = new System.WinForms.TextBox();
     this.clFileName    = new System.WinForms.ColumnHeader();
     this.btnFind       = new System.WinForms.Button();
     this.panel1        = new System.WinForms.Panel();
     this.pnlTotalData  = new System.WinForms.StatusBarPanel();
     this.columnHeader4 = new System.WinForms.ColumnHeader();
     this.columnHeader3 = new System.WinForms.ColumnHeader();
     this.label4        = new System.WinForms.Label();
     this.columnHeader1 = new System.WinForms.ColumnHeader();
     this.txtConnection = new System.WinForms.TextBox();
     pnlNumUsers.BeginInit();
     pnlTotalData.BeginInit();
     //@this.TrayHeight = 90;
     //@this.TrayLargeIcon = false;
     //@this.TrayAutoArrange = true;
     label1.Location         = new System.Drawing.Point(0, 16);
     label1.Text             = "Search For:";
     label1.Size             = new System.Drawing.Size(64, 16);
     label1.TabIndex         = 1;
     label7.Location         = new System.Drawing.Point(24, 160);
     label7.Text             = "Communication Settings";
     label7.Size             = new System.Drawing.Size(123, 13);
     label7.AutoSize         = true;
     label7.TabIndex         = 5;
     label3.Location         = new System.Drawing.Point(0, 24);
     label3.Text             = "Shared Files:";
     label3.Size             = new System.Drawing.Size(344, 16);
     label3.TabIndex         = 1;
     label2.Location         = new System.Drawing.Point(16, 232);
     label2.Text             = "Conn Speed:";
     label2.Size             = new System.Drawing.Size(68, 13);
     label2.AutoSize         = true;
     label2.TabIndex         = 9;
     btnDownload.Location    = new System.Drawing.Point(544, 8);
     btnDownload.Size        = new System.Drawing.Size(104, 24);
     btnDownload.TabIndex    = 2;
     btnDownload.Text        = "&Download";
     btnDownload.Click      += new System.EventHandler(this.btnDownload_Click);
     txtPort.Location        = new System.Drawing.Point(104, 196);
     txtPort.Text            = "8081";
     txtPort.TabIndex        = 2;
     txtPort.Size            = new System.Drawing.Size(56, 20);
     txtPort.Leave          += new System.EventHandler(this.txtPort_Leave);
     label8.Location         = new System.Drawing.Point(24, 32);
     label8.Text             = "File Settings";
     label8.Size             = new System.Drawing.Size(65, 13);
     label8.AutoSize         = true;
     label8.TabIndex         = 7;
     label5.Location         = new System.Drawing.Point(48, 200);
     label5.Text             = "Port:";
     label5.Size             = new System.Drawing.Size(27, 13);
     label5.AutoSize         = true;
     label5.TabIndex         = 2;
     clPing.Text             = "Ping";
     clPing.TextAlign        = System.WinForms.HorizontalAlignment.Left;
     txtURL.Location         = new System.Drawing.Point(104, 272);
     txtURL.Text             = "http://localhost/services/p2pservice.asmx";
     txtURL.TabIndex         = 4;
     txtURL.Size             = new System.Drawing.Size(352, 20);
     txtURL.Leave           += new System.EventHandler(this.txtPath_Leave);
     tabSearch.Text          = "Search";
     tabSearch.Size          = new System.Drawing.Size(672, 411);
     tabSearch.BorderStyle   = System.WinForms.BorderStyle.Fixed3D;
     tabSearch.TabIndex      = 0;
     columnHeader2.Text      = "ColumnHeader";
     columnHeader2.TextAlign = System.WinForms.HorizontalAlignment.Left;
     label6.Location         = new System.Drawing.Point(48, 64);
     label6.Text             = "File Path:";
     label6.Size             = new System.Drawing.Size(50, 13);
     label6.AutoSize         = true;
     label6.TabIndex         = 3;
     tabLibrary.Text         = "Library";
     tabLibrary.Size         = new System.Drawing.Size(672, 411);
     tabLibrary.BorderStyle  = System.WinForms.BorderStyle.Fixed3D;
     tabLibrary.TabIndex     = 1;
     statusBar1.BackColor    = System.Drawing.SystemColors.Control;
     statusBar1.Location     = new System.Drawing.Point(0, 450);
     statusBar1.Size         = new System.Drawing.Size(690, 29);
     statusBar1.TabIndex     = 7;
     statusBar1.ShowPanels   = true;
     statusBar1.Panels.All   = new System.WinForms.StatusBarPanel[2] {
         this.pnlNumUsers, this.pnlTotalData
     };
     //@tmrLogon.SetLocation (new System.Drawing.Point (216, 7));
     tmrLogon.Interval        = 2000;
     tmrLogon.Enabled         = true;
     tmrLogon.Tick           += new System.EventHandler(this.tmrLogon_Tick);
     clConnection.Text        = "Connection";
     clConnection.Width       = 97;
     clConnection.TextAlign   = System.WinForms.HorizontalAlignment.Left;
     lstResults.Location      = new System.Drawing.Point(0, 40);
     lstResults.Size          = new System.Drawing.Size(664, 368);
     lstResults.HideSelection = false;
     lstResults.View          = System.WinForms.View.Report;
     lstResults.ForeColor     = System.Drawing.SystemColors.WindowText;
     lstResults.TabIndex      = 3;
     lstResults.DoubleClick  += new System.EventHandler(this.btnDownload_Click);
     lstResults.Columns.All   = new System.WinForms.ColumnHeader[6] {
         this.clFileName, this.clFilePath, this.clSize, this.clConnection, this.clMachineName, this.clPing
     };
     tabControl1.Location      = new System.Drawing.Point(8, 8);
     tabControl1.Size          = new System.Drawing.Size(680, 440);
     tabControl1.SelectedIndex = 0;
     tabControl1.Appearance    = System.WinForms.TabAppearance.FlatButtons;
     tabControl1.TabIndex      = 8;
     //@pnlNumUsers.SetLocation (new System.Drawing.Point (7, 7));
     pnlNumUsers.Text        = "There are currently N users in the Share Baby community";
     pnlNumUsers.Width       = 292;
     pnlNumUsers.AutoSize    = System.WinForms.StatusBarPanelAutoSize.Contents;
     clMachineName.Text      = "IP Address";
     clMachineName.Width     = 99;
     clMachineName.TextAlign = System.WinForms.HorizontalAlignment.Left;
     clFilePath.Text         = "Path";
     clFilePath.Width        = 200;
     clFilePath.TextAlign    = System.WinForms.HorizontalAlignment.Left;
     clSize.Text             = "Size";
     clSize.Width            = 81;
     clSize.TextAlign        = System.WinForms.HorizontalAlignment.Left;
     txtSearch.Location      = new System.Drawing.Point(64, 8);
     txtSearch.TabIndex      = 0;
     txtSearch.Size          = new System.Drawing.Size(328, 20);
     lstLibrary.Location     = new System.Drawing.Point(0, 40);
     lstLibrary.Size         = new System.Drawing.Size(664, 368);
     lstLibrary.View         = System.WinForms.View.Report;
     lstLibrary.ForeColor    = System.Drawing.SystemColors.WindowText;
     lstLibrary.TabIndex     = 4;
     lstLibrary.Columns.All  = new System.WinForms.ColumnHeader[4] {
         this.columnHeader4, this.columnHeader1, this.columnHeader2, this.columnHeader3
     };
     tabOptions.Text        = "Options";
     tabOptions.Size        = new System.Drawing.Size(672, 411);
     tabOptions.BorderStyle = System.WinForms.BorderStyle.Fixed3D;
     tabOptions.TabIndex    = 3;
     txtPath.Location       = new System.Drawing.Point(104, 64);
     txtPath.Text           = "c:\\files";
     txtPath.TabIndex       = 0;
     txtPath.Size           = new System.Drawing.Size(352, 20);
     txtPath.Leave         += new System.EventHandler(this.txtPath_Leave);
     clFileName.Text        = "File Name";
     clFileName.Width       = 120;
     clFileName.TextAlign   = System.WinForms.HorizontalAlignment.Left;
     btnFind.Location       = new System.Drawing.Point(416, 8);
     btnFind.Size           = new System.Drawing.Size(104, 24);
     btnFind.TabIndex       = 1;
     btnFind.Text           = "&Find";
     btnFind.Click         += new System.EventHandler(this.btnFind_Click_1);
     panel1.Size            = new System.Drawing.Size(656, 400);
     panel1.TabIndex        = 0;
     //@pnlTotalData.SetLocation (new System.Drawing.Point (114, 7));
     pnlTotalData.Text       = "A total of N files are being shared";
     pnlTotalData.Width      = 382;
     pnlTotalData.AutoSize   = System.WinForms.StatusBarPanelAutoSize.Spring;
     columnHeader4.Text      = "ColumnHeader";
     columnHeader4.TextAlign = System.WinForms.HorizontalAlignment.Left;
     columnHeader3.Text      = "ColumnHeader";
     columnHeader3.TextAlign = System.WinForms.HorizontalAlignment.Left;
     label4.Location         = new System.Drawing.Point(16, 272);
     label4.Text             = "Service URL:";
     label4.Size             = new System.Drawing.Size(69, 13);
     label4.AutoSize         = true;
     label4.TabIndex         = 11;
     columnHeader1.Text      = "ColumnHeader";
     columnHeader1.TextAlign = System.WinForms.HorizontalAlignment.Left;
     txtConnection.Location  = new System.Drawing.Point(104, 232);
     txtConnection.Text      = "LAN";
     txtConnection.TabIndex  = 3;
     txtConnection.Size      = new System.Drawing.Size(56, 20);
     txtConnection.Leave    += new System.EventHandler(this.txtPath_Leave);
     pnlNumUsers.EndInit();
     pnlTotalData.EndInit();
     this.Text              = "Share Baby - Content Finder";
     this.MaximizeBox       = false;
     this.StartPosition     = System.WinForms.FormStartPosition.CenterParent;
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.BorderStyle       = System.WinForms.FormBorderStyle.FixedDialog;
     this.AcceptButton      = this.btnFind;
     this.ClientSize        = new System.Drawing.Size(690, 479);
     this.Closing          += new System.ComponentModel.CancelEventHandler(this.Form1_Closing);
     tabOptions.Controls.Add(this.panel1);
     this.Controls.Add(this.tabControl1);
     this.Controls.Add(this.statusBar1);
     panel1.Controls.Add(this.label4);
     panel1.Controls.Add(this.txtURL);
     panel1.Controls.Add(this.label2);
     panel1.Controls.Add(this.txtConnection);
     panel1.Controls.Add(this.label5);
     panel1.Controls.Add(this.label6);
     panel1.Controls.Add(this.txtPort);
     panel1.Controls.Add(this.label7);
     panel1.Controls.Add(this.txtPath);
     panel1.Controls.Add(this.label8);
     tabControl1.Controls.Add(this.tabSearch);
     tabControl1.Controls.Add(this.tabLibrary);
     tabControl1.Controls.Add(this.tabOptions);
     tabLibrary.Controls.Add(this.lstLibrary);
     tabLibrary.Controls.Add(this.label3);
     tabSearch.Controls.Add(this.btnDownload);
     tabSearch.Controls.Add(this.btnFind);
     tabSearch.Controls.Add(this.txtSearch);
     tabSearch.Controls.Add(this.label1);
     tabSearch.Controls.Add(this.lstResults);
 }
Ejemplo n.º 5
0
 /// <summary>
 ///    Required method for Designer support - do not modify
 ///    the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container ();
     this.label1 = new System.WinForms.Label ();
     this.label7 = new System.WinForms.Label ();
     this.label3 = new System.WinForms.Label ();
     this.label2 = new System.WinForms.Label ();
     this.btnDownload = new System.WinForms.Button ();
     this.txtPort = new System.WinForms.TextBox ();
     this.label8 = new System.WinForms.Label ();
     this.label5 = new System.WinForms.Label ();
     this.clPing = new System.WinForms.ColumnHeader ();
     this.txtURL = new System.WinForms.TextBox ();
     this.tabSearch = new System.WinForms.TabPage ();
     this.columnHeader2 = new System.WinForms.ColumnHeader ();
     this.label6 = new System.WinForms.Label ();
     this.tabLibrary = new System.WinForms.TabPage ();
     this.statusBar1 = new System.WinForms.StatusBar ();
     this.tmrLogon = new System.WinForms.Timer (this.components);
     this.clConnection = new System.WinForms.ColumnHeader ();
     this.lstResults = new System.WinForms.ListView ();
     this.tabControl1 = new System.WinForms.TabControl ();
     this.pnlNumUsers = new System.WinForms.StatusBarPanel ();
     this.clMachineName = new System.WinForms.ColumnHeader ();
     this.clFilePath = new System.WinForms.ColumnHeader ();
     this.clSize = new System.WinForms.ColumnHeader ();
     this.txtSearch = new System.WinForms.TextBox ();
     this.lstLibrary = new System.WinForms.ListView ();
     this.tabOptions = new System.WinForms.TabPage ();
     this.txtPath = new System.WinForms.TextBox ();
     this.clFileName = new System.WinForms.ColumnHeader ();
     this.btnFind = new System.WinForms.Button ();
     this.panel1 = new System.WinForms.Panel ();
     this.pnlTotalData = new System.WinForms.StatusBarPanel ();
     this.columnHeader4 = new System.WinForms.ColumnHeader ();
     this.columnHeader3 = new System.WinForms.ColumnHeader ();
     this.label4 = new System.WinForms.Label ();
     this.columnHeader1 = new System.WinForms.ColumnHeader ();
     this.txtConnection = new System.WinForms.TextBox ();
     pnlNumUsers.BeginInit ();
     pnlTotalData.BeginInit ();
     //@this.TrayHeight = 90;
     //@this.TrayLargeIcon = false;
     //@this.TrayAutoArrange = true;
     label1.Location = new System.Drawing.Point (0, 16);
     label1.Text = "Search For:";
     label1.Size = new System.Drawing.Size (64, 16);
     label1.TabIndex = 1;
     label7.Location = new System.Drawing.Point (24, 160);
     label7.Text = "Communication Settings";
     label7.Size = new System.Drawing.Size (123, 13);
     label7.AutoSize = true;
     label7.TabIndex = 5;
     label3.Location = new System.Drawing.Point (0, 24);
     label3.Text = "Shared Files:";
     label3.Size = new System.Drawing.Size (344, 16);
     label3.TabIndex = 1;
     label2.Location = new System.Drawing.Point (16, 232);
     label2.Text = "Conn Speed:";
     label2.Size = new System.Drawing.Size (68, 13);
     label2.AutoSize = true;
     label2.TabIndex = 9;
     btnDownload.Location = new System.Drawing.Point (544, 8);
     btnDownload.Size = new System.Drawing.Size (104, 24);
     btnDownload.TabIndex = 2;
     btnDownload.Text = "&Download";
     btnDownload.Click += new System.EventHandler (this.btnDownload_Click);
     txtPort.Location = new System.Drawing.Point (104, 196);
     txtPort.Text = "8081";
     txtPort.TabIndex = 2;
     txtPort.Size = new System.Drawing.Size (56, 20);
     txtPort.Leave += new System.EventHandler (this.txtPort_Leave);
     label8.Location = new System.Drawing.Point (24, 32);
     label8.Text = "File Settings";
     label8.Size = new System.Drawing.Size (65, 13);
     label8.AutoSize = true;
     label8.TabIndex = 7;
     label5.Location = new System.Drawing.Point (48, 200);
     label5.Text = "Port:";
     label5.Size = new System.Drawing.Size (27, 13);
     label5.AutoSize = true;
     label5.TabIndex = 2;
     clPing.Text = "Ping";
     clPing.TextAlign = System.WinForms.HorizontalAlignment.Left;
     txtURL.Location = new System.Drawing.Point (104, 272);
     txtURL.Text = "http://localhost/services/p2pservice.asmx";
     txtURL.TabIndex = 4;
     txtURL.Size = new System.Drawing.Size (352, 20);
     txtURL.Leave += new System.EventHandler (this.txtPath_Leave);
     tabSearch.Text = "Search";
     tabSearch.Size = new System.Drawing.Size (672, 411);
     tabSearch.BorderStyle = System.WinForms.BorderStyle.Fixed3D;
     tabSearch.TabIndex = 0;
     columnHeader2.Text = "ColumnHeader";
     columnHeader2.TextAlign = System.WinForms.HorizontalAlignment.Left;
     label6.Location = new System.Drawing.Point (48, 64);
     label6.Text = "File Path:";
     label6.Size = new System.Drawing.Size (50, 13);
     label6.AutoSize = true;
     label6.TabIndex = 3;
     tabLibrary.Text = "Library";
     tabLibrary.Size = new System.Drawing.Size (672, 411);
     tabLibrary.BorderStyle = System.WinForms.BorderStyle.Fixed3D;
     tabLibrary.TabIndex = 1;
     statusBar1.BackColor = System.Drawing.SystemColors.Control;
     statusBar1.Location = new System.Drawing.Point (0, 450);
     statusBar1.Size = new System.Drawing.Size (690, 29);
     statusBar1.TabIndex = 7;
     statusBar1.ShowPanels = true;
     statusBar1.Panels.All = new System.WinForms.StatusBarPanel[2] {this.pnlNumUsers, this.pnlTotalData};
     //@tmrLogon.SetLocation (new System.Drawing.Point (216, 7));
     tmrLogon.Interval = 2000;
     tmrLogon.Enabled = true;
     tmrLogon.Tick += new System.EventHandler (this.tmrLogon_Tick);
     clConnection.Text = "Connection";
     clConnection.Width = 97;
     clConnection.TextAlign = System.WinForms.HorizontalAlignment.Left;
     lstResults.Location = new System.Drawing.Point (0, 40);
     lstResults.Size = new System.Drawing.Size (664, 368);
     lstResults.HideSelection = false;
     lstResults.View = System.WinForms.View.Report;
     lstResults.ForeColor = System.Drawing.SystemColors.WindowText;
     lstResults.TabIndex = 3;
     lstResults.DoubleClick += new System.EventHandler (this.btnDownload_Click);
     lstResults.Columns.All = new System.WinForms.ColumnHeader[6] {this.clFileName, this.clFilePath, this.clSize, this.clConnection, this.clMachineName, this.clPing};
     tabControl1.Location = new System.Drawing.Point (8, 8);
     tabControl1.Size = new System.Drawing.Size (680, 440);
     tabControl1.SelectedIndex = 0;
     tabControl1.Appearance = System.WinForms.TabAppearance.FlatButtons;
     tabControl1.TabIndex = 8;
     //@pnlNumUsers.SetLocation (new System.Drawing.Point (7, 7));
     pnlNumUsers.Text = "There are currently N users in the Share Baby community";
     pnlNumUsers.Width = 292;
     pnlNumUsers.AutoSize = System.WinForms.StatusBarPanelAutoSize.Contents;
     clMachineName.Text = "IP Address";
     clMachineName.Width = 99;
     clMachineName.TextAlign = System.WinForms.HorizontalAlignment.Left;
     clFilePath.Text = "Path";
     clFilePath.Width = 200;
     clFilePath.TextAlign = System.WinForms.HorizontalAlignment.Left;
     clSize.Text = "Size";
     clSize.Width = 81;
     clSize.TextAlign = System.WinForms.HorizontalAlignment.Left;
     txtSearch.Location = new System.Drawing.Point (64, 8);
     txtSearch.TabIndex = 0;
     txtSearch.Size = new System.Drawing.Size (328, 20);
     lstLibrary.Location = new System.Drawing.Point (0, 40);
     lstLibrary.Size = new System.Drawing.Size (664, 368);
     lstLibrary.View = System.WinForms.View.Report;
     lstLibrary.ForeColor = System.Drawing.SystemColors.WindowText;
     lstLibrary.TabIndex = 4;
     lstLibrary.Columns.All = new System.WinForms.ColumnHeader[4] {this.columnHeader4, this.columnHeader1, this.columnHeader2, this.columnHeader3};
     tabOptions.Text = "Options";
     tabOptions.Size = new System.Drawing.Size (672, 411);
     tabOptions.BorderStyle = System.WinForms.BorderStyle.Fixed3D;
     tabOptions.TabIndex = 3;
     txtPath.Location = new System.Drawing.Point (104, 64);
     txtPath.Text = "c:\\files";
     txtPath.TabIndex = 0;
     txtPath.Size = new System.Drawing.Size (352, 20);
     txtPath.Leave += new System.EventHandler (this.txtPath_Leave);
     clFileName.Text = "File Name";
     clFileName.Width = 120;
     clFileName.TextAlign = System.WinForms.HorizontalAlignment.Left;
     btnFind.Location = new System.Drawing.Point (416, 8);
     btnFind.Size = new System.Drawing.Size (104, 24);
     btnFind.TabIndex = 1;
     btnFind.Text = "&Find";
     btnFind.Click += new System.EventHandler (this.btnFind_Click_1);
     panel1.Size = new System.Drawing.Size (656, 400);
     panel1.TabIndex = 0;
     //@pnlTotalData.SetLocation (new System.Drawing.Point (114, 7));
     pnlTotalData.Text = "A total of N files are being shared";
     pnlTotalData.Width = 382;
     pnlTotalData.AutoSize = System.WinForms.StatusBarPanelAutoSize.Spring;
     columnHeader4.Text = "ColumnHeader";
     columnHeader4.TextAlign = System.WinForms.HorizontalAlignment.Left;
     columnHeader3.Text = "ColumnHeader";
     columnHeader3.TextAlign = System.WinForms.HorizontalAlignment.Left;
     label4.Location = new System.Drawing.Point (16, 272);
     label4.Text = "Service URL:";
     label4.Size = new System.Drawing.Size (69, 13);
     label4.AutoSize = true;
     label4.TabIndex = 11;
     columnHeader1.Text = "ColumnHeader";
     columnHeader1.TextAlign = System.WinForms.HorizontalAlignment.Left;
     txtConnection.Location = new System.Drawing.Point (104, 232);
     txtConnection.Text = "LAN";
     txtConnection.TabIndex = 3;
     txtConnection.Size = new System.Drawing.Size (56, 20);
     txtConnection.Leave += new System.EventHandler (this.txtPath_Leave);
     pnlNumUsers.EndInit ();
     pnlTotalData.EndInit ();
     this.Text = "Share Baby - Content Finder";
     this.MaximizeBox = false;
     this.StartPosition = System.WinForms.FormStartPosition.CenterParent;
     this.AutoScaleBaseSize = new System.Drawing.Size (5, 13);
     this.BorderStyle = System.WinForms.FormBorderStyle.FixedDialog;
     this.AcceptButton = this.btnFind;
     this.ClientSize = new System.Drawing.Size (690, 479);
     this.Closing += new System.ComponentModel.CancelEventHandler (this.Form1_Closing);
     tabOptions.Controls.Add (this.panel1);
     this.Controls.Add (this.tabControl1);
     this.Controls.Add (this.statusBar1);
     panel1.Controls.Add (this.label4);
     panel1.Controls.Add (this.txtURL);
     panel1.Controls.Add (this.label2);
     panel1.Controls.Add (this.txtConnection);
     panel1.Controls.Add (this.label5);
     panel1.Controls.Add (this.label6);
     panel1.Controls.Add (this.txtPort);
     panel1.Controls.Add (this.label7);
     panel1.Controls.Add (this.txtPath);
     panel1.Controls.Add (this.label8);
     tabControl1.Controls.Add (this.tabSearch);
     tabControl1.Controls.Add (this.tabLibrary);
     tabControl1.Controls.Add (this.tabOptions);
     tabLibrary.Controls.Add (this.lstLibrary);
     tabLibrary.Controls.Add (this.label3);
     tabSearch.Controls.Add (this.btnDownload);
     tabSearch.Controls.Add (this.btnFind);
     tabSearch.Controls.Add (this.txtSearch);
     tabSearch.Controls.Add (this.label1);
     tabSearch.Controls.Add (this.lstResults);
 }
Ejemplo n.º 6
0
 /// <summary>
 ///    Required method for Designer support - do not modify
 ///    the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(AboutForm));
     this.components       = new System.ComponentModel.Container();
     this.pictureBox1      = new System.WinForms.PictureBox();
     this.lblAppVersion    = new System.WinForms.Label();
     this.lblLicenseInfo   = new System.WinForms.Label();
     this.lblAppName       = new System.WinForms.Label();
     this.lblCopyright     = new System.WinForms.Label();
     this.btnOK            = new System.WinForms.Button();
     this.pbWhiteImageArea = new System.WinForms.PictureBox();
     this.llabLink         = new System.WinForms.LinkLabel();
     //@this.TrayHeight = 90;
     //@this.TrayLargeIcon = false;
     //@this.TrayAutoArrange = true;
     pictureBox1.Location    = new System.Drawing.Point(8, 0);
     pictureBox1.Size        = new System.Drawing.Size(408, 64);
     pictureBox1.TabIndex    = 9;
     pictureBox1.TabStop     = false;
     pictureBox1.Image       = (System.Drawing.Image)resources.GetObject("pictureBox1.Image");
     lblAppVersion.Location  = new System.Drawing.Point(112, 104);
     lblAppVersion.Text      = "Version 2.0.0";
     lblAppVersion.Size      = new System.Drawing.Size(288, 16);
     lblAppVersion.TabIndex  = 4;
     lblLicenseInfo.Location = new System.Drawing.Point(112, 168);
     lblLicenseInfo.Text     = "This product is licenced under the Mozilla Public License, a copy of which is available in the distribution.";
     lblLicenseInfo.Size     = new System.Drawing.Size(288, 48);
     lblLicenseInfo.TabIndex = 7;
     lblAppName.Location     = new System.Drawing.Point(112, 88);
     lblAppName.Text         = "Dubh WinBlock.NET";
     lblAppName.Size         = new System.Drawing.Size(296, 16);
     lblAppName.TabIndex     = 1;
     lblCopyright.Location   = new System.Drawing.Point(112, 120);
     lblCopyright.Text       = "Copyright (C) 1996 - 2001 Brian Duff";
     lblCopyright.Size       = new System.Drawing.Size(288, 16);
     lblCopyright.TabIndex   = 6;
     btnOK.Location          = new System.Drawing.Point(328, 272);
     btnOK.Size                 = new System.Drawing.Size(80, 23);
     btnOK.TabIndex             = 5;
     btnOK.Text                 = "OK";
     pbWhiteImageArea.BackColor = System.Drawing.Color.White;
     pbWhiteImageArea.Dock      = System.WinForms.DockStyle.Top;
     pbWhiteImageArea.Size      = new System.Drawing.Size(418, 72);
     pbWhiteImageArea.TabIndex  = 3;
     pbWhiteImageArea.TabStop   = false;
     llabLink.Text              = "http://www.dubh.org";
     llabLink.Size              = new System.Drawing.Size(296, 16);
     llabLink.TabIndex          = 8;
     llabLink.TabStop           = true;
     llabLink.Location          = new System.Drawing.Point(112, 232);
     this.Text              = "About WinBlock";
     this.MaximizeBox       = false;
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.BorderStyle       = System.WinForms.FormBorderStyle.FixedDialog;
     this.Font              = new System.Drawing.Font("Tahoma", 8);
     this.MinimizeBox       = false;
     this.ClientSize        = new System.Drawing.Size(418, 303);
     this.Controls.Add(this.pictureBox1);
     this.Controls.Add(this.llabLink);
     this.Controls.Add(this.lblLicenseInfo);
     this.Controls.Add(this.lblCopyright);
     this.Controls.Add(this.btnOK);
     this.Controls.Add(this.lblAppVersion);
     this.Controls.Add(this.pbWhiteImageArea);
     this.Controls.Add(this.lblAppName);
 }
Ejemplo n.º 7
0
 /// <summary>
 ///    Required method for Designer support - do not modify
 ///    the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components    = new System.ComponentModel.Container();
     this.lblLivesTitle = new System.WinForms.Label();
     this.lblLives      = new System.WinForms.Label();
     this.lblVersion    = new System.WinForms.Label();
     this.lblScoreTitle = new System.WinForms.Label();
     this.lblAppName    = new System.WinForms.Label();
     this.lblScore      = new System.WinForms.Label();
     //@this.TrayLargeIcon = false;
     //@this.TrayAutoArrange = true;
     //@this.TrayHeight = 0;
     lblLivesTitle.Location = new System.Drawing.Point(8, 0);
     lblLivesTitle.Text     = "Lives Remaining:";
     lblLivesTitle.Size     = new System.Drawing.Size(100, 16);
     lblLivesTitle.Font     = new System.Drawing.Font("Tahoma", 8);
     lblLivesTitle.TabIndex = 0;
     lblLives.Location      = new System.Drawing.Point(8, 16);
     lblLives.Text          = "0";
     lblLives.Size          = new System.Drawing.Size(100, 27);
     lblLives.BorderStyle   = System.WinForms.BorderStyle.Fixed3D;
     lblLives.ForeColor     = System.Drawing.Color.Lime;
     lblLives.Font          = new System.Drawing.Font("Times New Roman", 18, System.Drawing.FontStyle.Bold);
     lblLives.TabIndex      = 3;
     lblLives.BackColor     = (System.Drawing.Color)System.Drawing.Color.FromARGB(64, 0, 64);
     lblLives.TextAlign     = System.WinForms.HorizontalAlignment.Center;
     lblVersion.Location    = new System.Drawing.Point(112, 32);
     lblVersion.Text        = "Version: 0.0";
     lblVersion.Size        = new System.Drawing.Size(176, 16);
     lblVersion.Font        = new System.Drawing.Font("Tahoma", 8);
     lblVersion.TabIndex    = 5;
     lblVersion.TextAlign   = System.WinForms.HorizontalAlignment.Center;
     lblScoreTitle.Location = new System.Drawing.Point(288, 0);
     lblScoreTitle.Text     = "Score:";
     lblScoreTitle.Size     = new System.Drawing.Size(100, 16);
     lblScoreTitle.Font     = new System.Drawing.Font("Tahoma", 8);
     lblScoreTitle.TabIndex = 1;
     lblAppName.Location    = new System.Drawing.Point(112, 0);
     lblAppName.Text        = "WinBlock";
     lblAppName.Size        = new System.Drawing.Size(176, 32);
     lblAppName.ForeColor   = System.Drawing.Color.Purple;
     lblAppName.Font        = new System.Drawing.Font("Comic Sans MS", 20, System.Drawing.FontStyle.Bold);
     lblAppName.TabIndex    = 4;
     lblAppName.TextAlign   = System.WinForms.HorizontalAlignment.Center;
     lblScore.Location      = new System.Drawing.Point(288, 16);
     lblScore.Text          = "0";
     lblScore.Size          = new System.Drawing.Size(100, 27);
     lblScore.BorderStyle   = System.WinForms.BorderStyle.Fixed3D;
     lblScore.ForeColor     = System.Drawing.Color.Lime;
     lblScore.Font          = new System.Drawing.Font("Times New Roman", 18, System.Drawing.FontStyle.Bold);
     lblScore.TabIndex      = 2;
     lblScore.BackColor     = (System.Drawing.Color)System.Drawing.Color.FromARGB(64, 0, 64);
     lblScore.TextAlign     = System.WinForms.HorizontalAlignment.Center;
     this.Size = new System.Drawing.Size(392, 48);
     this.Controls.Add(this.lblVersion);
     this.Controls.Add(this.lblAppName);
     this.Controls.Add(this.lblLives);
     this.Controls.Add(this.lblScore);
     this.Controls.Add(this.lblScoreTitle);
     this.Controls.Add(this.lblLivesTitle);
 }