public MainWindow() { InitializeComponent(); var resources = new KProcess.Ksmed.Business.Impl.AppResourceService().GetResources(CultureInfo.CurrentUICulture.Name); LocalizationManager.ResourceProvider = new DatabaseResourceProvider("Main", resources); IoC.RegisterInstance <IServiceBus>(new KProcess.Presentation.Windows.ServiceBus()); IoC.Resolve <IServiceBus>().Register <IDecoderInfoService>(this); IoC.Resolve <IServiceBus>().Get <KProcess.Presentation.Windows.Controls.IDecoderInfoService>().InitializeFiltersConfiguration(); this.Videos.Text = System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonVideos), "Sample Videos"); }
/// <summary> /// Initialise la localisation. /// </summary> static partial void InitLocalizationImpl() { var resources = new KProcess.Ksmed.Business.Impl.AppResourceService().GetResources("fr-FR"); LocalizationManager.ResourceProvider = new DatabaseResourceProvider("Main", resources); }