コード例 #1
0
        /// <summary>
        /// Initialise the GuiService with a specific Toolkit
        /// </summary>
        /// <param name="guiToolkit">The toolkit to use</param>
        /// <remarks>This allows programs to use only one Toolkit, or provide a custom GUI (like an in-game interface)</remarks>
        public static void Init(GuiToolkit guiToolkit)
        {
            Log.Info("Using Toolkit {0} from {1}", guiToolkit.Name, guiToolkit.GetType().Assembly.FullName);

            _DefaultCulture = CultureInfo.CurrentCulture;
            _Culture        = _DefaultCulture;

            _Toolkit = guiToolkit;

            _Toolkit.Init();
        }