Example #1
0
        void accordionControl_SelectedElementChanged(object sender, SelectedElementChangedEventArgs e)
        {
            if (e.Element == null)
            {
                return;
            }

            if (e.Element.Text == "Prefetch")
            {
                timelineControl = PrefetchTimeline;

                splashScreenManager1.ShowWaitForm();
                timelineControl.Analyize("Prefetch");
                if (splashScreenManager1.IsSplashFormVisible)
                {
                    splashScreenManager1.CloseWaitForm();
                }
            }
            else if (e.Element.Text == "Jumplists")
            {
                timelineControl = JumplistsTimeline;
                splashScreenManager1.ShowWaitForm();

                timelineControl.Analyize("Jumplist");

                if (splashScreenManager1.IsSplashFormVisible)
                {
                    splashScreenManager1.CloseWaitForm();
                }
                //timelineControl.Set("j");
            }
            else if (e.Element.Text == "Lnk")
            {
                timelineControl = LnkTimeline;
                splashScreenManager1.ShowWaitForm();
                timelineControl.Analyize("Lnk");
                if (splashScreenManager1.IsSplashFormVisible)
                {
                    splashScreenManager1.CloseWaitForm();
                }
            }

            else if (e.Element.Text == "Shellbags")
            {
                timelineControl = ShellbagsTimeline;
                splashScreenManager1.ShowWaitForm();
                timelineControl.Analyize("Shellbags");
                if (splashScreenManager1.IsSplashFormVisible)
                {
                    splashScreenManager1.CloseWaitForm();
                }
            }
            else if (e.Element.Text == "Google Chrome")
            {
                timelineControl = ChromeTimeline;
                splashScreenManager1.ShowWaitForm();
                timelineControl.Analyize("Google Chrome");
                if (splashScreenManager1.IsSplashFormVisible)
                {
                    splashScreenManager1.CloseWaitForm();
                }
            }
            else if (e.Element.Text == "Firefox")
            {
                timelineControl = FirefoxTimeline;
                splashScreenManager1.ShowWaitForm();
                timelineControl.Analyize("Firefox");
                if (splashScreenManager1.IsSplashFormVisible)
                {
                    splashScreenManager1.CloseWaitForm();
                }
            }

            //XtraUserControl userControl = e.Element.Text == "Employees" ? employeesUserControl : customersUserControl;
            tabbedView.AddDocument(timelineControl);
            tabbedView.ActivateDocument(timelineControl);
        }