public ScribbleForm()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            dibujo = new Dibujo();
            trazo = null;
            color = Color.Black;
            width = 1;
        }
        public ScribbleForm()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            dibujo = new Dibujo();
            trazo = null;
            color = Color.Black;
            width = 1;
        }
 private void FileReceiveMenuItem_Click(object sender, System.EventArgs e)
 {
     int port = 3000;
     IPAddress localAdd = IPAddress.Parse("192.168.0.75");
     TcpListener listener = new TcpListener(localAdd, port);
     listener.Start();
     TcpClient client = listener.AcceptTcpClient();
     NetworkStream stm = client.GetStream();
     BinaryFormatter fmt = new BinaryFormatter();
     dibujo = (Dibujo) fmt.Deserialize(stm);
     stm.Close();
     client.Close();
     this.Invalidate();
     this.Update();
 }
 private void FileOpenMenuItem_Click(object sender, System.EventArgs e)
 {
     DialogResult dr;
     dr = openFileDialog1.ShowDialog();
     if (dr == DialogResult.OK)
     {
         FileStream stm = new FileStream(openFileDialog1.FileName,
             FileMode.Open);
         try
         {
             SoapFormatter fmt = new SoapFormatter();
             dibujo = (Dibujo) fmt.Deserialize(stm);
         }
         finally
         {
             stm.Close();
         }
         this.Invalidate();
         this.Update();
     }
 }