Ejemplo n.º 1
0
        void RecreateUserControls(DocumentEventArgs e)
        {
            splashScreenManager1.ShowWaitForm();

            if (e.Document.Caption == "Prefetch")
            {
                PrefetchTimeline = new TimelineControl("Prefetch");
            }
            else if (e.Document.Caption == "Jumplists")
            {
                JumplistsTimeline = new TimelineControl("Jumplists");
            }
            else if (e.Document.Caption == "Lnk")
            {
                LnkTimeline = new TimelineControl("Lnk");
            }
            else if (e.Document.Caption == "Shellbags")
            {
                ShellbagsTimeline = new TimelineControl("Shellbags");
            }
            else if (e.Document.Caption == "Google Chrome")
            {
                ChromeTimeline = new TimelineControl("Google Chrome");
            }
            else if (e.Document.Caption == "Firefox")
            {
                FirefoxTimeline = new TimelineControl("Firefox");
            }

            if (splashScreenManager1.IsSplashFormVisible)
            {
                splashScreenManager1.CloseWaitForm();
            }
        }
Ejemplo n.º 2
0
        public MainForm()
        {
            InitializeComponent();
            //employeesUserControl = CreateUserControl("Prefetch");
            //customersUserControl = CreateUserControl("Jumplists");

            PrefetchTimeline = new TimelineControl("Prefetch");

            JumplistsTimeline = new TimelineControl("Jumplists");

            LnkTimeline = new TimelineControl("Lnk");
            //accordionControl.SelectedElement = employeesAccordionControlElement;
            ShellbagsTimeline = new TimelineControl("Shellbags");

            ChromeTimeline = new TimelineControl("Google Chrome");

            FirefoxTimeline = new TimelineControl("Firefox");
        }
Ejemplo n.º 3
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);
        }