Esempio n. 1
0
        static public UINodeInfoInTree SictAuswert(
            this GbsAstInfo gbsBaum)
        {
            if (null == gbsBaum)
            {
                return(null);
            }

            var GbsBaumScpez =
                SictRefNezKopii.ObjektKopiiErsctele(
                    gbsBaum,
                    null,
                    new Bib3.RefBaumKopii.Param(null, KonvertGbsAstInfoRictliinieMitScatescpaicer),
                    null,
                    null)
                as UINodeInfoInTree;

            if (null == GbsBaumScpez)
            {
                return(null);
            }

            int InBaumAstIndexZääler = 0;

            GbsBaumScpez.AbgelaiteteAigescafteBerecne(ref InBaumAstIndexZääler);

            return(GbsBaumScpez);
        }
Esempio n. 2
0
        static public bool PyObjTypNameMatchesRegex(
            this GbsAstInfo node,
            Regex regex)
        {
            var PyObjTypName = node?.PyObjTypName;

            if (null == PyObjTypName)
            {
                return(false);
            }

            return(regex?.Match(PyObjTypName)?.Success ?? false);
        }
Esempio n. 3
0
        static public SictGbsAstInfoSictAuswert Konvert(
            this    GbsAstInfo GbsAst)
        {
            if (null == GbsAst)
            {
                return(null);
            }

            SictRefBaumKopiiProfile Profile = null;

            return
                (SictRefBaumKopii.ObjektKopiiErscteleUndErsazType <GbsAstInfo, SictGbsAstInfoSictAuswert>(
                     GbsAst, ref Profile) as SictGbsAstInfoSictAuswert);
        }
Esempio n. 4
0
 static public bool PyObjTypNameIsSprite(
     this GbsAstInfo uiNode) =>
 uiNode.PyObjTypNameMatchesRegex(PyTypeNameSpriteRegex);
Esempio n. 5
0
 static public bool PyObjTypNameIsButton(
     this GbsAstInfo uiNode) =>
 PyObjTypNameMatchesRegex(uiNode, RegexGbsAstPyObjTypNameButton);
Esempio n. 6
0
 static public bool PyObjTypNameIsContainer(
     this GbsAstInfo uiNode) =>
 PyObjTypNameMatchesRegex(uiNode, RegexGbsAstPyObjTypNameContainer);
Esempio n. 7
0
 static public bool PyObjTypNameMatchesRegexPatternIgnoreCase(
     this GbsAstInfo uiNode,
     string regexPattern,
     RegexOptions regexOptions = RegexOptions.None) =>
 uiNode.PyObjTypNameMatchesRegexPattern(regexPattern, RegexOptions.IgnoreCase | regexOptions);
Esempio n. 8
0
 static public bool PyObjTypNameMatchesRegexPattern(
     this GbsAstInfo uiNode,
     string regexPattern,
     RegexOptions regexOptions = RegexOptions.None) =>
 uiNode.PyObjTypNameMatchesRegex(regexPattern.AlsRegex(regexOptions));