예제 #1
0
        void accordionControl_SelectedElementChanged(object sender, SelectedElementChangedEventArgs e)
        {
            if (e.Element == null)
            {
                return;
            }
            XtraUserControl userControl = new XtraUserControl();

            switch (e.Element.Text)
            {
            case "FrequencySpectrum":
                userControl = FrequencySpectrumUserControl;
                break;

            case "IQWaveform":
                userControl = IQWaveformUserControl;
                break;

            case "WaterfallPlot":
                userControl = WaterfallPlotUserControl;
                break;

            default:
                break;
            }
            tabbedView.AddDocument(userControl);
            tabbedView.ActivateDocument(userControl);
        }
예제 #2
0
        void accordionControl_SelectedElementChanged(object sender, SelectedElementChangedEventArgs e)
        {
            if (e.Element == null)
            {
                return;
            }
            //XtraUserControl userControl = e.Element.Text == "Employees" ? employeesUserControl : customersUserControl;
            XtraUserControl userControl = new XtraUserControl();

            if (e.Element.Text == "Employees")
            {
                userControl = employeesUserControl;
            }
            else if (e.Element.Text == "Customers")
            {
                userControl = customersUserControl;
            }
            else
            {
                userControl = XXXUserControl;
            }


            tabbedView.AddDocument(userControl);
            tabbedView.ActivateDocument(userControl);
        }
예제 #3
0
        void accordionControl_SelectedElementChanged(object sender, SelectedElementChangedEventArgs e)
        {
            if (e.Element == null)
            {
                return;
            }
            XtraUserControl userControl = null;

            switch (e.Element.Text)
            {
            case AppSettings.PRODUCTION_PLAN:
                userControl = productionPlanUserControl.IsDisposed ? CreateUserControl(e.Element.Text) : productionPlanUserControl;
                break;

            case AppSettings.LABEL_PRODUCTION_INFO:
                userControl = labelProductionInfoUserControl.IsDisposed ? CreateUserControl(e.Element.Text) : labelProductionInfoUserControl;
                break;

            case AppSettings.HISTORICAL_PRODUCTION:
                userControl = historicalProductionUserControl.IsDisposed ? CreateUserControl(e.Element.Text) : historicalProductionUserControl;
                break;

            case AppSettings.USER_INFO:
                userControl = userInfoUserControl.IsDisposed ? CreateUserControl(e.Element.Text) : userInfoUserControl;
                break;

            case AppSettings.STATION_INFO:
                userControl = stationInfoUserControl.IsDisposed ? CreateUserControl(e.Element.Text) : stationInfoUserControl;
                break;
            }

            tabbedView.AddDocument(userControl);
            tabbedView.ActivateDocument(userControl);
        }
        void accordionControl_SelectedElementChanged(object sender, SelectedElementChangedEventArgs e)
        {
            if (e.Element == null)
            {
                return;
            }
            XtraUserControl userControl;

            switch (e.Element.Text)
            {
            default:
            case "Employees":
                userControl = employeesUserControl;
                break;

            case "Customers":
                userControl = customersUserControl;
                break;

            case "TMDI_BOC_UIReady_XUC":
                userControl = tmdiBocUiReadyXuc;
                break;
            }
            tabbedView.AddDocument(userControl);
            tabbedView.ActivateDocument(userControl);
        }
예제 #5
0
 private void accordionControl_SelectedElementChanged(object sender, SelectedElementChangedEventArgs e)
 {
     //if (e.Element == null)
     //    return;
     //var userControl = controls[e.Element.Text];
     //tabbedView.AddDocument(userControl);
     //tabbedView.ActivateDocument(userControl);
 }
예제 #6
0
        void accordionControl_SelectedElementChanged(object sender, SelectedElementChangedEventArgs e)
        {
            if (e.Element == null)
            {
                return;
            }
            XtraUserControl userControl = e.Element.Text == "Employees" ? employeesUserControl : customersUserControl;

            tabbedView.AddDocument(userControl);
            tabbedView.ActivateDocument(userControl);
        }
예제 #7
0
파일: MainForm.cs 프로젝트: yanzj/SqlFormat
        void accordionControl_SelectedElementChanged(object sender, SelectedElementChangedEventArgs e)
        {
            if (e.Element == null)
            {
                return;
            }
            XtraUserControl userControl = e.Element.Text == "SQL格式调整" ? formatUserControl : parseLogUserControl;

            tabbedView.AddDocument(userControl);
            tabbedView.ActivateDocument(userControl);
        }
예제 #8
0
        void accordionControl_SelectedElementChanged(object sender, SelectedElementChangedEventArgs e)
        {
            if (e.Element == null)
            {
                return;
            }
            string       controlName = (string)e.Element.Tag;
            BaseDocument document    = tabbedView.Documents.FindFirst(d => d.ControlName == controlName);

            if (document == null)
            {
                document = tabbedView.AddDocument(e.Element.Text, controlName);
            }
            tabbedView.Controller.Activate(document);
        }
예제 #9
0
 private void accDataSource_SelectedElementChanged(object sender, SelectedElementChangedEventArgs e)
 {
     if (this.accDataSource.SelectedElement != null)
     {
         this.btnOK.Enabled = true;
         ConnectInfo info = this.accDataSource.SelectedElement.Tag as ConnectInfo;
         this.connectionInfo           = info.Clone();
         this.txtConnectionString.Text = "";
         this.pg.SelectedObject        = this.connectionInfo;
     }
     else
     {
         this.btnOK.Enabled = false;
     }
 }
예제 #10
0
        void accordionControl_SelectedElementChanged(object sender, SelectedElementChangedEventArgs e)
        {
            if (e.Element == null)
            {
                return;
            }
            XtraUserControl userControl = gameUserControl;

            tabbedView.AddDocument(userControl);
            tabbedView.ActivateDocument(userControl);

            foreach (XtraUserControl script in scripts)
            {
                XtraUserControl UserControl = script;
                tabbedView.AddDocument(UserControl);
                tabbedView.ActivateDocument(UserControl);
            }
        }
        private void accordionControl_SelectedElementChanged(object sender, SelectedElementChangedEventArgs e)
        {
            if (e.Element == null)
            {
                return;
            }
            //XtraUserControl userControl = e.Element.Text == "Employees" ? employeesUserControl : customersUserControl;
            //tabbedView.AddDocument(userControl);
            //tabbedView.ActivateDocument(userControl);
            XtraUserControl uc;;

            if (e.Element == this.dataStoresAccordionControlElement)
            {
                uc = this.dataStoresUserControl;
                //this.dataStoresUserControl.Focus();
            }
            else if (e.Element == this.configPathsAccordionControlElement)
            {
                uc = this.configPathsUserControl;
            }
            else if (e.Element == this.employeesAccordionControlElement)
            {
                uc = this.employeesUserControl;
            }
            else if (e.Element == this.customersAccordionControlElement)
            {
                uc = this.customersUserControl;
            }
            else
            {
                return;
            }
            this.tabbedView.AddDocument(uc);
            this.tabbedView.ActivateDocument(uc);
            RibbonControl mergedRibbon = this.ribbonControl.MergedRibbon;

            if (mergedRibbon == null)
            {
                return;
            }
            this.ribbonControl.SelectedPage = mergedRibbon.Pages["Home"];
        }
예제 #12
0
 /// <summary>
 /// 点击左侧树节点
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void accordionControl_SelectedElementChanged(object sender, SelectedElementChangedEventArgs e)
 {
     if (e.Element == null)
     {
         return;
     }
     //防止重复实例化页面对象
     if (tabbedView.Documents.Exists(x => x.Control.Name == e.Element.Name))
     {
         //tabbedView.ActivateDocument(e.Element.AccordionControl);
         return;
     }
     else
     {
         if (FromsObject.formsDic.ContainsKey(e.Element.Name))
         {
             XtraUserControl userControl = (XtraUserControl)CreateFormInstance.CreateObject(e.Element.Name);
             userControl.Text = e.Element.Text;
             tabbedView.AddDocument(userControl);
             tabbedView.ActivateDocument(userControl);
         }
     }
 }
예제 #13
0
        void accordionControl_SelectedElementChanged(object sender, SelectedElementChangedEventArgs e)
        {
            if (e.Element == null)
            {
                return;
            }
            switch (e.Element.Tag.ToString().ToString())
            {
            case "Company":
                OpenForm(new ucCompany(), "Company");
                break;

            case "Branches":
                OpenForm(new ucBranches(), "Branches");
                break;

            case "WareHouses":
                OpenForm(new ucWareHouses(), "WareHouses");
                break;

            case "Operators":
                OpenForm(new ucOperators(), "Operators");
                break;

            case "VendorGroups":
                OpenForm(new ucVendorGroups(), "VendorGroups");
                break;

            case "Vendors":
                OpenForm(new ucVendors(), "Vendors");
                break;

            case "CustomerGroups":
                OpenForm(new ucCustomerGroups(), "CustomerGroups");
                break;

            case "Customers":
                OpenForm(new ucCustomers(), "Customers");
                break;

            case "ItemGroup":
                OpenForm(new ucItemGroups(), "ItemGroup");
                break;

            case "ItemType":
                OpenForm(new ucItemTypes(), "ItemType");
                break;

            case "ItemCategory":
                OpenForm(new ucItemCategories(), "ItemCategory");
                break;

            case "ItemSizes":
                OpenForm(new ucItemSizes(), "ItemSizes");
                break;

            case "ItemColors":
                OpenForm(new ucItemColors(), "ItemColors");
                break;

            case "ItemDefinition":
                OpenForm(new ucItemDefinition(), "ItemDefinition");
                break;

            default:
                break;
            }
        }
예제 #14
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);
        }
예제 #15
0
 // выбор типа объекта
 public void Accord_SelectedElementChanged(object sender, SelectedElementChangedEventArgs e)
 {
     SelectedObjectType = e.Element.Name;
     Designer_Objects();
 }