Exemplo n.º 1
0
        override public void Berecne()
        {
            base.Berecne();

            if (null == base.Ergeebnis)
            {
                return;
            }

            LeftPaneAst =
                Optimat.EveOnline.AuswertGbs.Extension.FirstMatchingNodeFromSubtreeBreadthFirst(
                    AstMainContainerMain, (kandidaat) =>
                    kandidaat.PyObjTypNameIsContainer() &&
                    string.Equals("leftPane", kandidaat.Name, StringComparison.InvariantCultureIgnoreCase),
                    2, 1);

            RightPaneAst =
                Optimat.EveOnline.AuswertGbs.Extension.FirstMatchingNodeFromSubtreeBreadthFirst(
                    AstMainContainerMain, (kandidaat) =>
                    kandidaat.PyObjTypNameIsContainer() &&
                    string.Equals("rightPane", kandidaat.Name, StringComparison.InvariantCultureIgnoreCase),
                    2, 1);

            AstRightPaneTop =
                Optimat.EveOnline.AuswertGbs.Extension.FirstMatchingNodeFromSubtreeBreadthFirst(
                    RightPaneAst, (kandidaat) =>
                    string.Equals("rightPaneTop", kandidaat.Name, StringComparison.InvariantCultureIgnoreCase),
                    3, 1);

            RightPaneBottomAst =
                Optimat.EveOnline.AuswertGbs.Extension.FirstMatchingNodeFromSubtreeBreadthFirst(
                    AstMainContainerMain, (kandidaat) =>
                    kandidaat.PyObjTypNameIsContainer() &&
                    string.Equals("rightPaneBottom", kandidaat.Name, StringComparison.InvariantCultureIgnoreCase),
                    2, 1);

            ErgeebnisWindowAgentDialogue = new WindowAgentDialogue(
                new WindowAgent(base.Ergeebnis))
            {
                LeftPane  = PaneAuswert(LeftPaneAst),
                RightPane = PaneAuswert(RightPaneAst),
            };
        }
        public SictGbsWindowZuusctand ZuAgentEntryWindowAgentDialogue(
            VonSensor.LobbyAgentEntry AgentEntry)
        {
            if (null == AgentEntry)
            {
                return(null);
            }

            var MengeWindowAgentDialogue = this.MengeWindowAgentDialogue;

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

            foreach (var WindowAgentDialogue in MengeWindowAgentDialogue)
            {
                if (null == WindowAgentDialogue)
                {
                    continue;
                }

                var ScnapscusWindowAgentDialogue = WindowAgentDialogue.AingangScnapscusTailObjektIdentLezteBerecne()     as      VonSensor.WindowAgentDialogue;

                if (null == ScnapscusWindowAgentDialogue)
                {
                    continue;
                }

                if (!string.Equals(ScnapscusWindowAgentDialogue.AgentName, AgentEntry.AgentName))
                {
                    continue;
                }

                return(WindowAgentDialogue);
            }

            return(null);
        }