Ejemplo n.º 1
0
 private void SendButton_Click(object sender, EventArgs e)
 {
     try {
         MagicPacket wakeUpPacket = new NetTools.MagicPacket(this.MACTextbox.Text);
         int byteSend = wakeUpPacket.WakeUp();
         this.ResultsLabel.Text = string.Format("{0} bytes sent to {1}", byteSend, wakeUpPacket.macAddress);
     } catch(Exception exc) {
         Terminals.Logging.Log.Debug("Error sending Magic Packet", exc);
         System.Windows.Forms.MessageBox.Show("There was an error sending the Magic Packet" + exc.Message);
     }
 }
Ejemplo n.º 2
0
 private void SendButton_Click(object sender, EventArgs e)
 {
     try {
         MagicPacket wakeUpPacket = new NetTools.MagicPacket(this.MACTextbox.Text);
         int         byteSend     = wakeUpPacket.WakeUp();
         this.ResultsLabel.Text = string.Format("{0} bytes sent to {1}", byteSend, wakeUpPacket.macAddress);
     } catch (Exception exc) {
         Terminals.Logging.Log.Debug("Error sending Magic Packet", exc);
         System.Windows.Forms.MessageBox.Show("There was an error sending the Magic Packet" + exc.Message);
     }
 }