private void RaiseVpnStateChanged(VpnStateChangedEventArgs e) { VpnStateChanged?.Invoke(this, e); }
private void OnVpnStateChanged(VpnState state) { VpnStateChanged?.Invoke(this, new EventArgs <VpnState>(state)); }
private void OnConnectorVpnStateChanged(object sender, VpnStateChangedEventArgs e) { VpnStateChanged?.Invoke(this, e); }
public void OnStateChanged(VpnStateContract e) { Action action = () => VpnStateChanged?.Invoke(this, e); Application.Current?.Dispatcher?.BeginInvoke(action, null); }