Exemple #1
0
        public override bool Connect(IGeneratorDomain domain, IReadOnlyCollection <IGeneratorComponent> components)
        {
            bool IsConnected = base.Connect(domain, components);

            if (Component == null)
            {
                IsConnected = true;
                Component   = GeneratorComponent.GeneratorComponentMap[BaseControl.Component];
            }

            return(IsConnected);
        }
Exemple #2
0
        public IGeneratorPageNavigation CreateCopyForPage(IGeneratorPage currentPage, IGeneratorComponent source)
        {
            GeneratorPageNavigation Result = new GeneratorPageNavigation();

            Result.BeforeObject      = BeforeObject;
            Result.BeforeObjectEvent = BeforeObjectEvent;

            if (GoToPage == GeneratorPage.CurrentPage)
            {
                Result.GoToPage = currentPage;
            }
            else if (GoToPage != null)
            {
                Result.GoToPage           = GoToPage;
                Result.IsExternal         = IsExternal;
                Result.GoToObject         = null;
                Result.GoToObjectProperty = null;
            }
            else
            {
                Result.GoToPage           = null;
                Result.IsExternal         = true;
                Result.GoToObject         = GoToObject;
                Result.GoToObjectProperty = GoToObjectProperty;
            }

            Result.AfterObject      = AfterObject;
            Result.AfterObjectEvent = AfterObjectEvent;
            Result.Source           = source;

            return(Result);
        }