本文整理汇总了C#中IUserSettingService类的典型用法代码示例。如果您正苦于以下问题:C# IUserSettingService类的具体用法?C# IUserSettingService怎么用?C# IUserSettingService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IUserSettingService类属于命名空间,在下文中一共展示了IUserSettingService类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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;
}
示例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;
}
示例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>();
}
示例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);
}
示例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";
}
示例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>();
}
示例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;
}
示例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;
}
示例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));
}
示例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();
}