Пример #1
0
 private void OnDataChanged()
 {
     if (initialized && ipValidInput && comboBoxInterfaces.SelectedIndex > -1)
     {
         GatewayChanged?.Invoke(IPAddress.Parse(textBoxIpAddress.Text), comboBoxInterfaces.SelectedItem.ToString(), checkBoxInternetAccess.Checked);
     }
 }
Пример #2
0
 /// <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);
 }