Beispiel #1
0
 static void Main()
 {
     Socket_.load();
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Application.Run(new start());
 }
        private void button1_Click(object sender, EventArgs e)
        {
            Socket_.join_(textBox1.Text);
            this.Visible = false;
            Drawing drawing = new Drawing();

            drawing.ShowDialog();
        }
 private void panel1_MouseMove(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Left)
     {
         current = e.Location;
         Socket_.send_(old.X, old.Y, current.X, current.Y);
         graphics.DrawLine(pen, old, current);
         old = current;
     }
 }
        public create_room()
        {
            InitializeComponent();

            Random r   = new Random();
            int    key = r.Next(100000, 999999);

            Clipboard.SetText(key.ToString());

            Socket_.create_(key.ToString());
        }
 private void button1_Click(object sender, EventArgs e)
 {
     Socket_.end();
 }