Esempio n. 1
0
        private bool CheckCSSIsolation()
        {
            bool          result       = true;
            CSS_Options   cssOptions   = (CSS_Options)CSSOptions.SelectedValue;
            Asset_Options assetOptions = (Asset_Options)AssetOptions.SelectedValue;

            if ((DataInfo.IsWebAssemblyType(CurrentProjectType) == true) &&
                (Options.IsCSSWebassemblyAllowed(cssOptions, assetOptions) == false))
            {
                if (MessageBox.Show("Do wish continue? CSSIsolation not supported", MsgTitle, MessageBoxButton.YesNo) != MessageBoxResult.Yes)
                {
                    result = false;
                }
            }
            return(result);
        }
Esempio n. 2
0
        public static bool IsCSSWebassemblyAllowed(CSS_Options cssOption,
                                                   Asset_Options assetOption)
        {
            bool result;

            if (cssOption == CSS_Options.None)
            {
                result = true;
            }
            else if ((assetOption == Asset_Options.SharedPages) &&
                     (Options.IsCSSBootstrap(cssOption) == false))
            {
                result = true;
            }
            else
            {
                result = false;
            }

            return(result);
        }