Beispiel #1
0
        GalleryDropDown CreateListBoxGallery()
        {
            GalleryDropDown res = new GalleryDropDown();

            res.Gallery.FixedImageSize   = false;
            res.Gallery.ShowItemText     = true;
            res.Gallery.ColumnCount      = 1;
            res.Gallery.CheckDrawMode    = CheckDrawMode.OnlyImage;
            res.Gallery.ShowGroupCaption = false;
            res.Gallery.AutoSize         = GallerySizeMode.Vertical;
            res.Gallery.SizeMode         = GallerySizeMode.None;
            res.Gallery.ShowScrollBar    = ShowScrollBar.Hide;
            res.Gallery.ItemCheckMode    = ItemCheckMode.SingleRadio;
            res.Gallery.Appearance.ItemCaptionAppearance.Normal.Options.UseTextOptions  = true;
            res.Gallery.Appearance.ItemCaptionAppearance.Normal.TextOptions.HAlignment  = DevExpress.Utils.HorzAlignment.Near;
            res.Gallery.Appearance.ItemCaptionAppearance.Normal.TextOptions.VAlignment  = DevExpress.Utils.VertAlignment.Center;
            res.Gallery.Appearance.ItemCaptionAppearance.Hovered.Options.UseTextOptions = true;
            res.Gallery.Appearance.ItemCaptionAppearance.Hovered.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            res.Gallery.Appearance.ItemCaptionAppearance.Hovered.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
            res.Gallery.Appearance.ItemCaptionAppearance.Pressed.Options.UseTextOptions = true;
            res.Gallery.Appearance.ItemCaptionAppearance.Pressed.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            res.Gallery.Appearance.ItemCaptionAppearance.Pressed.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;

            res.Gallery.ItemImageLocation = DevExpress.Utils.Locations.Left;
            res.Gallery.Appearance.ItemDescriptionAppearance.Normal.TextOptions.HAlignment  = DevExpress.Utils.HorzAlignment.Near;
            res.Gallery.Appearance.ItemDescriptionAppearance.Normal.Options.UseTextOptions  = true;
            res.Gallery.Appearance.ItemDescriptionAppearance.Hovered.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            res.Gallery.Appearance.ItemDescriptionAppearance.Hovered.Options.UseTextOptions = true;
            res.Gallery.Appearance.ItemDescriptionAppearance.Pressed.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            res.Gallery.Appearance.ItemDescriptionAppearance.Pressed.Options.UseTextOptions = true;
            res.Gallery.Groups.Add(new GalleryItemGroup());
            res.Gallery.StretchItems = true;

            return(res);
        }
Beispiel #2
0
        GalleryDropDown CreatePrintersGallery()
        {
            GalleryDropDown res            = CreateListBoxGallery();
            PrinterSettings ps             = new PrinterSettings();
            GalleryItem     defaultPrinter = null;

            try {
                foreach (string str in PrinterSettings.InstalledPrinters)
                {
                    GalleryItem item = new GalleryItem();
                    item.Image = Properties.Resources.PrintDirectLarge;
                    item.ImageOptions.SvgImage = Properties.Resources.Print1;
                    item.Caption = str;
                    res.Gallery.Groups[0].Items.Add(item);
                    ps.PrinterName = str;
                    if (ps.IsDefaultPrinter)
                    {
                        defaultPrinter = item;
                    }
                }
            } catch { }
            res.Gallery.ItemCheckedChanged += new GalleryItemEventHandler(OnPrinterGalleryItemCheckedChanged);
            if (defaultPrinter != null)
            {
                defaultPrinter.Checked = true;
            }
            return(res);
        }
Beispiel #3
0
        GalleryDropDown CreateMarginsGallery()
        {
            GalleryDropDown res    = CreateListBoxGallery();
            GalleryItem     normal = new GalleryItem();

            normal.Image       = Properties.Resources.PageMarginsNormal;
            normal.Caption     = Properties.Resources.MarginsNormal;
            normal.Description = Properties.Resources.MarginsNormalDescription;
            normal.Tag         = new Padding(25, 25, 25, 25);
            GalleryItem narrow = new GalleryItem();

            narrow.Image       = Properties.Resources.PageMarginsNarrow;
            narrow.Caption     = Properties.Resources.MarginsNarrow;
            narrow.Description = Properties.Resources.MarginsNarrowDescription;
            narrow.Tag         = new Padding(12, 12, 12, 12);
            GalleryItem moderate = new GalleryItem();

            moderate.Image       = Properties.Resources.PageMarginsModerate;
            moderate.Caption     = Properties.Resources.MarginsModerate;
            moderate.Description = Properties.Resources.MarginsModerateDescription;
            moderate.Tag         = new Padding(19, 25, 19, 25);
            GalleryItem wide = new GalleryItem();

            wide.Image       = Properties.Resources.PageMarginsWide;
            wide.Caption     = Properties.Resources.MarginsWide;
            wide.Description = Properties.Resources.MarginsWideDescription;
            wide.Tag         = new Padding(50, 25, 50, 25);
            res.Gallery.Groups[0].Items.Add(normal);
            res.Gallery.Groups[0].Items.Add(narrow);
            res.Gallery.Groups[0].Items.Add(moderate);
            res.Gallery.Groups[0].Items.Add(wide);
            res.Gallery.ItemCheckedChanged += new GalleryItemEventHandler(OnMarginsGalleryItemCheckedChanged);
            normal.Checked = true;
            return(res);
        }
        private void SetBarItem(string name, GalleryDropDown galleryDropDown, bool enable)
        {
            BarEditItem barItem = new BarEditItem();

            barItem.Tag        = name;
            barItem.Name       = name;
            barItem.LargeGlyph = GetBitmapByName("add", new Size(16, 16));
            barItem.Glyph      = GetBitmapByName("add", new Size(16, 16));
            barItem.Enabled    = enable;
            barItem.ItemClick += (s, e) =>
            {
                galleryDropDown.HidePopup();
                string key = _entityName + ":AddFilterConditionList";
                var    filterConditionListView = _workItem.Items.Get <FilterConditionList>(key);
                if (filterConditionListView == null)
                {
                    filterConditionListView = _workItem.Items.AddNew <FilterConditionList>(key);
                }
                filterConditionListView.SetGridView(_view, "", "", "");
                filterConditionListView.EntityTypeName = _entityName;
                filterConditionListView.ShowDialog();
                BindFilterFile();
            };
            barItem.Caption = GetLocalizedCaption(name);
            galleryDropDown.ItemLinks.Add(barItem);
        }
        public void InitFilters()
        {
            Ribbon.ShowCustomizationMenu += (s, e) => e.ShowCustomizationMenu = false;
            Ribbon.MouseClick            += (s, e) =>
            {
                if (e.Button == MouseButtons.Right && hasClick)
                {
                    PopupMenu(Ribbon).ShowPopup(new System.Drawing.Point(e.X, e.Y));
                    hasClick = false;
                }
            };
            this.GalleryItemClick += (s, e) =>
            {
                hasClick        = true;
                editGalleryItem = e.Item;
                SetFilter(e.Item);
            };
            this.GalleryItemHover += (s, e) =>
            {
                hasClick = true; editGalleryItem = e.Item;
            };
            this.GalleryItemLeave    += (s, e) => { hasClick = false; editGalleryItem = null; };
            this.Gallery.ColumnCount  = 3;
            this.Gallery.RowCount     = 7;
            this.Gallery.ShowItemText = true;

            //this.Gallery.Appearance.ItemCaptionAppearance.Normal.Font = new System.Drawing.Font("??", 8F);
            this.Gallery.Appearance.ItemCaptionAppearance.Normal.Options.UseFont = true;
            //this.Gallery.Appearance.ItemCaptionAppearance.Hovered.Font = new System.Drawing.Font("??", 8F);
            this.Gallery.Appearance.ItemCaptionAppearance.Hovered.Options.UseFont        = true;
            this.Gallery.Appearance.ItemCaptionAppearance.Hovered.Options.UseTextOptions = true;
            this.Gallery.ItemImageLocation    = DevExpress.Utils.Locations.Left;
            this.Gallery.DistanceBetweenItems = 0;

            GalleryDropDown galleryDropDown = new GalleryDropDown();

            galleryDropDown.Ribbon = Ribbon;
            //galleryDropDown.Gallery.Appearance.ItemCaptionAppearance.Normal.Font = new System.Drawing.Font("??", 8F);
            galleryDropDown.Gallery.Appearance.ItemCaptionAppearance.Normal.Options.UseFont        = true;
            galleryDropDown.Gallery.Appearance.ItemCaptionAppearance.Normal.Options.UseTextOptions = true;
            //galleryDropDown.Gallery.Appearance.ItemCaptionAppearance.Hovered.Font = new System.Drawing.Font("??", 8F);
            galleryDropDown.Gallery.Appearance.ItemCaptionAppearance.Hovered.Options.UseFont        = true;
            galleryDropDown.Gallery.Appearance.ItemCaptionAppearance.Hovered.Options.UseTextOptions = true;
            galleryDropDown.Gallery.ShowGroupCaption  = false;
            galleryDropDown.Gallery.ItemImageLocation = DevExpress.Utils.Locations.Left;
            galleryDropDown.Gallery.ColumnCount       = 2;
            galleryDropDown.Gallery.RowCount          = 7;
            galleryDropDown.Gallery.ShowItemText      = true;
            galleryDropDown.GalleryItemClick         += (s, e) => SetFilter(e.Item);
            SetBarItem("AddFilter", galleryDropDown, true);
            this.GalleryDropDown = galleryDropDown;

            BindFilterFile();
        }
Beispiel #6
0
        private void frmFrame_Load(object sender, EventArgs e)
        {
            ribbonControl.ForceInitialize();
            GalleryDropDown skins = new GalleryDropDown();

            skins.Ribbon = ribbonControl;
            DevExpress.XtraBars.Helpers.SkinHelper.InitSkinGalleryDropDown(skins);
            iPaintStyle.DropDownControl = skins;
            this.xtraTabbedMdiManager.ClosePageButtonShowMode = DevExpress.XtraTab.ClosePageButtonShowMode.InActiveTabPageAndTabControlHeader;
            this.defaultLookAndFeel.LookAndFeel.StyleChanged += new EventHandler(LookAndFeel_StyleChanged);
            GlobalParm.SkinName = this.defaultLookAndFeel.LookAndFeel.SkinName;
        }
Beispiel #7
0
        GalleryDropDown CreatePrintStyleGallery()
        {
            GalleryDropDown res = CreateListBoxGallery();

            res.Gallery.ItemCheckMode = ItemCheckMode.SingleRadio;
            memoStyle          = new GalleryItem();
            memoStyle.Image    = Properties.Resources.MemoStyle;
            memoStyle.Caption  = Properties.Resources.MemoStyleString;
            tableStyle         = new GalleryItem();
            tableStyle.Image   = Properties.Resources.TableStyle;
            tableStyle.Caption = Properties.Resources.TableStyleString;
            res.Gallery.Groups[0].Items.Add(memoStyle);
            res.Gallery.Groups[0].Items.Add(tableStyle);
            res.Gallery.ItemCheckedChanged += new GalleryItemEventHandler(OnPrintStyleGalleryItemCheckedChanged);
            memoStyle.Checked = true;
            return(res);
        }
Beispiel #8
0
        GalleryDropDown CreateOrientationGallery()
        {
            GalleryDropDown res          = CreateListBoxGallery();
            GalleryItem     portraitItem = new GalleryItem();

            portraitItem.Image   = Properties.Resources.PageOrientationPortrait;
            portraitItem.Caption = Properties.Resources.PortraitOrientation;
            GalleryItem landscapeItem = new GalleryItem();

            landscapeItem.Image   = Properties.Resources.PageOrientationLandscape;
            landscapeItem.Caption = Properties.Resources.LandscapeOrientation;
            res.Gallery.Groups[0].Items.Add(portraitItem);
            res.Gallery.Groups[0].Items.Add(landscapeItem);
            res.Gallery.ItemCheckedChanged += new GalleryItemEventHandler(OnOrientationGalleryItemCheckedChanged);
            portraitItem.Checked            = true;
            return(res);
        }
Beispiel #9
0
        GalleryDropDown CreateDuplexGallery()
        {
            GalleryDropDown res      = CreateListBoxGallery();
            GalleryItem     oneSided = new GalleryItem();

            oneSided.Image       = Properties.Resources.MultiplePagesLarge;
            oneSided.Caption     = Properties.Resources.OneSide;
            oneSided.Description = Properties.Resources.OneSideDescription;
            oneSided.Tag         = false;
            GalleryItem twoSided = new GalleryItem();

            twoSided.Image       = Properties.Resources.MultiplePagesLarge;
            twoSided.Caption     = Properties.Resources.TwoSide;
            twoSided.Description = Properties.Resources.TwoSideDescription;
            twoSided.Tag         = false;
            res.Gallery.Groups[0].Items.Add(oneSided);
            res.Gallery.Groups[0].Items.Add(twoSided);
            res.Gallery.ItemCheckedChanged += new GalleryItemEventHandler(OnDuplexGalleryItemCheckedChanged);
            oneSided.Checked = true;
            return(res);
        }
Beispiel #10
0
        GalleryDropDown CreateCollateGallery()
        {
            GalleryDropDown res      = CreateListBoxGallery();
            GalleryItem     collated = new GalleryItem();

            collated.Image       = Properties.Resources.MultiplePagesLarge;
            collated.Caption     = Properties.Resources.Collated;
            collated.Description = Properties.Resources.CollatedDescription;
            collated.Tag         = true;
            GalleryItem uncollated = new GalleryItem();

            uncollated.Image       = Properties.Resources.MultiplePagesLarge;
            uncollated.Caption     = Properties.Resources.Uncollated;
            uncollated.Description = Properties.Resources.UncollatedDescription;
            uncollated.Tag         = false;
            res.Gallery.Groups[0].Items.Add(collated);
            res.Gallery.Groups[0].Items.Add(uncollated);
            res.Gallery.ItemCheckedChanged += new GalleryItemEventHandler(OnCollateGalleryItemCheckedChanged);
            collated.Checked = true;
            return(res);
        }
Beispiel #11
0
        private void SetBarItem(string name, GalleryDropDown galleryDropDown, bool enable)
        {
            BarEditItem barItem = new BarEditItem();

            barItem.Tag        = name;
            barItem.Name       = name;
            barItem.LargeGlyph = GetBitmapByName("add", new Size(16, 16));
            barItem.Glyph      = GetBitmapByName("add", new Size(16, 16));
            barItem.Enabled    = enable;
            barItem.ItemClick += (s, e) =>
            {
                FilterItem item = new FilterItem();
                galleryDropDown.HidePopup();
                if (ShowFilterEditForm(item) == DialogResult.Cancel)
                {
                    return;
                }
                BindFilterFile();
                SetItemChecked(item.FileName);
            };
            barItem.Caption = GetLocalizedCaption(name);
            galleryDropDown.ItemLinks.Add(barItem);
        }
Beispiel #12
0
        GalleryDropDown CreatePageSizeGallery()
        {
            GalleryDropDown res    = CreateListBoxGallery();
            GalleryItem     letter = new GalleryItem();

            letter.Image       = Properties.Resources.PaperKind_Letter;
            letter.Caption     = Properties.Resources.PaperKindLetter;
            letter.Description = Properties.Resources.PaperKindLetterDescription;
            letter.Tag         = PaperKind.Letter;
            GalleryItem tabloid = new GalleryItem();

            tabloid.Image       = Properties.Resources.PaperKind_Tabloid;
            tabloid.Caption     = Properties.Resources.PaperKindTabloid;
            tabloid.Description = Properties.Resources.PaperKindTabloidDescription;
            tabloid.Tag         = PaperKind.Tabloid;
            GalleryItem legal = new GalleryItem();

            legal.Image       = Properties.Resources.PaperKind_Legal;
            legal.Caption     = Properties.Resources.PaperKindLegal;
            legal.Description = Properties.Resources.PaperKindLegalDescription;
            legal.Tag         = PaperKind.Legal;
            GalleryItem executive = new GalleryItem();

            executive.Image       = Properties.Resources.PaperKind_Executive;
            executive.Caption     = Properties.Resources.PaperKindExecutive;
            executive.Description = Properties.Resources.PaperKindExecutiveDescription;
            executive.Tag         = PaperKind.Executive;
            GalleryItem a3 = new GalleryItem();

            a3.Image       = Properties.Resources.PaperKind_A3;
            a3.Caption     = Properties.Resources.PaperKindA3;
            a3.Description = Properties.Resources.PaperKindA3Description;
            a3.Tag         = PaperKind.A3;
            GalleryItem a4 = new GalleryItem();

            a4.Image       = Properties.Resources.PaperKind_A4;
            a4.Caption     = Properties.Resources.PaperKindA4;
            a4.Description = Properties.Resources.PaperKindA4Description;
            a4.Tag         = PaperKind.A4;
            GalleryItem a5 = new GalleryItem();

            a5.Image       = Properties.Resources.PaperKind_A5;
            a5.Caption     = Properties.Resources.PaperKindA5;
            a5.Description = Properties.Resources.PaperKindA5Description;
            a5.Tag         = PaperKind.A5;
            GalleryItem a6 = new GalleryItem();

            a6.Image       = Properties.Resources.PaperKind_A6;
            a6.Caption     = Properties.Resources.PaperKindA6;
            a6.Description = Properties.Resources.PaperKindA6Description;
            a6.Tag         = PaperKind.A6;
            res.Gallery.Groups[0].Items.Add(letter);
            res.Gallery.Groups[0].Items.Add(tabloid);
            res.Gallery.Groups[0].Items.Add(legal);
            res.Gallery.Groups[0].Items.Add(executive);
            res.Gallery.Groups[0].Items.Add(a3);
            res.Gallery.Groups[0].Items.Add(a4);
            res.Gallery.Groups[0].Items.Add(a5);
            res.Gallery.Groups[0].Items.Add(a6);
            res.Gallery.ItemCheckedChanged += new GalleryItemEventHandler(OnPaperSizeGalleryItemCheckedChanged);
            a4.Checked = true;
            return(res);
        }
Beispiel #13
0
        GalleryDropDown CreateListBoxGallery()
        {
            GalleryDropDown res = new GalleryDropDown();
            res.Gallery.FixedImageSize = false;
            res.Gallery.ShowItemText = true;
            res.Gallery.ColumnCount = 1;
            res.Gallery.CheckDrawMode = CheckDrawMode.OnlyImage;
            res.Gallery.ShowGroupCaption = false;
            res.Gallery.AutoSize = GallerySizeMode.Vertical;
            res.Gallery.SizeMode = GallerySizeMode.None;
            res.Gallery.ShowScrollBar = ShowScrollBar.Hide;
            res.Gallery.ItemCheckMode = ItemCheckMode.SingleRadio;
            res.Gallery.Appearance.ItemCaptionAppearance.Normal.Options.UseTextOptions = true;
            res.Gallery.Appearance.ItemCaptionAppearance.Normal.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            res.Gallery.Appearance.ItemCaptionAppearance.Normal.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
            res.Gallery.Appearance.ItemCaptionAppearance.Hovered.Options.UseTextOptions = true;
            res.Gallery.Appearance.ItemCaptionAppearance.Hovered.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            res.Gallery.Appearance.ItemCaptionAppearance.Hovered.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
            res.Gallery.Appearance.ItemCaptionAppearance.Pressed.Options.UseTextOptions = true;
            res.Gallery.Appearance.ItemCaptionAppearance.Pressed.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            res.Gallery.Appearance.ItemCaptionAppearance.Pressed.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;

            res.Gallery.ItemImageLocation = DevExpress.Utils.Locations.Left;
            res.Gallery.Appearance.ItemDescriptionAppearance.Normal.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            res.Gallery.Appearance.ItemDescriptionAppearance.Normal.Options.UseTextOptions = true;
            res.Gallery.Appearance.ItemDescriptionAppearance.Hovered.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            res.Gallery.Appearance.ItemDescriptionAppearance.Hovered.Options.UseTextOptions = true;
            res.Gallery.Appearance.ItemDescriptionAppearance.Pressed.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            res.Gallery.Appearance.ItemDescriptionAppearance.Pressed.Options.UseTextOptions = true;
            res.Gallery.Groups.Add(new GalleryItemGroup());
            res.Gallery.StretchItems = true;

            return res;
        }
Beispiel #14
0
        private void main_Load(object sender, EventArgs e)
        {
            // 修改程序皮肤,
            //UserLookAndFeel.Default.SkinName = "Money Twins";

            // 为快捷工具栏上的更换皮肤按钮添加事件
            GalleryDropDown skins = new GalleryDropDown() { Ribbon = this.ribbonCtrl };
            DevExpress.XtraBars.Helpers.SkinHelper.InitSkinGalleryDropDown(skins);
            this.barBtnSkin.DropDownControl = skins;

            //汉化
            DevExpress.Accessibility.AccLocalizer.Active = new DevExpress.LocalizationCHS.DevExpressUtilsLocalizationCHS();
            DevExpress.XtraBars.Localization.BarLocalizer.Active = new DevExpress.LocalizationCHS.DevExpressXtraBarsLocalizationCHS();
            //DevExpress.XtraCharts.Localization.ChartLocalizer.Active = new DevExpress.LocalizationCHS.DevExpressXtraChartsLocalizationCHS();
            DevExpress.XtraEditors.Controls.Localizer.Active = new DevExpress.LocalizationCHS.DevExpressXtraEditorsLocalizationCHS();
            DevExpress.XtraGrid.Localization.GridLocalizer.Active = new DevExpress.LocalizationCHS.DevExpressXtraGridLocalizationCHS();
            DevExpress.XtraLayout.Localization.LayoutLocalizer.Active = new DevExpress.LocalizationCHS.DevExpressXtraLayoutLocalizationCHS();
            DevExpress.XtraNavBar.NavBarLocalizer.Active = new DevExpress.LocalizationCHS.DevExpressXtraNavBarLocalizationCHS();
            //DevExpress.XtraPivotGrid.Localization.PivotGridLocalizer.Active = new DevExpress.LocalizationCHS.DevExpressXtraPivotGridLocalizationCHS();
            DevExpress.XtraPrinting.Localization.PreviewLocalizer.Active = new DevExpress.LocalizationCHS.DevExpressXtraPrintingLocalizationCHS();
            //DevExpress.XtraReports.Localization.ReportLocalizer.Active = new DevExpress.LocalizationCHS.DevExpressXtraReportsLocalizationCHS();
            //DevExpress.XtraRichEdit.Localization.XtraRichEditLocalizer.Active = new DevExpress.LocalizationCHS.DevExpressXtraRichEditLocalizationCHS();
            //DevExpress.XtraRichEdit.Localization.RichEditExtensionsLocalizer.Active = new DevExpress.LocalizationCHS.DevExpressXtraRichEditExtensionsLocalizationCHS();
            //DevExpress.XtraScheduler.Localization.SchedulerLocalizer.Active = new DevExpress.LocalizationCHS.DevExpressXtraSchedulerLocalizationCHS();
            //DevExpress.XtraScheduler.Localization.SchedulerExtensionsLocalizer.Active = new DevExpress.LocalizationCHS.DevExpressXtraSchedulerExtensionsLocalizationCHS();
            //DevExpress.XtraSpellChecker.Localization.SpellCheckerLocalizer.Active = new DevExpress.LocalizationCHS.DevExpressXtraSpellCheckerLocalizationCHS();
            //DevExpress.XtraTreeList.Localization.TreeListLocalizer.Active = new DevExpress.LocalizationCHS.DevExpressXtraTreeListLocalizationCHS();
            //DevExpress.XtraVerticalGrid.Localization.VGridLocalizer.Active = new DevExpress.LocalizationCHS.DevExpressXtraVerticalGridLocalizationCHS();
            //DevExpress.XtraWizard.Localization.WizardLocalizer.Active = new DevExpress.LocalizationCHS.DevExpressXtraWizardLocalizationCHS();
            //UserLookAndFeel.Default.SetSkinStyle(skins.Name);

            this.statusBarSysVersion.Caption = " 会员管理-免费版 ";
            this.statusBarOperator.Caption = " 操作员:系统管理员";

            // 读取预存数据
            InitSysData();

            // 程序打开时,默认打开会员管理画面
            //frmMemberManage = new Form04_MemberManage();
            //this.mainPanel.Controls.Clear();
            //this.mainPanel.Controls.Add(frmMemberManage);
            //frmMemberManage.Dock = DockStyle.Fill;
            //frmMemberManage.Show();

            testF = new testForm1();
            this.mainPanel.Controls.Clear();
            this.mainPanel.Controls.Add(testF);
            testF.Dock = DockStyle.Fill;
            testF.Show();
        }