Ejemplo n.º 1
0
        private void Fs_RecvStsEndPoint(object sender, RecvStsEndPtEventArgs e)
        {
            IPAddress cip   = e.IPAddress;
            int       cport = e.Port;

            cc = new ControlClient(cip, cport);
            if (RecvStsEndPoint != null)
            {
                RecvStsEndPoint(this, e);
            }
        }
Ejemplo n.º 2
0
 private void Manager_RecvStsEndPoint(object sender, RecvStsEndPtEventArgs e)
 {
     if (this.InvokeRequired)
     {
         RecvStsEndPtEventHandler dele = Manager_RecvStsEndPoint;
         this.Invoke(dele, new object[] { sender, e });
     }
     else
     {
         Manager manager = Manager.Singleton;
         foreach (ListViewItem lvi in lv_line.Items)
         {
             int no = int.Parse(lvi.SubItems[0].Text);
             manager.AddLine(no);
             manager.AddWafer(no, int.Parse(lvi.SubItems[1].Text));
             //error
             WaferLine wl = lvi.Tag as WaferLine;
             manager.AddPR(no, wl.PCnt);
             manager.SetSpeed(no, wl.Spin);
             manager.SetDrop(no, wl.Drop);
         }
         ts_lb.Text = String.Format("{0}:{1} 연결", e.IPAddress, e.Port);
     }
 }