コード例 #1
0
ファイル: GWConfigControl.cs プロジェクト: JPsychotic/SWP16
 private void OnDataChanged()
 {
     if (initialized && ipValidInput && comboBoxInterfaces.SelectedIndex > -1)
     {
         GatewayChanged?.Invoke(IPAddress.Parse(textBoxIpAddress.Text), comboBoxInterfaces.SelectedItem.ToString(), checkBoxInternetAccess.Checked);
     }
 }
コード例 #2
0
ファイル: PropertyControl.cs プロジェクト: JPsychotic/SWP16
 /// <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);
 }