Exemple #1
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);
            ContentManager.Instance.ApplySetting();
            AyGlobalConfig.AYUI_ConfigFileNamePath = AyGlobalConfig.ReturnCurrentFolderCombinePath2("Content/application.xml");

            _theme             = new ElementBlueThemeResourceDictionary();
            _theme.AccentBrush = SolidColorBrushConverter.From16JinZhi("#D80A0A");
            _theme.AddTheme(this);
            //下次切换,应该从merge移除,重新add
        }
    public void Init()
    {
        var _d = AyGlobalConfig.ReturnCurrentFolderCombinePath2("Content/section.designer.windsor.config");

        if (System.IO.File.Exists(_d))
        {
            DesignerService = new Castle.Windsor.WindsorContainer(_d);
        }
        var _dev = AyGlobalConfig.ReturnCurrentFolderCombinePath2("Content/section.windsor.config");

        if (System.IO.File.Exists(_dev))
        {
            DeveloperService = new Castle.Windsor.WindsorContainer(_dev);
        }
    }