Example #1
0
            public virtual IStartPageControl GetInstance([NotNull] StartPageViewer startPage)
            {
                Assert.ArgumentNotNull(startPage, nameof(startPage));

                var result = Activator.CreateInstance(Type, startPage) as IStartPageControl;

                return(result);
            }
Example #2
0
        protected StartPageTabBase([NotNull] StartPageViewer startPage, [NotNull] string parentName)
        {
            Debug.ArgumentNotNull(startPage, nameof(startPage));
            Debug.ArgumentNotNull(parentName, nameof(parentName));

            StartPage  = startPage;
            ParentName = parentName;
        }
        public StartPageList([NotNull] StartPageViewer startPage)
        {
            StartPage = startPage;
            Assert.ArgumentNotNull(startPage, nameof(startPage));

            InitializeComponent();

            Loaded += ControlLoaded;
        }
Example #4
0
            public override IStartPageControl GetInstance(StartPageViewer startPage)
            {
                Assert.ArgumentNotNull(startPage, nameof(startPage));

                return(new ExternalStartPageList(startPage, ParentName)
                {
                    Text = Text ?? string.Empty
                });
            }
Example #5
0
        protected StartPageGroupBase([NotNull] StartPageViewer startPage, [NotNull] string parentName)
        {
            Debug.ArgumentNotNull(startPage, nameof(startPage));
            Debug.ArgumentNotNull(parentName, nameof(parentName));

            StartPage  = startPage;
            ParentName = parentName;

            Text        = string.Empty;
            Description = string.Empty;
        }
Example #6
0
        protected override void Initialize()
        {
            base.Initialize();

            StartPageViewer = new StartPageViewer
            {
                Pane = this
            };

            Content = StartPageViewer;
            StartPageViewer.GotFocus += delegate { SitecorePackage.Instance.GotFocus(this); };
        }
        public StartPageTabControl([NotNull] StartPageViewer startPage)
        {
            Assert.ArgumentNotNull(startPage, nameof(startPage));

            InitializeComponent();

            StartPage  = startPage;
            ParentName = string.Empty;

            TabStyle = TabStyle.Tab;

            Loaded += ControlLoaded;
        }
Example #8
0
        public StartPageGroup([NotNull] StartPageViewer startPage, [NotNull] string parentName, [NotNull] string title, [NotNull] string description)
        {
            Assert.ArgumentNotNull(startPage, nameof(startPage));
            Assert.ArgumentNotNull(parentName, nameof(parentName));
            Assert.ArgumentNotNull(title, nameof(title));
            Assert.ArgumentNotNull(description, nameof(description));

            InitializeComponent();

            StartPage = startPage;
            ParentName = parentName;
            Title = title;
            Description = description;

            RenderGroup();
        }
        public StartPageContext([NotNull] StartPageViewer startPageViewer)
        {
            Assert.ArgumentNotNull(startPageViewer, nameof(startPageViewer));

            StartPageViewer = startPageViewer;
        }