示例#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);
        }