Ejemplo n.º 1
0
 private void NewMAC_TextChanged(object sender, EventArgs e)
 {
     SAVE.Enabled = (Adapter.ControlMAC(NewMAC.Text, false) == (CurrentMAC.Text != NewMAC.Text));
 }
Ejemplo n.º 2
0
 private void Summon_Click(object sender, EventArgs e)
 {
     NewMAC.Text = Adapter.CreateMAC();
 }
Ejemplo n.º 3
0
 public static bool ControlMAC(byte[] Bytes, bool Actual)
 {
     return(ControlMAC(Adapter.MACToString(Bytes), Actual));
 }
Ejemplo n.º 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;
            }
        }
Ejemplo n.º 5
0
 private void Generate_B_Click(object sender, EventArgs e)
 {
     New_TB.Text = Adapter.CreateMAC();
 }