Beispiel #1
0
 private void NewMAC_TextChanged(object sender, EventArgs e)
 {
     SAVE.Enabled = (Adapter.ControlMAC(NewMAC.Text, false) == (CurrentMAC.Text != NewMAC.Text));
 }
Beispiel #2
0
 private void Summon_Click(object sender, EventArgs e)
 {
     NewMAC.Text = Adapter.CreateMAC();
 }
Beispiel #3
0
 public static bool ControlMAC(byte[] Bytes, bool Actual)
 {
     return(ControlMAC(Adapter.MACToString(Bytes), Actual));
 }
Beispiel #4
0
        private void LAST_Load(object sender, EventArgs e)
        {
            foreach (NetworkInterface Adapter in NetworkInterface.GetAllNetworkInterfaces().Where(FA => Adapter.ControlMAC(FA.GetPhysicalAddress().GetAddressBytes(), true)).OrderByDescending(FA => FA.IsReceiveOnly))
            {
                Adapters.Items.Add(new Adapter(Adapter));
            }

            if (Adapters.Items.Count > 0)
            {
                Adapters.SelectedIndex = Adapters.Items.Count - 1;
            }
        }
Beispiel #5
0
 private void Generate_B_Click(object sender, EventArgs e)
 {
     New_TB.Text = Adapter.CreateMAC();
 }