예제 #1
0
 private static ServiceSettingsStateChangedEventArgs Map(ServiceSettingsStateContract contract)
 {
     return(new(contract.IsNetworkBlocked, Map(contract.CurrentState)));
 }
예제 #2
0
파일: VpnEvents.cs 프로젝트: Ifry/win-app
        public void OnServiceSettingsStateChanged(ServiceSettingsStateContract e)
        {
            Action action = () => ServiceSettingsStateChanged?.Invoke(this, e);

            Application.Current?.Dispatcher?.BeginInvoke(action, null);
        }