Exemple #1
0
        private void Localize()
        {
            MyRes res = new MyRes("ConnectionEditors,OleDb");

            gbConnection.Text = res.Get("ConnectionString");
            btnBuild.Text     = res.Get("Build");
        }
Exemple #2
0
        private void LocalizeMenuItems()
        {
            if (miViewGrid != null)
            {
                MyRes res = new MyRes("Designer,Menu,View");
                miViewGrid.Text          = res.Get("Grid");
                miViewGuides.Text        = res.Get("Guides");
                miViewAutoGuides.Text    = res.Get("AutoGuides");
                miViewDeleteHGuides.Text = res.Get("DeleteHGuides");
                miViewDeleteVGuides.Text = res.Get("DeleteVGuides");
                miViewUnits.Text         = res.Get("Units");

                res = new MyRes("Forms,ReportPageOptions");
                miViewUnitsMillimeters.Text     = res.Get("Millimeters");
                miViewUnitsCentimeters.Text     = res.Get("Centimeters");
                miViewUnitsInches.Text          = res.Get("Inches");
                miViewUnitsHundrethsOfInch.Text = res.Get("HundrethsOfInch");

                res = new MyRes("Designer,Menu,Report");
                miReportBands.Text       = res.Get("Bands");
                miReportGroupExpert.Text = res.Get("GroupExpert");
                miReportStyles.Text      = res.Get("Styles");

                res = new MyRes("Objects,Bands");
                miReportTitle.Text   = res.Get("ReportTitle");
                miReportSummary.Text = res.Get("ReportSummary");
                miPageHeader.Text    = res.Get("PageHeader");
                miPageFooter.Text    = res.Get("PageFooter");
                miColumnHeader.Text  = res.Get("ColumnHeader");
                miColumnFooter.Text  = res.Get("ColumnFooter");
                miOverlay.Text       = res.Get("Overlay");
            }
        }
        public BarcodeObjectMenu(Designer designer) : base(designer)
        {
            FSelection = Designer.SelectedObjects;

            MyRes res = new MyRes("ComponentMenu,Barcode");

            miBarcodeType            = CreateMenuItem(res.Get("BarcodeType"));
            miBarcodeType.BeginGroup = true;
            miAutoSize                  = CreateMenuItem(res.Get("AutoSize"), new EventHandler(miAutoSize_Click));
            miAutoSize.BeginGroup       = true;
            miAutoSize.AutoCheckOnClick = true;
            miShowText                  = CreateMenuItem(res.Get("ShowText"), new EventHandler(miShowText_Click));
            miShowText.AutoCheckOnClick = true;

            int insertPos = Items.IndexOf(miCut);

            Items.Insert(insertPos, miBarcodeType);
            Items.Insert(insertPos + 1, miAutoSize);
            Items.Insert(insertPos + 2, miShowText);

            BarcodeObject barcode = FSelection[0] as BarcodeObject;

            CreateBarcodeTypes(barcode.Barcode);

            bool enabled = !barcode.HasRestriction(Restrictions.DontModify);

            miBarcodeType.Enabled = enabled;
            miAutoSize.Enabled    = enabled;
            miShowText.Enabled    = enabled;
            if (enabled)
            {
                miAutoSize.Checked = barcode.AutoSize;
                miShowText.Checked = barcode.ShowText;
            }
        }
Exemple #4
0
        public static string[] GetYValuesNames(SeriesChartType chartType)
        {
            MyRes res = new MyRes("Forms,ChartEditor,SeriesEditorControl,Data,SeriesValues");

            switch (chartType)
            {
            case SeriesChartType.Stock:
            case SeriesChartType.Candlestick:
                return(new string[] { res.Get("High"), res.Get("Low"), res.Get("Open"), res.Get("Close") });

            case SeriesChartType.Range:
            case SeriesChartType.RangeBar:
            case SeriesChartType.RangeColumn:
            case SeriesChartType.SplineRange:
                return(new string[] { res.Get("RangeBegin"), res.Get("RangeEnd") });

            case SeriesChartType.Bubble:
                return(new string[] { res.Get("YValue"), res.Get("Size") });

            case SeriesChartType.PointAndFigure:
                return(new string[] { res.Get("YValue1"), res.Get("YValue2") });
            }

            return(new string[] { res.Get("YValue") });
        }
Exemple #5
0
        /// <summary>
        /// Initializes a new instance of the <b>TextObjectMenu</b>
        /// class with default settings.
        /// </summary>
        /// <param name="designer">The reference to a report designer.</param>
        public TextObjectMenu(Designer designer) : base(designer)
        {
            FTextObjects = new SelectedTextObjects(designer);
            FTextObjects.Update();

            MyRes res = new MyRes("ComponentMenu,TextObject");

            miClear                      = CreateMenuItem(res.Get("Clear"), new EventHandler(miClear_Click));
            miAutoWidth                  = CreateMenuItem(res.Get("AutoWidth"), new EventHandler(miAutoWidth_Click));
            miAutoWidth.BeginGroup       = true;
            miAutoWidth.AutoCheckOnClick = true;
            miWordWrap                   = CreateMenuItem(res.Get("WordWrap"), new EventHandler(miWordWrap_Click));
            miWordWrap.AutoCheckOnClick  = true;

            miAllowExpressions.BeginGroup = false;

            int insertPos = Items.IndexOf(miFormat) + 1;

            Items.Insert(insertPos, miClear);
            insertPos = Items.IndexOf(miAllowExpressions);
            Items.Insert(insertPos, miAutoWidth);
            Items.Insert(insertPos + 1, miWordWrap);

            bool enabled = FTextObjects.Enabled;

            miAutoWidth.Enabled = enabled;
            miWordWrap.Enabled  = enabled;

            TextObject obj = FTextObjects.First;

            miAutoWidth.Checked = obj.AutoWidth;
            miWordWrap.Checked  = obj.WordWrap;
        }
Exemple #6
0
        /// <inheritdoc/>
        public void Localize()
        {
            MyRes res = new MyRes("Designer,Toolbar,Objects");

            Text = res.Get("");
            btnSelect.Tooltip = res.Get("Select");
        }
        public override void Localize()
        {
            base.Localize();
            MyRes res = new MyRes("Forms,HighlightEditor");

            Text = res.Get("");

            gbConditions.Text = res.Get("Conditions");
            btnAdd.Text       = res.Get("Add");
            btnDelete.Text    = res.Get("Delete");
            btnEdit.Text      = res.Get("Edit");
            btnUp.Image       = Res.GetImage(208);
            btnDown.Image     = Res.GetImage(209);

            gbStyle.Text       = res.Get("Style");
            btnBorder.Image    = Res.GetImage(36);
            btnBorder.Text     = Res.Get("Forms,Style,Border");
            btnFill.Image      = Res.GetImage(38);
            btnFill.Text       = res.Get("Fill");
            btnTextColor.Image = Res.GetImage(23);
            btnTextColor.Text  = res.Get("TextColor");
            btnFont.Text       = res.Get("Font");
            btnFont.Image      = Res.GetImage(59);
            cbVisible.Text     = res.Get("Visible");
        }
Exemple #8
0
        public MatrixObjectMenu(Designer designer) : base(designer)
        {
            FMatrix = Designer.SelectedObjects[0] as MatrixObject;
            MyRes res = new MyRes("ComponentMenu,MatrixObject");

            miAutoSize                         = CreateMenuItem(Res.Get("ComponentMenu,TableRow,AutoSize"), new EventHandler(miAutoSize_Click));
            miAutoSize.BeginGroup              = true;
            miAutoSize.AutoCheckOnClick        = true;
            miShowTitle                        = CreateMenuItem(res.Get("ShowTitle"), new EventHandler(miShowTitle_Click));
            miShowTitle.AutoCheckOnClick       = true;
            miCellsSideBySide                  = CreateMenuItem(res.Get("CellsSideBySide"), new EventHandler(miCellsSideBySide_Click));
            miCellsSideBySide.AutoCheckOnClick = true;
            miStyle            = CreateMenuItem(Res.GetImage(87), res.Get("Style"), null);
            miStyle.BeginGroup = true;

            int insertIndex = Items.IndexOf(miRepeatHeaders);

            Items.Insert(insertIndex, miAutoSize);
            Items.Insert(insertIndex + 1, miShowTitle);
            Items.Insert(insertIndex + 3, miCellsSideBySide);
            Items.Insert(insertIndex + 4, miStyle);

            miRepeatHeaders.BeginGroup = false;
            miCanBreak.Visible         = false;
            miGrowToBottom.Visible     = false;

            miAutoSize.Checked        = FMatrix.AutoSize;
            miShowTitle.Checked       = FMatrix.ShowTitle;
            miCellsSideBySide.Checked = FMatrix.CellsSideBySide;
            BuildStyleMenu();
        }
Exemple #9
0
        public override void Localize()
        {
            base.Localize();
            MyRes res = new MyRes("Forms,TextEditor");

            Text            = res.Get("");
            cbWordWrap.Text = res.Get("WordWrap");
        }
Exemple #10
0
        public override void Localize()
        {
            base.Localize();
            MyRes res = new MyRes("Forms,AskPassword");

            Text             = res.Get("");
            lblPassword.Text = res.Get("Password");
        }
        public override void Localize()
        {
            base.Localize();
            MyRes res = new MyRes("Export,Misc");

            gbOptions.Text         = res.Get("Options");
            radioButtonTable.Text  = res.Get("TableBased");
            radioButtonLayers.Text = res.Get("LayerBased");
        }
 private void Localize()
 {
   MyRes res = new MyRes("ConnectionEditors,Xml");
   gbSelect.Text = Res.Get("ConnectionEditors,Common,Database");
   lblSelectXsd.Text = res.Get("Xsd");
   lblSelectXml.Text = res.Get("Xml");
   tbXsd.Image = Res.GetImage(1);
   tbXml.Image = Res.GetImage(1);
 }
Exemple #13
0
        public override void Localize()
        {
            base.Localize();
            MyRes res = new MyRes("Export,Misc");

            gbOptions.Text    = res.Get("Options");
            cbWysiwyg.Text    = res.Get("Wysiwyg");
            cbPageBreaks.Text = res.Get("PageBreaks");
        }
Exemple #14
0
        private void Localize()
        {
            MyRes res = new MyRes("ConnectionEditors,Common");

            lblDataSource.Text = res.Get("DataSource");

            gbDatabase.Text  = res.Get("Database");
            btnAdvanced.Text = Res.Get("Buttons,Advanced");
        }
Exemple #15
0
        private void Localize()
        {
            tab1.Text = Res.Get("Forms,DialogPageOptions");
            MyRes res = new MyRes("Forms,ReportPageOptions");

            cbShowGrid.Text   = res.Get("ShowGrid");
            cbSnapToGrid.Text = res.Get("SnapToGrid");
            lblSnapSize.Text  = res.Get("Size");
        }
Exemple #16
0
        public void Localize()
        {
            MyRes res = new MyRes("Designer,ColorSelector");

            FTabs.Tabs[0].Text   = res.Get("CustomColors");
            FTabs.Tabs[1].Text   = res.Get("WebColors");
            FTabs.Tabs[2].Text   = res.Get("SystemColors");
            lblTransparency.Text = res.Get("Transparency");
        }
Exemple #17
0
        private void Localize()
        {
            MyRes res = new MyRes("ConnectionEditors,Common");

            gbServer.Text    = res.Get("ServerLogon");
            lblPassword.Text = res.Get("Password");
            gbDatabase.Text  = res.Get("Database");
            lblDatabase.Text = res.Get("DatabaseName");
        }
        private void Localize()
        {
            MyRes res = new MyRes("ConnectionEditors,Common");

            gbDatabase.Text  = res.Get("Database");
            lblDataFile.Text = res.Get("DatabaseFile");
            lblPassword.Text = res.Get("Password");
            tbDatabase.Image = Res.GetImage(1);
        }
Exemple #19
0
        public override void Localize()
        {
            MyRes res = new MyRes("Designer,Toolbar,Style");

            Text = res.Get("");

            SetItemText(btnStyles, res.Get("Styles"));
            UpdateContent();
        }
Exemple #20
0
        public void Localize()
        {
            MyRes res = new MyRes("Forms,CodePageOptions");

            tab1.Text = res.Get("");
            cbEnableVirtualSpace.Text = res.Get("EnableVirtualSpace");
            cbUseSpaces.Text          = res.Get("UseSpaces");
            cbAllowOutlining.Text     = res.Get("AllowOutlining");
            lblTabSize.Text           = res.Get("TabSize");
        }
Exemple #21
0
        public override void Localize()
        {
            base.Localize();
            MyRes res = new MyRes("Forms,ChartEditor");

            Text           = res.Get("");
            lblHint.Text   = res.Get("Hint");
            btnAdd.Text    = res.Get("Add");
            btnDelete.Text = res.Get("Delete");
        }
        public override void Localize()
        {
            base.Localize();
            MyRes res = new MyRes("Export,Pptx");

            Text                = res.Get("");
            res                 = new MyRes("Export,Misc");
            gbOptions.Text      = res.Get("Options");
            lblImageFormat.Text = res.Get("Pictures");
        }
Exemple #23
0
        /// <inheritdoc/>
        public override void Localize()
        {
            base.Localize();
            MyRes res = new MyRes("Forms,Exception");

            Text                    = res.Get("");
            lblHint.Text            = res.Get("Hint");
            lblStack.Text           = res.Get("Stack");
            btnCopyToClipboard.Text = res.Get("Copy");
        }
        public override void Localize()
        {
            base.Localize();

            MyRes res = new MyRes("Forms,SelectLanguage");

            Text           = res.Get("");
            lblSelect.Text = res.Get("SelectLanguage");
            lblFolder.Text = res.Get("Folder");
            tbFolder.Image = Res.GetImage(1);
        }
        private void Localize()
        {
            MyRes res = new MyRes("ConnectionEditors,Common");

            gbDatabase.Text  = res.Get("Database");
            lblDataFile.Text = res.Get("DatabaseFile");
            lblUserName.Text = res.Get("UserName");
            lblPassword.Text = res.Get("Password");
            btnAdvanced.Text = Res.Get("Buttons,Advanced");
            tbDatabase.Image = Res.GetImage(1);
        }
Exemple #26
0
        public override void Localize()
        {
            base.Localize();
            MyRes res = new MyRes("Export,Mht");

            Text            = res.Get("");
            res             = new MyRes("Export,Misc");
            gbOptions.Text  = res.Get("Options");
            cbWysiwyg.Text  = res.Get("Wysiwyg");
            cbPictures.Text = res.Get("Pictures");
        }
Exemple #27
0
        public override void Localize()
        {
            base.Localize();
            MyRes res = new MyRes("Forms,Connection");

            Text               = res.Get("");
            gbSelect.Text      = res.Get("Select");
            cbAlwaysUse.Text   = res.Get("AlwaysUse");
            cbLoginPrompt.Text = res.Get("LoginPrompt");
            btnTest.Text       = res.Get("Test");
        }
        public override void Localize()
        {
            base.Localize();
            MyRes res = new MyRes("Forms,SelectDataSource");

            Text                = res.Get("");
            lblHint.Text        = res.Get("Hint");
            lblAvailableDs.Text = res.Get("AvailableDs");
            lblSelectedDs.Text  = res.Get("SelectedDs");
            btnOk.Text          = Res.Get("Buttons,Close");
        }
Exemple #29
0
        public override void Localize()
        {
            base.Localize();
            MyRes res = new MyRes("Forms,AddNewItem");

            Text       = res.Get("");
            btnOk.Text = res.Get("Add");

            lvWizards.Groups.Add("0", res.Get("Reports"));
            lvWizards.Groups.Add("1", res.Get("ReportItems"));
        }
        private void Localize()
        {
            MyRes res = new MyRes("ConnectionEditors,Common");

            gbServer.Text    = res.Get("ServerLogon");
            lblServer.Text   = res.Get("Server");
            lblUserName.Text = res.Get("UserName");
            lblPassword.Text = res.Get("Password");

            btnAdvanced.Text = Res.Get("Buttons,Advanced");
        }