/// <summary> /// Class Fotootof Application Constructor. /// </summary> public App() { // Must be placed at the top start of the application. InitializeLog4Net(); // Reset application // delete user my documents application folder. App_Reset(); // Starting the application // The application loads options & parameters from files. // Create default files if not exists ApplicationBase.Start(); // Initialize language. // Must be placed in the top start of the application. Trace.TraceInformation(Local.Properties.Logs.IntializingApplicationLanguage); CultureInfo ci = new CultureInfo(ApplicationBase.Language); Thread.CurrentThread.CurrentCulture = ci; Thread.CurrentThread.CurrentUICulture = ci; Trace.WriteLine("-------------------------------------------------------------------------------------------------------"); /*ResourceDictionary rd = new ResourceDictionary * { * Source = new Uri("Fotootof.Template;component/Theme/Dark.xaml", UriKind.Relative) * }; * Current.Resources.MergedDictionaries.Add(rd);*/ }
/// <summary> /// Class XtrmAddons.Fotootof Application Constructor. /// </summary> public App() { // Must be placed at the top start of the application. InitializeLog4Net(); // Reset application // delete user my documents application folder. App_Reset(); // Starting the application // The application loads options & parameters from files. // Create default files if not exists ApplicationBase.SerializerType = ApplicationSerializer.Xml; ApplicationBase.Start(); // Initialize language. // Must be placed in the top start of the application. CultureInfo ci = new CultureInfo(ApplicationBase.Language); Thread.CurrentThread.CurrentCulture = ci; Thread.CurrentThread.CurrentUICulture = ci; }