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); } }
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); } }