コード例 #1
0
ファイル: ScreenFactory.cs プロジェクト: Fedorm/core-master
        private void ApplyStyles(String screenName, IStyledObject scr, StyleSheet styleSheet)
        {
            String cssFile = null;

            if (scr is ICustomStyleSheet)
            {
                if (!String.IsNullOrEmpty(((ICustomStyleSheet)scr).StyleSheet))
                {
                    cssFile = ((ICustomStyleSheet)scr).StyleSheet;
                }
            }

            InitStyles(ref styleSheet, screenName, cssFile);

            styleSheet.Assign(scr);

            scr.Apply(styleSheet, new Bound(), new Bound());
        }