Exemplo n.º 1
0
 private void BtnDHCP_Click(object sender, EventArgs e)
 {
     try
     {
         string NicName = (string)CboNic.SelectedItem;
         WMIHelper.SetDHCP(NicName);
         RetSettings();
     }
     catch (Exception ex)
     {
         MessageBox.Show("Unable to set IP \nError : " + ex.Message);
     }
 }