Example #1
0
        public override void ApplyLocale(CLocalization aLocale)
        {
            XmlNode lData = aLocale.GetFormData("About");

            this.Text = XmlTools.getXmlNodeByName("caption", lData).InnerText;
            _bOk.Text = aLocale.GetTagText("Ok");
        }
Example #2
0
        public override void ApplyLocale(CLocalization aLocale)
        {
            XmlNode lData = aLocale.GetFormData("MainForm");

            _pHome.Title = XmlTools.getXmlNodeByName("pHome", lData).InnerText;
            _pEdit.Title = XmlTools.getXmlNodeByName("pEdit", lData).InnerText;
            _pExport.Title = XmlTools.getXmlNodeByName("pExport", lData).InnerText;
            _pView.Title = XmlTools.getXmlNodeByName("pView", lData).InnerText;

            _iOpenRpt.Hint = XmlTools.getXmlNodeByAttrVal("hint", "name", "open", lData).InnerText;
            _iSettings.Hint = XmlTools.getXmlNodeByAttrVal("hint", "name", "settings", lData).InnerText;
            _iHelp.Hint = XmlTools.getXmlNodeByAttrVal("hint", "name", "about", lData).InnerText;
            _iImportCollection.Hint = XmlTools.getXmlNodeByAttrVal("hint", "name", "import", lData).InnerText;
            _iExportCollection.Hint = XmlTools.getXmlNodeByAttrVal("hint", "name", "export", lData).InnerText;
            _iAddRpt.Hint = XmlTools.getXmlNodeByAttrVal("hint", "name", "addRpt", lData).InnerText;
            _iEditRpt.Hint = XmlTools.getXmlNodeByAttrVal("hint", "name", "editRpt", lData).InnerText;
            _iNewFolder.Hint = XmlTools.getXmlNodeByAttrVal("hint", "name", "addCatalog", lData).InnerText;
            _iRemove.Hint = XmlTools.getXmlNodeByAttrVal("hint", "name", "remove", lData).InnerText;
            _iAddColl.Hint = XmlTools.getXmlNodeByAttrVal("hint", "name", "addColl", lData).InnerText;
            _iPrint.Hint = XmlTools.getXmlNodeByAttrVal("hint", "name", "print", lData).InnerText;
            _iMail.Hint = XmlTools.getXmlNodeByAttrVal("hint", "name", "mail", lData).InnerText;
            _iPDF.Hint = XmlTools.getXmlNodeByAttrVal("hint", "name", "expPdf", lData).InnerText;
            _iWord.Hint = XmlTools.getXmlNodeByAttrVal("hint", "name", "expWord", lData).InnerText;
            _iXLS.Hint = XmlTools.getXmlNodeByAttrVal("hint", "name", "expExcel", lData).InnerText;
            _iHTML.Hint = XmlTools.getXmlNodeByAttrVal("hint", "name", "expHtml", lData).InnerText;
            _iXML.Hint = XmlTools.getXmlNodeByAttrVal("hint", "name", "expXml", lData).InnerText;
            _iRefresh.Hint = XmlTools.getXmlNodeByAttrVal("hint", "name", "refresh", lData).InnerText;
            _iOffline.Hint = XmlTools.getXmlNodeByAttrVal("hint", "name", "offline", lData).InnerText;
            _iGroups.Hint = XmlTools.getXmlNodeByAttrVal("hint", "name", "groups", lData).InnerText;
            _iZoomIn.Hint = XmlTools.getXmlNodeByAttrVal("hint", "name", "zoomIn", lData).InnerText;
            _iZoomOut.Hint = XmlTools.getXmlNodeByAttrVal("hint", "name", "zoomOut", lData).InnerText;
            _iZoomWidth.Hint = XmlTools.getXmlNodeByAttrVal("hint", "name", "fitWidth", lData).InnerText;
            _iZoomWnd.Hint = XmlTools.getXmlNodeByAttrVal("hint", "name", "fitPage", lData).InnerText;
            _iFirst.Hint = XmlTools.getXmlNodeByAttrVal("hint", "name", "pFirst", lData).InnerText;
            _iPrev.Hint = XmlTools.getXmlNodeByAttrVal("hint", "name", "pPrev", lData).InnerText;
            _iNext.Hint = XmlTools.getXmlNodeByAttrVal("hint", "name", "pNext", lData).InnerText;
            _iLast.Hint = XmlTools.getXmlNodeByAttrVal("hint", "name", "pLast", lData).InnerText;

            _pgCollections.PageTitle = RsViewEngine.Locale.GetTagText(RsLocalization.TAG_MANCOLLECTIONS);
            _pgSettings.PageTitle = RsViewEngine.Locale.GetTagText(RsLocalization.TAG_SETTINGS);

            _aExcelDataOnly.Text = aLocale.GetTagText("fileXlsDataOnly");
            _aExcelFormatted.Text = aLocale.GetTagText("fileXlsFormatted");
        }
Example #3
0
 public override void ApplyLocale(CLocalization aSender)
 {
     DialogLocale = aSender.GetDialogData(this.Name);
     _bOk.Text = aSender.GetTagText("ok");
     _bCancel.Text = aSender.GetTagText("cancel");
     _lTitle.Text = buildTitle(aSender);
     if (DialogLocale != null)
     {
         _lDescription.Text = XmlTools.getXmlNodeByName("description", DialogLocale).InnerText;
         this.Text = XmlTools.getXmlNodeByName("caption", DialogLocale).InnerText;
     }
 }
 public void ApplyLocale(CLocalization aSender)
 {
     bCancel.Text = aSender.GetTagText("cancel");
     bApply.Text = aSender.GetTagText("apply");
 }
Example #5
0
 public override void ApplyLocale(CLocalization aLocale)
 {
     if (aLocale != null)
     {
         _bOk.Text = aLocale.GetTagText("ok");
         _bCancel.Text = aLocale.GetTagText("cancel");
         _bYes.Text = aLocale.GetTagText("yes");
         _bNo.Text = aLocale.GetTagText("no");
         _lDLnk.Text = aLocale.GetTagText("details") + " >>";
     }
     else
     {
         _bOk.Text = "Ok";
         _bCancel.Text = "Cancel";
         _bYes.Text = "Yes";
         _bNo.Text = "No";
         _lDLnk.Text = "Details >>";
     }
 }
Example #6
0
 public abstract void ApplyLocale(CLocalization aLocale);
Example #7
0
 public void ReleaseLocale()
 {
     _Locale.RemoveLocalizedControl(this);
     _Locale = null;
 }
Example #8
0
        public override void ApplyLocale(CLocalization aSender)
        {
            base.ApplyLocale(aSender);

            _lName.Text = XmlTools.getXmlNodeByName(_lName.Name, DialogLocale).InnerText;
            _lPassword.Text = XmlTools.getXmlNodeByName(_lPassword.Name, DialogLocale).InnerText;
            _eName.ContentHelp = XmlTools.getXmlNodeByName(_eName.Name, DialogLocale).InnerText;
            _ePassword.ContentHelp = XmlTools.getXmlNodeByName(_ePassword.Name, DialogLocale).InnerText;
            _ctlSetLogon.Text = XmlTools.getXmlNodeByName(_ctlSetLogon.Name, DialogLocale).InnerText;
            _ctlNoSave.Text = XmlTools.getXmlNodeByName(_ctlNoSave.Name, DialogLocale).InnerText;
            _ctlSaveForThisReport.Text = XmlTools.getXmlNodeByName(_ctlSaveForThisReport.Name, DialogLocale).InnerText;
            _ctlSaveForDS.Text = XmlTools.getXmlNodeByName(_ctlSaveForDS.Name, DialogLocale).InnerText;
        }
Example #9
0
 public static void AssignLocale(CLocalization aSender)
 {
     _CurrentLocale = aSender;
 }
Example #10
0
        public override void ApplyLocale(CLocalization aLocale)
        {
            base.ApplyLocale(Locale);

            XmlNode lLocNode = Locale.GetPanelData(this.Name);

            _bApply.Text = Locale.GetTagText("apply");

            if (lLocNode != null)
            {
                _chEnabledParam.Text = XmlTools.getXmlNodeByName("embeddedparam", lLocNode).InnerXml;
            }
        }
Example #11
0
        public override void ApplyLocale(CLocalization aLocale)
        {
            XmlNode lData = aLocale.GetDialogData("AddReport");

            _bOk.Text = aLocale.GetTagText("ok");
            _bCancel.Text = aLocale.GetTagText("cancel");
            _bBrowse.Text = aLocale.GetTagText("browse");
            _lAlias.Text = XmlTools.getXmlNodeByName("lAlias", lData).InnerText;
            _lReportFile.Text = XmlTools.getXmlNodeByName("lReportFile", lData).InnerText;
            _lDetails.Text = XmlTools.getXmlNodeByAttrVal("name", "details", lData).InnerText;
            _ctlEditor.Text = XmlTools.getXmlNodeByAttrVal("name", "group", lData).InnerText;
        }
Example #12
0
        public override void ApplyLocale(CLocalization aLocale)
        {
            XmlNode lPanelInfo = aLocale.GetPanelData(this.Name);

            Locale.GetDialogData("valami");
            Locale.GetTagText("enabled");
            if (lPanelInfo != null)
            {
                PageTitle = XmlTools.getXmlNodeByName("title", lPanelInfo).InnerText;
            }
        }
Example #13
0
 public void AssignLocale(CLocalization aSender)
 {
     _Locale = aSender;
 }
Example #14
0
 public void ApplyLocale(CLocalization aSender)
 {
     foreach (CAuthItem iItem in _ItemsGUI)
         applyLocaleToItem(iItem);
 }
Example #15
0
 protected abstract string buildTitle(CLocalization aLocale);
Example #16
0
        public static void ApplyLocale(CLocalization aSender)
        {
            XmlNode lGeneralDialogs = Locale.GetDialogData("generalDialogs");

            //_dlgOpenRpt:
            _dlgOpenRpt.Filter = FileDialogFilters.BuildReportFilter(lGeneralDialogs);
            _dlgOpenRpt.FilterIndex = 2;

            //_dlgOpenCollection:
            _dlgOpenCollection.Filter = FileDialogFilters.BuildCollectionFilter(lGeneralDialogs);
            _dlgOpenCollection.FilterIndex = 2;

            #if DEMO
                            try {
                                    long lVal = ReportSmart.Authorization.AppAuth.chkshwauthfrw(ReportSmart.Authorization.AppAuth.crdtstamp(new DateTime(2010, 5, 23), _YM, _MM, _DM), _YM, _MM, _DM, _PERIOD);
                                    long lChkval = ReportSmart.Authorization.AppAuth.gnchkval(_YM, _MM, _DM, _PERIOD);
                                    Math.Sqrt(lVal - lChkval);
                                } catch {
                                    KillApplication();
                                }
            #endif

            //_dlgSaveCollection:
            _dlgSaveCollection.Filter = FileDialogFilters.BuildCollectionFilter(lGeneralDialogs);
            _dlgSaveCollection.FilterIndex = 2;

            // Favorites:
            if (!_IsEmbedded)
                _Favorites.RootFolder.GUINode.Text = Locale.GetTagText("favorites");
        }
Example #17
0
        public override void ApplyLocale(CLocalization aLocale)
        {
            CLocalization lLocale = aLocale;

            base.ApplyLocale(aLocale);

            _chEnabled.Text = lLocale.GetTagText("enabled");
            _lTimeout.Text = lLocale.GetTagText("timeout") + ":";
            _lFormat.Text = lLocale.GetTagText("format") + ":";
            _bApply.Text = lLocale.GetTagText("apply");

            _ctlFormat.Items[0] = lLocale.GetTagText("filePDF");
            _ctlFormat.Items[1] = lLocale.GetTagText("fileDOC");
            _ctlFormat.Items[2] = lLocale.GetTagText("fileHTM");

            _ctlUnit.Items[0] = lLocale.GetTagText("uMin");
            _ctlUnit.Items[1] = lLocale.GetTagText("uHour");
        }
Example #18
0
 public override void ApplyLocale(CLocalization aLocale)
 {
     XmlNode lData = aLocale.GetFormData(LOCALE_ALIAS);
     if (lData == null) return;
 }
Example #19
0
        public override void AssignLocale(CLocalization aLocale)
        {
            base.AssignLocale(aLocale);

            if (aLocale != null)
                aLocale.AddLocalizedControl(_ctlAuthEdit);
        }
Example #20
0
 protected override string buildTitle(CLocalization aLocale)
 {
     return XmlTools.getXmlNodeByName("title1", DialogLocale).InnerText +
                 " \"" + ConnectionName + "\" " +
                 XmlTools.getXmlNodeByName("title2", DialogLocale).InnerText;
 }
Example #21
0
 public void ApplyLocale(CLocalization aLocale)
 {
     this.Text = aLocale.GetTagText("settings");
     Invalidate();
 }
Example #22
0
        public void ApplyLocale(CLocalization aSender)
        {
            CLocalization lLocale = aSender == null ? _Locale : aSender;

            if (lLocale != null)
            {
                _bOk.Text = lLocale.GetTagText("next");

                switch (Mode)
                {
                    case SH_REMAIN:
                        _lTitle.Text = lLocale.GetMessageTitle("auth_remain");
                        _lInfo.Text = lLocale.GetMessage("auth_remain");
                        break;

                    default:
                        _lTitle.Text = lLocale.GetMessageTitle("auth_expired");
                        _lInfo.Text = lLocale.GetMessage("auth_expired");
                        break;
                }
            }
        }
Example #23
0
        public override void ApplyLocale(CLocalization aSender)
        {
            base.ApplyLocale(aSender);

            _lFolderName.Text = XmlTools.getXmlNodeByName(_lFolderName.Name, DialogLocale).InnerText;
        }
Example #24
0
 public virtual void AssignLocale(CLocalization aLocale)
 {
     _Locale = aLocale;
 }
        private static void EhLocalizationChanged(CLocalization aLocale)
        {
            XmlNode lDialogLocale = aLocale.GetDialogData("generalDialogs");

            SaveCollectionDialog.Filter = FileDialogFilters.BuildCollectionFilter(lDialogLocale);
            OpenCollectionDialog.Filter = FileDialogFilters.BuildCollectionFilter(lDialogLocale);
        }
Example #26
0
            public override void ApplyLocale(CLocalization aLocale)
            {
                base.ApplyLocale(aLocale);

                _nDOC.Text = aLocale.GetTagText("fileDOC");
                _nHTM.Text = aLocale.GetTagText("fileHTM");
                _nPDF.Text = aLocale.GetTagText("filePDF");
                _nXLS.Text = aLocale.GetTagText("fileXLS");
                _nXML.Text = aLocale.GetTagText("fileXML");
            }
Example #27
0
        public override void AssignLocale(CLocalization aLocale)
        {
            base.AssignLocale(aLocale);

            Locale.AddLocalizedControl(FolderContext);

            foreach (Control iControl in this.Controls)
                if (iControl is RsCollectionTreeNode)
                    aLocale.AddLocalizedControl((RsCollectionTreeNode)iControl);
        }