Beispiel #1
0
        private void SendButton_Click(object sender, EventArgs e)
        {
            try
            {
                MagicPacket wakeUpPacket = new MagicPacket(this.MACTextbox.Text);

                int byteSend = wakeUpPacket.WakeUp();

                this.ResultsLabel.Text = string.Format("{0} bytes sent to {1}", byteSend, wakeUpPacket.macAddress);
            }
            catch (Exception exc)
            {
                Log.Info("Error sending Magic Packet", exc);
                MessageBox.Show("There was an error sending the Magic Packet" + exc.Message);
            }
        }
Beispiel #2
0
        private void SendButton_Click(object sender, EventArgs e)
        {
            try
            {
                MagicPacket wakeUpPacket = new MagicPacket(this.MACTextbox.Text);

                int byteSend = wakeUpPacket.WakeUp();

                this.ResultsLabel.Text = string.Format("{0} bytes sent to {1}", byteSend, wakeUpPacket.macAddress);
            }
            catch (Exception exc)
            {
                Log.Info("Error sending Magic Packet", exc);
                MessageBox.Show("There was an error sending the Magic Packet" + exc.Message);
            }
        }