• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# IUserSettingService类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中IUserSettingService的典型用法代码示例。如果您正苦于以下问题:C# IUserSettingService类的具体用法?C# IUserSettingService怎么用?C# IUserSettingService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IUserSettingService类属于命名空间,在下文中一共展示了IUserSettingService类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: Encode

 /// <summary>
 /// Initializes a new instance of the <see cref="Encode"/> class.
 /// </summary>
 /// <param name="userSettingService">
 /// The user Setting Service.
 /// </param>
 public Encode(IUserSettingService userSettingService)
     : base(userSettingService)
 {
     this.userSettingService = userSettingService;
     this.EncodeStarted += this.EncodeEncodeStarted;
     GrowlCommunicator.Register();
 }
开发者ID:evolver56k,项目名称:HandBrake,代码行数:13,代码来源:Encode.cs


示例2: ScanService

        /// <summary>
        /// Initializes a new instance of the <see cref="ScanService"/> class.
        /// </summary>
        /// <param name="userSettingService">
        /// The user Setting Service.
        /// </param>
        public ScanService(IUserSettingService userSettingService)
        {
            this.userSettingService = userSettingService;
            this.logBuffer = new StringBuilder();

            header = GeneralUtilities.CreateCliLogHeader();
        }
开发者ID:JuannyWang,项目名称:HandBrake-QuickSync-Mac,代码行数:13,代码来源:ScanService.cs


示例3: NotificationService

 /// <summary>
 /// Initializes a new instance of the <see cref="NotificationService"/> class.
 /// </summary>
 /// <param name="encodeService">
 /// The encode Service.
 /// </param>
 /// <param name="queueProcessor">
 /// The queue Processor.
 /// </param>
 /// <param name="userSettingService">
 /// The user Setting Service.
 /// </param>
 public NotificationService(IEncodeServiceWrapper encodeService, IQueueProcessor queueProcessor, IUserSettingService userSettingService)
 {
     this.userSettingService = userSettingService;
     encodeService.EncodeCompleted += this.EncodeServiceEncodeCompleted;
     queueProcessor.QueueCompleted += this.QueueProcessorQueueCompleted;
     GrowlCommunicator.Register();
 }
开发者ID:JuannyWang,项目名称:HandBrake-QuickSync-Mac,代码行数:19,代码来源:NotificationService.cs


示例4: SubtitlesViewModel

        /// <summary>
        /// Initializes a new instance of the <see cref="HandBrakeWPF.ViewModels.SubtitlesViewModel"/> class.
        /// </summary>
        /// <param name="windowManager">
        /// The window manager.
        /// </param>
        /// <param name="userSettingService">
        /// The user Setting Service.
        /// </param>
        public SubtitlesViewModel(IWindowManager windowManager, IUserSettingService userSettingService)
        {
            this.Task = new EncodeTask();

            this.Langauges = LanguageUtilities.MapLanguages().Keys;
            this.CharacterCodes = CharCodesUtilities.GetCharacterCodes();
        }
开发者ID:kolanos,项目名称:HandBrake,代码行数:16,代码来源:SubtitlesViewModel.cs


示例5: SubtitlesViewModel

        /// <summary>
        /// Initializes a new instance of the <see cref="HandBrakeWPF.ViewModels.SubtitlesViewModel"/> class.
        /// </summary>
        /// <param name="windowManager">
        /// The window manager.
        /// </param>
        /// <param name="userSettingService">
        /// The user Setting Service.
        /// </param>
        public SubtitlesViewModel(IWindowManager windowManager, IUserSettingService userSettingService)
        {
            this.SubtitleTracks = new ObservableCollection<SubtitleTrack>();

            Langauges = LanguageUtilities.MapLanguages().Keys;
            CharacterCodes = CharCodesUtilities.GetCharacterCodes();
        }
开发者ID:newfront,项目名称:HandBrake,代码行数:16,代码来源:SubtitlesViewModel.cs


示例6: QueueSelectionViewModel

 /// <summary>
 /// Initializes a new instance of the <see cref="QueueSelectionViewModel"/> class. 
 /// </summary>
 /// <param name="errorService">
 /// The Error Service
 /// </param>
 /// <param name="userSettingService">
 /// The user Setting Service.
 /// </param>
 public QueueSelectionViewModel(IErrorService errorService, IUserSettingService userSettingService)
 {
     this.errorService = errorService;
     this.userSettingService = userSettingService;
     this.Title = Resources.QueueSelectionViewModel_AddToQueue;
     this.TitleList = new BindingList<SelectionTitle>();
     this.OrderedByTitle = true;
 }
开发者ID:galad87,项目名称:HandBrake-VideoToolbox,代码行数:17,代码来源:QueueSelectionViewModel.cs


示例7: LibEncode

        /// <summary>
        /// Initializes a new instance of the <see cref="LibEncode"/> class.
        /// </summary>
        /// <param name="userSettingService">
        /// The user Setting Service.
        /// </param>
        public LibEncode(IUserSettingService userSettingService)
            : base(userSettingService)
        {
            this.userSettingService = userSettingService;

            HandBrakeUtils.MessageLogged += this.HandBrakeInstanceMessageLogged;
            HandBrakeUtils.ErrorLogged += this.HandBrakeInstanceErrorLogged;
        }
开发者ID:RichardMarks,项目名称:HandBrakeMirror,代码行数:14,代码来源:LibEncode.cs


示例8: AudioViewModel

 /// <summary>
 /// Initializes a new instance of the <see cref="AudioViewModel"/> class.
 /// </summary>
 /// <param name="windowManager">
 /// The window manager.
 /// </param>
 /// <param name="userSettingService">
 /// The user Setting Service.
 /// </param>
 public AudioViewModel(IWindowManager windowManager, IUserSettingService userSettingService)
 {
     this.Task = new EncodeTask();
     this.SampleRates = new ObservableCollection<string> { "Auto", "48", "44.1", "32", "24", "22.05", "16", "12", "11.025", "8" };
     this.AudioEncoders = EnumHelper<AudioEncoder>.GetEnumList();
     this.AudioMixdowns = EnumHelper<Mixdown>.GetEnumList();
     this.SourceTracks = new List<Audio>();
 }
开发者ID:kevleyski,项目名称:HandBrake,代码行数:17,代码来源:AudioViewModel.cs


示例9: QueueProcessor

        /// <summary>
        /// Initializes a new instance of the <see cref="QueueProcessor"/> class.
        /// </summary>
        /// <param name="encodeService">
        /// The encode Service.
        /// </param>
        /// <param name="userSettingService">
        /// The user Setting Service.
        /// </param>
        /// <exception cref="ArgumentNullException">
        /// Services are not setup
        /// </exception>
        public QueueProcessor(IEncodeServiceWrapper encodeService, IUserSettingService userSettingService)
        {
            this.userSettingService = userSettingService;
            this.EncodeService = encodeService;

            // If this is the first instance, just use the main queue file, otherwise add the instance id to the filename.
            this.queueFile = string.Format("hb_queue_recovery{0}.xml", GeneralUtilities.ProcessId);
        }
开发者ID:kallisti5,项目名称:HaikuBrake,代码行数:20,代码来源:QueueProcessor.cs


示例10: QueueViewModel

 /// <summary>
 /// Initializes a new instance of the <see cref="QueueViewModel"/> class.
 /// </summary>
 /// <param name="userSettingService">
 /// The user Setting Service.
 /// </param>
 /// <param name="queueProcessor">
 /// The Queue Processor Service 
 /// </param>
 /// <param name="errorService">
 /// The Error Service 
 /// </param>
 public QueueViewModel(IUserSettingService userSettingService, IQueueProcessor queueProcessor, IErrorService errorService)
 {
     this.userSettingService = userSettingService;
     this.queueProcessor = queueProcessor;
     this.errorService = errorService;
     this.Title = "Queue";
     this.JobsPending = "No encodes pending";
     this.JobStatus = "There are no jobs currently encoding";
 }
开发者ID:kevleyski,项目名称:HandBrake,代码行数:21,代码来源:QueueViewModel.cs


示例11: AudioViewModel

 /// <summary>
 /// Initializes a new instance of the <see cref="AudioViewModel"/> class.
 /// </summary>
 /// <param name="windowManager">
 /// The window manager.
 /// </param>
 /// <param name="userSettingService">
 /// The user Setting Service.
 /// </param>
 public AudioViewModel(IWindowManager windowManager, IUserSettingService userSettingService)
 {
     this.Task = new EncodeTask();
     this.SampleRates = new ObservableCollection<string> { "Auto", "48", "44.1", "32", "24", "22.05" };
     this.AudioBitrates = this.GetAppropiateBitrates(AudioEncoder.ffaac, Mixdown.DolbyProLogicII);
     this.AudioEncoders = EnumHelper<AudioEncoder>.GetEnumList();
     this.AudioMixdowns = EnumHelper<Mixdown>.GetEnumList();
     this.SourceTracks = new List<Audio>();
 }
开发者ID:seven1240,项目名称:HandBrake,代码行数:18,代码来源:AudioViewModel.cs


示例12: PrePostActionService

        /// <summary>
        /// Initializes a new instance of the <see cref="PrePostActionService"/> class.
        /// </summary>
        /// <param name="queueProcessor">
        /// The queue processor.
        /// </param>
        /// <param name="userSettingService">
        /// The user Setting Service.
        /// </param>
        public PrePostActionService(IQueueProcessor queueProcessor, IUserSettingService userSettingService)
        {
            this.queueProcessor = queueProcessor;
            this.userSettingService = userSettingService;

            this.queueProcessor.QueueCompleted += QueueProcessorQueueCompleted;
            this.queueProcessor.EncodeService.EncodeCompleted += EncodeService_EncodeCompleted;
            this.queueProcessor.EncodeService.EncodeStarted += EncodeService_EncodeStarted;
        }
开发者ID:JuannyWang,项目名称:HandBrake-QuickSync-Mac,代码行数:18,代码来源:PrePostActionService.cs


示例13: EncodeBase

        /// <summary>
        /// Initializes a new instance of the <see cref="EncodeBase"/> class.
        /// </summary>
        /// <param name="userSettingService">
        /// The user Setting Service.
        /// </param>
        public EncodeBase(IUserSettingService userSettingService)
        {
            this.userSettingService = userSettingService;
            this.logBuffer = new StringBuilder();
            header =
                GeneralUtilities.CreateCliLogHeader();

            this.LogIndex = 0;
        }
开发者ID:RichardMarks,项目名称:HandBrakeMirror,代码行数:15,代码来源:EncodeBase.cs


示例14: EncodeBase

 /// <summary>
 /// Initializes a new instance of the <see cref="EncodeBase"/> class.
 /// </summary>
 /// <param name="userSettingService">
 /// The user Setting Service.
 /// </param>
 public EncodeBase(IUserSettingService userSettingService)
 {
     this.userSettingService = userSettingService;
     this.logBuffer = new StringBuilder();
     header =
         GeneralUtilities.CreateCliLogHeader(
             userSettingService.GetUserSetting<string>(ASUserSettingConstants.HandBrakeVersion),
             userSettingService.GetUserSetting<int>(ASUserSettingConstants.HandBrakeBuild));
 }
开发者ID:evolver56k,项目名称:HandBrake,代码行数:15,代码来源:EncodeBase.cs


示例15: VideoViewModel

 /// <summary>
 /// Initializes a new instance of the <see cref="VideoViewModel"/> class.
 /// </summary>
 /// <param name="windowManager">
 /// The window manager.
 /// </param>
 /// <param name="userSettingService">
 /// The user Setting Service.
 /// </param>
 public VideoViewModel(IWindowManager windowManager, IUserSettingService userSettingService)
 {
     this.Task = new EncodeTask { VideoEncoder = VideoEncoder.X264 };
     this.userSettingService = userSettingService;
     this.QualityMin = 0;
     this.QualityMax = 51;
     this.IsConstantQuantity = true;
     this.VideoEncoders = EnumHelper<VideoEncoder>.GetEnumList();
 }
开发者ID:Eddy805,项目名称:HandBrake,代码行数:18,代码来源:VideoViewModel.cs


示例16: SubtitlesViewModel

        /// <summary>
        /// Initializes a new instance of the <see cref="HandBrakeWPF.ViewModels.SubtitlesViewModel"/> class.
        /// </summary>
        /// <param name="windowManager">
        /// The window manager.
        /// </param>
        /// <param name="userSettingService">
        /// The user Setting Service.
        /// </param>
        public SubtitlesViewModel(IWindowManager windowManager, IUserSettingService userSettingService)
        {
            this.Task = new EncodeTask();

            this.Langauges = LanguageUtilities.MapLanguages().Keys;
            this.CharacterCodes = CharCodesUtilities.GetCharacterCodes();

            this.ForeignAudioSearchTrack = new Subtitle { SubtitleType = SubtitleType.ForeignAudioSearch, Language = "Foreign Audio Search (Bitmap)" };
            this.SourceTracks = new List<Subtitle> { this.ForeignAudioSearchTrack };
        }
开发者ID:kallisti5,项目名称:HaikuBrake,代码行数:19,代码来源:SubtitlesViewModel.cs


示例17: AdvancedViewModel

        /// <summary>
        /// Initializes a new instance of the <see cref="AdvancedViewModel"/> class.
        /// </summary>
        /// <param name="windowManager">
        /// The window manager.
        /// </param>
        /// <param name="userSettingService">
        /// The user Setting Service.
        /// </param>
        public AdvancedViewModel(IWindowManager windowManager, IUserSettingService userSettingService)
        {
            X264Presets = EnumHelper<x264Preset>.GetEnumList();
            X264Profiles = EnumHelper<x264Profile>.GetEnumList();
            X264Tunes = EnumHelper<x264Tune>.GetEnumList();

            this.x264Preset = x264Preset.None;
            this.x264Profile = x264Profile.None;
            this.x264Tune = x264Tune.None;
        }
开发者ID:Eddy805,项目名称:HandBrake,代码行数:19,代码来源:AdvancedViewModel.cs


示例18: AudioDefaultsViewModel

        /// <summary>
        /// Initializes a new instance of the <see cref="AudioDefaultsViewModel"/> class. 
        /// </summary>
        /// <param name="windowManager">
        /// The window manager.
        /// </param>
        /// <param name="userSettingService">
        /// The user Setting Service.
        /// </param>
        public AudioDefaultsViewModel(IWindowManager windowManager, IUserSettingService userSettingService)
        {
            this.AudioEncoders = EnumHelper<AudioEncoder>.GetEnumList();

            this.AudioBehaviours = new AudioBehaviours();
            this.SelectedAvailableToMove = new BindingList<string>();
            this.SelectedLangaugesToMove = new BindingList<string>();
            this.AvailableLanguages = new BindingList<string>();
            this.SetupLanguages(null);
        }
开发者ID:beppec56,项目名称:HandBrake-git_svn-mirror,代码行数:19,代码来源:AudioDefaultsViewModel.cs


示例19: PresetService

        /// <summary>
        /// Initializes a new instance of the <see cref="PresetService"/> class.
        /// </summary>
        /// <param name="userSettingService">
        /// The user Setting Service.
        /// </param>
        public PresetService(IUserSettingService userSettingService)
        {
            this.userSettingService = userSettingService;

            // If the preset file doesn't exist. Create it.
            if (!File.Exists(this.builtInPresetFile))
            {
                this.UpdateBuiltInPresets();
            }

            this.LoadPresets();
        }
开发者ID:kallisti5,项目名称:HaikuBrake,代码行数:18,代码来源:PresetService.cs


示例20: QueueViewModel

        /// <summary>
        /// Initializes a new instance of the <see cref="QueueViewModel"/> class.
        /// </summary>
        /// <param name="userSettingService">
        /// The user Setting Service.
        /// </param>
        /// <param name="queueProcessor">
        /// The Queue Processor Service 
        /// </param>
        /// <param name="errorService">
        /// The Error Service 
        /// </param>
        public QueueViewModel(IUserSettingService userSettingService, IQueueProcessor queueProcessor, IErrorService errorService)
        {
            this.userSettingService = userSettingService;
            this.queueProcessor = queueProcessor;
            this.errorService = errorService;
            this.Title = Resources.QueueViewModel_Queue;
            this.JobsPending = Resources.QueueViewModel_NoEncodesPending;
            this.JobStatus = Resources.QueueViewModel_NoJobsPending;
            this.SelectedItems = new BindingList<QueueTask>();
            this.DisplayName = "Queue";

            this.WhenDoneAction = this.userSettingService.GetUserSetting<string>(UserSettingConstants.WhenCompleteAction);
        }
开发者ID:galad87,项目名称:HandBrake-VideoToolbox,代码行数:25,代码来源:QueueViewModel.cs



注:本文中的IUserSettingService类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IUsersRepository类代码示例发布时间:2022-05-24
下一篇:
C# IUserSession类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap