private void OnDataChanged() { if (initialized && destinationValidInput && netMaskValidInput && routeValidInput && comboBoxInterfaces.SelectedIndex > -1) { RouteChanged?.Invoke(RouteName, IPAddress.Parse(textBoxDestination.Text), IPAddress.Parse(textBoxRoute.Text), IPAddress.Parse(textBoxSubnetMask.Text), comboBoxInterfaces.SelectedItem.ToString()); } }
/// <summary> /// Handler for the RouteChanged event of a RouteConfigControl /// </summary> /// <param name="RouteName">The name of the route</param> /// <param name="Source">IP address of the route source</param> /// <param name="Destination">IP address of the route destination</param> /// <param name="Route">IP address of the route</param> /// <param name="Parameters">Parameters for the route</param> private void RouteConfigControl_RouteChanged(string RouteName, IPAddress Source, IPAddress Destination, IPAddress Route, string Parameters) { RouteChanged?.Invoke(RouteName, Source, Destination, Route, Parameters); }
private void NotifyRouteChanged() { Logger.LogInformation("Open View: {0}", Active.GetType().FullName); RouteChanged?.Invoke(this, new RouteChangedEventArgs(Active)); }
protected virtual void OnRouteChanged(string name, object value) { RouteChanged?.Invoke(this, new RouteChangedEventArgs(name, value)); }