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