Questo sito utilizza cookies solo per scopi di autenticazione sul sito e nient'altro. Nessuna informazione personale viene tracciata. Leggi l'informativa sui cookies.
Username: Password: oppure
Dc Mass - Mass.cs

Mass.cs

Caricato da:
Scarica il programma completo

  1. using System;
  2. using System.Drawing;
  3. using System.Collections;
  4. using System.ComponentModel;
  5. using System.Windows.Forms;
  6. using System.Data;
  7. using System.Threading;
  8. using System.Net;
  9. using System.Net.Sockets;
  10. using System.Text;
  11.  
  12. namespace SaTaNaDcMaSS
  13. {
  14.         /// <summary>
  15.         /// Summary description for Form1.
  16.         /// </summary>
  17.         public class MassM : System.Windows.Forms.Form
  18.         {
  19.                 Socket s;
  20.                 private System.Windows.Forms.Label label1;
  21.                 private System.Windows.Forms.Button button1;
  22.                 private Thread masst;
  23.                 private System.Windows.Forms.CheckBox c1;
  24.                 private System.Windows.Forms.CheckBox c2;
  25.                 private System.Windows.Forms.TextBox mess;
  26.                 private System.Windows.Forms.RichTextBox boh;
  27.                 private System.Windows.Forms.Timer timer;
  28.                 private System.ComponentModel.IContainer components;
  29.                 private System.Windows.Forms.RichTextBox tempo2;
  30.                 private System.Windows.Forms.Label label3;
  31.                 private int tempo;
  32.                 private string hub;
  33.                 private string porta;
  34.         public MassM(string hub,string porta)
  35.                 {
  36.                         //
  37.                         // Required for Windows Form Designer support
  38.                         //
  39.                         InitializeComponent();
  40.                         this.hub=hub;
  41.                         this.porta=porta;
  42.                        
  43.                        
  44.                 }
  45.  
  46.                 /// <summary>
  47.                 /// Clean up any resources being used.
  48.                 /// </summary>
  49.                 protected override void Dispose( bool disposing )
  50.                 {
  51.                         if( disposing )
  52.                         {
  53.                                 if (components != null)
  54.                                 {
  55.                                         components.Dispose();
  56.                                 }
  57.                         }
  58.                         base.Dispose( disposing );
  59.                 }
  60.  
  61.                 #region Windows Form Designer generated code
  62.                 /// <summary>
  63.                 /// Required method for Designer support - do not modify
  64.                 /// the contents of this method with the code editor.
  65.                 /// </summary>
  66.                 private void InitializeComponent()
  67.                 {
  68.                         this.components = new System.ComponentModel.Container();
  69.                         System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(MassM));
  70.                         this.label1 = new System.Windows.Forms.Label();
  71.                         this.mess = new System.Windows.Forms.TextBox();
  72.                         this.c1 = new System.Windows.Forms.CheckBox();
  73.                         this.c2 = new System.Windows.Forms.CheckBox();
  74.                         this.button1 = new System.Windows.Forms.Button();
  75.                         this.boh = new System.Windows.Forms.RichTextBox();
  76.                         this.timer = new System.Windows.Forms.Timer(this.components);
  77.                         this.tempo2 = new System.Windows.Forms.RichTextBox();
  78.                         this.label3 = new System.Windows.Forms.Label();
  79.                         this.SuspendLayout();
  80.                         //
  81.                         // label1
  82.                         //
  83.                         this.label1.AccessibleDescription = resources.GetString("label1.AccessibleDescription");
  84.                         this.label1.AccessibleName = resources.GetString("label1.AccessibleName");
  85.                         this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("label1.Anchor")));
  86.                         this.label1.AutoSize = ((bool)(resources.GetObject("label1.AutoSize")));
  87.                         this.label1.BackColor = System.Drawing.Color.Blue;
  88.                         this.label1.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("label1.Dock")));
  89.                         this.label1.Enabled = ((bool)(resources.GetObject("label1.Enabled")));
  90.                         this.label1.Font = ((System.Drawing.Font)(resources.GetObject("label1.Font")));
  91.                         this.label1.ForeColor = System.Drawing.Color.Yellow;
  92.                         this.label1.Image = ((System.Drawing.Image)(resources.GetObject("label1.Image")));
  93.                         this.label1.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("label1.ImageAlign")));
  94.                         this.label1.ImageIndex = ((int)(resources.GetObject("label1.ImageIndex")));
  95.                         this.label1.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("label1.ImeMode")));
  96.                         this.label1.Location = ((System.Drawing.Point)(resources.GetObject("label1.Location")));
  97.                         this.label1.Name = "label1";
  98.                         this.label1.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("label1.RightToLeft")));
  99.                         this.label1.Size = ((System.Drawing.Size)(resources.GetObject("label1.Size")));
  100.                         this.label1.TabIndex = ((int)(resources.GetObject("label1.TabIndex")));
  101.                         this.label1.Text = resources.GetString("label1.Text");
  102.                         this.label1.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("label1.TextAlign")));
  103.                         this.label1.Visible = ((bool)(resources.GetObject("label1.Visible")));
  104.                         //
  105.                         // mess
  106.                         //
  107.                         this.mess.AccessibleDescription = resources.GetString("mess.AccessibleDescription");
  108.                         this.mess.AccessibleName = resources.GetString("mess.AccessibleName");
  109.                         this.mess.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("mess.Anchor")));
  110.                         this.mess.AutoSize = ((bool)(resources.GetObject("mess.AutoSize")));
  111.                         this.mess.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("mess.BackgroundImage")));
  112.                         this.mess.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("mess.Dock")));
  113.                         this.mess.Enabled = ((bool)(resources.GetObject("mess.Enabled")));
  114.                         this.mess.Font = ((System.Drawing.Font)(resources.GetObject("mess.Font")));
  115.                         this.mess.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("mess.ImeMode")));
  116.                         this.mess.Location = ((System.Drawing.Point)(resources.GetObject("mess.Location")));
  117.                         this.mess.MaxLength = ((int)(resources.GetObject("mess.MaxLength")));
  118.                         this.mess.Multiline = ((bool)(resources.GetObject("mess.Multiline")));
  119.                         this.mess.Name = "mess";
  120.                         this.mess.PasswordChar = ((char)(resources.GetObject("mess.PasswordChar")));
  121.                         this.mess.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("mess.RightToLeft")));
  122.                         this.mess.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("mess.ScrollBars")));
  123.                         this.mess.Size = ((System.Drawing.Size)(resources.GetObject("mess.Size")));
  124.                         this.mess.TabIndex = ((int)(resources.GetObject("mess.TabIndex")));
  125.                         this.mess.Text = resources.GetString("mess.Text");
  126.                         this.mess.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("mess.TextAlign")));
  127.                         this.mess.Visible = ((bool)(resources.GetObject("mess.Visible")));
  128.                         this.mess.WordWrap = ((bool)(resources.GetObject("mess.WordWrap")));
  129.                         //
  130.                         // c1
  131.                         //
  132.                         this.c1.AccessibleDescription = resources.GetString("c1.AccessibleDescription");
  133.                         this.c1.AccessibleName = resources.GetString("c1.AccessibleName");
  134.                         this.c1.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("c1.Anchor")));
  135.                         this.c1.Appearance = ((System.Windows.Forms.Appearance)(resources.GetObject("c1.Appearance")));
  136.                         this.c1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("c1.BackgroundImage")));
  137.                         this.c1.CheckAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("c1.CheckAlign")));
  138.                         this.c1.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("c1.Dock")));
  139.                         this.c1.Enabled = ((bool)(resources.GetObject("c1.Enabled")));
  140.                         this.c1.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("c1.FlatStyle")));
  141.                         this.c1.Font = ((System.Drawing.Font)(resources.GetObject("c1.Font")));
  142.                         this.c1.ForeColor = System.Drawing.Color.Yellow;
  143.                         this.c1.Image = ((System.Drawing.Image)(resources.GetObject("c1.Image")));
  144.                         this.c1.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("c1.ImageAlign")));
  145.                         this.c1.ImageIndex = ((int)(resources.GetObject("c1.ImageIndex")));
  146.                         this.c1.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("c1.ImeMode")));
  147.                         this.c1.Location = ((System.Drawing.Point)(resources.GetObject("c1.Location")));
  148.                         this.c1.Name = "c1";
  149.                         this.c1.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("c1.RightToLeft")));
  150.                         this.c1.Size = ((System.Drawing.Size)(resources.GetObject("c1.Size")));
  151.                         this.c1.TabIndex = ((int)(resources.GetObject("c1.TabIndex")));
  152.                         this.c1.Text = resources.GetString("c1.Text");
  153.                         this.c1.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("c1.TextAlign")));
  154.                         this.c1.Visible = ((bool)(resources.GetObject("c1.Visible")));
  155.                         //
  156.                         // c2
  157.                         //
  158.                         this.c2.AccessibleDescription = resources.GetString("c2.AccessibleDescription");
  159.                         this.c2.AccessibleName = resources.GetString("c2.AccessibleName");
  160.                         this.c2.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("c2.Anchor")));
  161.                         this.c2.Appearance = ((System.Windows.Forms.Appearance)(resources.GetObject("c2.Appearance")));
  162.                         this.c2.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("c2.BackgroundImage")));
  163.                         this.c2.CheckAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("c2.CheckAlign")));
  164.                         this.c2.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("c2.Dock")));
  165.                         this.c2.Enabled = ((bool)(resources.GetObject("c2.Enabled")));
  166.                         this.c2.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("c2.FlatStyle")));
  167.                         this.c2.Font = ((System.Drawing.Font)(resources.GetObject("c2.Font")));
  168.                         this.c2.ForeColor = System.Drawing.Color.Yellow;
  169.                         this.c2.Image = ((System.Drawing.Image)(resources.GetObject("c2.Image")));
  170.                         this.c2.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("c2.ImageAlign")));
  171.                         this.c2.ImageIndex = ((int)(resources.GetObject("c2.ImageIndex")));
  172.                         this.c2.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("c2.ImeMode")));
  173.                         this.c2.Location = ((System.Drawing.Point)(resources.GetObject("c2.Location")));
  174.                         this.c2.Name = "c2";
  175.                         this.c2.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("c2.RightToLeft")));
  176.                         this.c2.Size = ((System.Drawing.Size)(resources.GetObject("c2.Size")));
  177.                         this.c2.TabIndex = ((int)(resources.GetObject("c2.TabIndex")));
  178.                         this.c2.Text = resources.GetString("c2.Text");
  179.                         this.c2.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("c2.TextAlign")));
  180.                         this.c2.Visible = ((bool)(resources.GetObject("c2.Visible")));
  181.                         //
  182.                         // button1
  183.                         //
  184.                         this.button1.AccessibleDescription = resources.GetString("button1.AccessibleDescription");
  185.                         this.button1.AccessibleName = resources.GetString("button1.AccessibleName");
  186.                         this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("button1.Anchor")));
  187.                         this.button1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("button1.BackgroundImage")));
  188.                         this.button1.DialogResult = System.Windows.Forms.DialogResult.Cancel;
  189.                         this.button1.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("button1.Dock")));
  190.                         this.button1.Enabled = ((bool)(resources.GetObject("button1.Enabled")));
  191.                         this.button1.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("button1.FlatStyle")));
  192.                         this.button1.Font = ((System.Drawing.Font)(resources.GetObject("button1.Font")));
  193.                         this.button1.ForeColor = System.Drawing.Color.Yellow;
  194.                         this.button1.Image = ((System.Drawing.Image)(resources.GetObject("button1.Image")));
  195.                         this.button1.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("button1.ImageAlign")));
  196.                         this.button1.ImageIndex = ((int)(resources.GetObject("button1.ImageIndex")));
  197.                         this.button1.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("button1.ImeMode")));
  198.                         this.button1.Location = ((System.Drawing.Point)(resources.GetObject("button1.Location")));
  199.                         this.button1.Name = "button1";
  200.                         this.button1.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("button1.RightToLeft")));
  201.                         this.button1.Size = ((System.Drawing.Size)(resources.GetObject("button1.Size")));
  202.                         this.button1.TabIndex = ((int)(resources.GetObject("button1.TabIndex")));
  203.                         this.button1.Text = resources.GetString("button1.Text");
  204.                         this.button1.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("button1.TextAlign")));
  205.                         this.button1.Visible = ((bool)(resources.GetObject("button1.Visible")));
  206.                         this.button1.Click += new System.EventHandler(this.button1_Click);
  207.                         //
  208.                         // boh
  209.                         //
  210.                         this.boh.AccessibleDescription = resources.GetString("boh.AccessibleDescription");
  211.                         this.boh.AccessibleName = resources.GetString("boh.AccessibleName");
  212.                         this.boh.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("boh.Anchor")));
  213.                         this.boh.AutoSize = ((bool)(resources.GetObject("boh.AutoSize")));
  214.                         this.boh.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("boh.BackgroundImage")));
  215.                         this.boh.BulletIndent = ((int)(resources.GetObject("boh.BulletIndent")));
  216.                         this.boh.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("boh.Dock")));
  217.                         this.boh.Enabled = ((bool)(resources.GetObject("boh.Enabled")));
  218.                         this.boh.Font = ((System.Drawing.Font)(resources.GetObject("boh.Font")));
  219.                         this.boh.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("boh.ImeMode")));
  220.                         this.boh.Location = ((System.Drawing.Point)(resources.GetObject("boh.Location")));
  221.                         this.boh.MaxLength = ((int)(resources.GetObject("boh.MaxLength")));
  222.                         this.boh.Multiline = ((bool)(resources.GetObject("boh.Multiline")));
  223.                         this.boh.Name = "boh";
  224.                         this.boh.ReadOnly = true;
  225.                         this.boh.RightMargin = ((int)(resources.GetObject("boh.RightMargin")));
  226.                         this.boh.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("boh.RightToLeft")));
  227.                         this.boh.ScrollBars = ((System.Windows.Forms.RichTextBoxScrollBars)(resources.GetObject("boh.ScrollBars")));
  228.                         this.boh.Size = ((System.Drawing.Size)(resources.GetObject("boh.Size")));
  229.                         this.boh.TabIndex = ((int)(resources.GetObject("boh.TabIndex")));
  230.                         this.boh.Text = resources.GetString("boh.Text");
  231.                         this.boh.Visible = ((bool)(resources.GetObject("boh.Visible")));
  232.                         this.boh.WordWrap = ((bool)(resources.GetObject("boh.WordWrap")));
  233.                         this.boh.ZoomFactor = ((System.Single)(resources.GetObject("boh.ZoomFactor")));
  234.                         //
  235.                         // timer
  236.                         //
  237.                         this.timer.Interval = 1;
  238.                         this.timer.Tick += new System.EventHandler(this.timer_Tick);
  239.                         //
  240.                         // tempo2
  241.                         //
  242.                         this.tempo2.AccessibleDescription = resources.GetString("tempo2.AccessibleDescription");
  243.                         this.tempo2.AccessibleName = resources.GetString("tempo2.AccessibleName");
  244.                         this.tempo2.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("tempo2.Anchor")));
  245.                         this.tempo2.AutoSize = ((bool)(resources.GetObject("tempo2.AutoSize")));
  246.                         this.tempo2.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("tempo2.BackgroundImage")));
  247.                         this.tempo2.BorderStyle = System.Windows.Forms.BorderStyle.None;
  248.                         this.tempo2.BulletIndent = ((int)(resources.GetObject("tempo2.BulletIndent")));
  249.                         this.tempo2.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("tempo2.Dock")));
  250.                         this.tempo2.Enabled = ((bool)(resources.GetObject("tempo2.Enabled")));
  251.                         this.tempo2.Font = ((System.Drawing.Font)(resources.GetObject("tempo2.Font")));
  252.                         this.tempo2.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("tempo2.ImeMode")));
  253.                         this.tempo2.Location = ((System.Drawing.Point)(resources.GetObject("tempo2.Location")));
  254.                         this.tempo2.MaxLength = ((int)(resources.GetObject("tempo2.MaxLength")));
  255.                         this.tempo2.Multiline = ((bool)(resources.GetObject("tempo2.Multiline")));
  256.                         this.tempo2.Name = "tempo2";
  257.                         this.tempo2.RightMargin = ((int)(resources.GetObject("tempo2.RightMargin")));
  258.                         this.tempo2.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("tempo2.RightToLeft")));
  259.                         this.tempo2.ScrollBars = ((System.Windows.Forms.RichTextBoxScrollBars)(resources.GetObject("tempo2.ScrollBars")));
  260.                         this.tempo2.Size = ((System.Drawing.Size)(resources.GetObject("tempo2.Size")));
  261.                         this.tempo2.TabIndex = ((int)(resources.GetObject("tempo2.TabIndex")));
  262.                         this.tempo2.Text = resources.GetString("tempo2.Text");
  263.                         this.tempo2.Visible = ((bool)(resources.GetObject("tempo2.Visible")));
  264.                         this.tempo2.WordWrap = ((bool)(resources.GetObject("tempo2.WordWrap")));
  265.                         this.tempo2.ZoomFactor = ((System.Single)(resources.GetObject("tempo2.ZoomFactor")));
  266.                         //
  267.                         // label3
  268.                         //
  269.                         this.label3.AccessibleDescription = resources.GetString("label3.AccessibleDescription");
  270.                         this.label3.AccessibleName = resources.GetString("label3.AccessibleName");
  271.                         this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("label3.Anchor")));
  272.                         this.label3.AutoSize = ((bool)(resources.GetObject("label3.AutoSize")));
  273.                         this.label3.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("label3.Dock")));
  274.                         this.label3.Enabled = ((bool)(resources.GetObject("label3.Enabled")));
  275.                         this.label3.Font = ((System.Drawing.Font)(resources.GetObject("label3.Font")));
  276.                         this.label3.ForeColor = System.Drawing.Color.Yellow;
  277.                         this.label3.Image = ((System.Drawing.Image)(resources.GetObject("label3.Image")));
  278.                         this.label3.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("label3.ImageAlign")));
  279.                         this.label3.ImageIndex = ((int)(resources.GetObject("label3.ImageIndex")));
  280.                         this.label3.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("label3.ImeMode")));
  281.                         this.label3.Location = ((System.Drawing.Point)(resources.GetObject("label3.Location")));
  282.                         this.label3.Name = "label3";
  283.                         this.label3.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("label3.RightToLeft")));
  284.                         this.label3.Size = ((System.Drawing.Size)(resources.GetObject("label3.Size")));
  285.                         this.label3.TabIndex = ((int)(resources.GetObject("label3.TabIndex")));
  286.                         this.label3.Text = resources.GetString("label3.Text");
  287.                         this.label3.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("label3.TextAlign")));
  288.                         this.label3.Visible = ((bool)(resources.GetObject("label3.Visible")));
  289.                         //
  290.                         // MassM
  291.                         //
  292.                         this.AccessibleDescription = resources.GetString("$this.AccessibleDescription");
  293.                         this.AccessibleName = resources.GetString("$this.AccessibleName");
  294.                         this.AutoScaleBaseSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScaleBaseSize")));
  295.                         this.AutoScroll = ((bool)(resources.GetObject("$this.AutoScroll")));
  296.                         this.AutoScrollMargin = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMargin")));
  297.                         this.AutoScrollMinSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMinSize")));
  298.                         this.BackColor = System.Drawing.Color.Blue;
  299.                         this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
  300.                         this.ClientSize = ((System.Drawing.Size)(resources.GetObject("$this.ClientSize")));
  301.                         this.Controls.Add(this.mess);
  302.                         this.Controls.Add(this.label3);
  303.                         this.Controls.Add(this.boh);
  304.                         this.Controls.Add(this.button1);
  305.                         this.Controls.Add(this.c2);
  306.                         this.Controls.Add(this.c1);
  307.                         this.Controls.Add(this.label1);
  308.                         this.Controls.Add(this.tempo2);
  309.                         this.Enabled = ((bool)(resources.GetObject("$this.Enabled")));
  310.                         this.Font = ((System.Drawing.Font)(resources.GetObject("$this.Font")));
  311.                         this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
  312.                         this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
  313.                         this.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("$this.ImeMode")));
  314.                         this.Location = ((System.Drawing.Point)(resources.GetObject("$this.Location")));
  315.                         this.MaximizeBox = false;
  316.                         this.MaximumSize = ((System.Drawing.Size)(resources.GetObject("$this.MaximumSize")));
  317.                         this.MinimumSize = ((System.Drawing.Size)(resources.GetObject("$this.MinimumSize")));
  318.                         this.Name = "MassM";
  319.                         this.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("$this.RightToLeft")));
  320.                         this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Show;
  321.                         this.StartPosition = ((System.Windows.Forms.FormStartPosition)(resources.GetObject("$this.StartPosition")));
  322.                         this.Text = resources.GetString("$this.Text");
  323.                         this.Load += new System.EventHandler(this.MassM_Load);
  324.                         this.ResumeLayout(false);
  325.  
  326.                 }
  327.                 #endregion
  328.  
  329.                 /// <summary>
  330.                 /// The main entry point for the application.
  331.                 /// </summary>
  332.  
  333.                 private void button1_Click(object sender, System.EventArgs e)
  334.                 {
  335.                         if(hub=="")
  336.                         {
  337.                         MessageBox.Show("InSeRiSCi Una PoRTa","Error",MessageBoxButtons.OK,MessageBoxIcon.Error);
  338.                         return;
  339.                         }
  340.                         if(porta=="")
  341.                         {
  342.                         MessageBox.Show("InSeRiSCi UnA PoRTa","Error",MessageBoxButtons.OK,MessageBoxIcon.Error);
  343.                         return;
  344.                         }
  345.                         if(c1.Checked==false && c2.Checked==false)
  346.                         {
  347.                         MessageBox.Show("SpuNTa ALMeNo Due DeLLe 2 CaSeLLe)","Error",MessageBoxButtons.OK,MessageBoxIcon.Error);
  348.                         return;
  349.                         }
  350.                 tempo=0;
  351.                 timer.Start();
  352.                 boh.Text="";
  353.                 MassMessage mass = new MassMessage(hub,Convert.ToInt32(porta),mess,c1,c2,boh,tempo2,timer);
  354.                 ThreadStart masstart = new ThreadStart(mass.RunMe);
  355.                 masst = new Thread(masstart);
  356.                 masst.Start();
  357.                 }
  358.                 void porta_KeyPress(object sender, KeyPressEventArgs e)
  359.                 {
  360.                         char ch=e.KeyChar;
  361.                         if (ch==8)
  362.                         return;
  363.                         if (char.IsDigit(ch)==false)
  364.                         e.Handled=true;
  365.                 }
  366.  
  367.                 private void timer_Tick(object sender, System.EventArgs e)
  368.                 {
  369.                 tempo+=1;
  370.                 tempo2.Text=Convert.ToString((tempo));
  371.                 }
  372.  
  373.                 private void MassM_Load(object sender, System.EventArgs e)
  374.                 {
  375.                
  376.                 }
  377.         }
  378. }