private void OnDataChanged() { if (initialized && ipValidInput && comboBoxInterfaces.SelectedIndex > -1) { GatewayChanged?.Invoke(IPAddress.Parse(textBoxIpAddress.Text), comboBoxInterfaces.SelectedItem.ToString(), checkBoxInternetAccess.Checked); } }
/// <summary> /// Handler for the GateWayChanged event of a GWConfigControl. /// </summary> /// <param name="GwAddress">The IP address of the default gateway</param> /// <param name="InterfaceName">The name of the assigned interface</param> /// <param name="HasInternetAccess">Flag indicating whether the workstation has internet access</param> private void GWConfigControl_GatewayChanged(IPAddress GwAddress, string InterfaceName, bool HasInternetAccess) { GatewayChanged?.Invoke(GwAddress, InterfaceName, HasInternetAccess); }