Esempio n. 1
0
 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());
     }
 }
Esempio n. 2
0
 /// <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);
 }
Esempio n. 3
0
        private void NotifyRouteChanged()
        {
            Logger.LogInformation("Open View: {0}", Active.GetType().FullName);

            RouteChanged?.Invoke(this, new RouteChangedEventArgs(Active));
        }
Esempio n. 4
0
 protected virtual void OnRouteChanged(string name, object value)
 {
     RouteChanged?.Invoke(this, new RouteChangedEventArgs(name, value));
 }