Ejemplo n.º 1
0
 public void openCDTray(string ipFrom)
 {
     if (os.thisComputer.ip.Equals(ip))
     {
         Programs.cdDrive(true);
     }
     sendNetworkMessage("cCDDrive " + ip + " open");
 }
Ejemplo n.º 2
0
 public void closeCDTray(string ipFrom)
 {
     if (os.thisComputer.ip.Equals(ip))
     {
         Programs.cdDrive(false);
     }
     sendNetworkMessage("cCDDrive " + ip + " close");
 }
Ejemplo n.º 3
0
 public void parseMessage(string msg)
 {
     this.addDisplayMessage(msg);
     char[] chArray = new char[2] {
         ' ', '\n'
     };
     string[] strArray = msg.Split(chArray);
     if (!strArray[0].Equals("cCDDrive"))
     {
         return;
     }
     if (strArray[2].Equals("open"))
     {
         Programs.cdDrive(true);
     }
     else
     {
         Programs.cdDrive(false);
     }
 }