Ejemplo n.º 1
0
        public controlLeiEuro()
        {
            InitializeComponent();

            if (!IHMUtile.SuntemInDebug())
            {
                if (CCL.iStomaLab.CUtil.ExistaMonedaNationala())
                {
                    this.rbLei.Text    = CCL.iStomaLab.CUtil.GetNumeMonedaNationala();
                    this.rbLei.Visible = true;
                }
                else
                {
                    this.rbLei.Visible = false;
                }

                if (CCL.iStomaLab.CUtil.ExistaMonedaAlternativa())
                {
                    this.rbEuro.Text    = CCL.iStomaLab.CUtil.GetNumeMonedaAlternativa();
                    this.rbEuro.Visible = true;
                }
                else
                {
                    this.rbEuro.Visible = false;
                }
            }
        }
Ejemplo n.º 2
0
        public ControlEditorHTML()
        {
            this.DoubleBuffered = true;

            InitializeComponent();

            this.lCorespondentaButonComanda = new Dictionary <object, WebBrowserEditabil.EnumComandaHTML>();
            this.lCorespondentaButonComanda.Add(this.tsBtnCopy, WebBrowserEditabil.EnumComandaHTML.ActionCopy);
            this.lCorespondentaButonComanda.Add(this.tsBtnCut, WebBrowserEditabil.EnumComandaHTML.ActionCut);
            this.lCorespondentaButonComanda.Add(this.btnUndo, WebBrowserEditabil.EnumComandaHTML.ActionUndo);
            this.lCorespondentaButonComanda.Add(this.btnRedo, WebBrowserEditabil.EnumComandaHTML.ActionRedo);
            this.lCorespondentaButonComanda.Add(this.tsBtnSave, WebBrowserEditabil.EnumComandaHTML.ActionSave);
            this.lCorespondentaButonComanda.Add(this.tsBtnPaste, WebBrowserEditabil.EnumComandaHTML.ActionPaste);
            this.lCorespondentaButonComanda.Add(this.tsBtnCenter, WebBrowserEditabil.EnumComandaHTML.AlignCenter);
            this.lCorespondentaButonComanda.Add(this.tsBtnAlignLeft, WebBrowserEditabil.EnumComandaHTML.AlignLeft);
            this.lCorespondentaButonComanda.Add(this.tsBtnAlignRight, WebBrowserEditabil.EnumComandaHTML.AlignRight);
            this.lCorespondentaButonComanda.Add(this.tsBtnAlignFull, WebBrowserEditabil.EnumComandaHTML.AlignFull);
            this.lCorespondentaButonComanda.Add(this.tsBtnBackColor, WebBrowserEditabil.EnumComandaHTML.ColorChangeBackColor);
            this.lCorespondentaButonComanda.Add(this.tsBtnColor, WebBrowserEditabil.EnumComandaHTML.ColorChangeForeColor);
            this.lCorespondentaButonComanda.Add(this.tsBtnBold, WebBrowserEditabil.EnumComandaHTML.FontBold);
            this.lCorespondentaButonComanda.Add(this.tsBtnFont, WebBrowserEditabil.EnumComandaHTML.FontChange);
            this.lCorespondentaButonComanda.Add(this.tsBtnClearFormating, WebBrowserEditabil.EnumComandaHTML.FontClearFormat);
            this.lCorespondentaButonComanda.Add(this.tsBtnItalic, WebBrowserEditabil.EnumComandaHTML.FontItalic);
            this.lCorespondentaButonComanda.Add(this.tsBtnUnderline, WebBrowserEditabil.EnumComandaHTML.FontUnderline);
            this.lCorespondentaButonComanda.Add(this.tsBtnStriketrough, WebBrowserEditabil.EnumComandaHTML.FontStriketrough);
            //this.lCorespondentaButonComanda.Add(this.tsBtnIndice, WebBrowserEditabil.EnumComandaHTML.FontIndice);
            //this.lCorespondentaButonComanda.Add(this.tsBtnExponent, WebBrowserEditabil.EnumComandaHTML.FontExponent);
            this.lCorespondentaButonComanda.Add(this.btnCampDeFuziune, WebBrowserEditabil.EnumComandaHTML.InsertCampFuziune);
            this.lCorespondentaButonComanda.Add(this.btnInsereazaLinie, WebBrowserEditabil.EnumComandaHTML.InsertLine);
            this.lCorespondentaButonComanda.Add(this.tsBtnInsereazaLink, WebBrowserEditabil.EnumComandaHTML.InsertLink);
            this.lCorespondentaButonComanda.Add(this.tsBtnInsereazaImagine, WebBrowserEditabil.EnumComandaHTML.InsertInlineImage);
            this.lCorespondentaButonComanda.Add(this.tsBtnInsereazaTable, WebBrowserEditabil.EnumComandaHTML.InsertTable);
            this.lCorespondentaButonComanda.Add(this.tsBtnUnorderedList, WebBrowserEditabil.EnumComandaHTML.InsertUnorderedList);
            this.lCorespondentaButonComanda.Add(this.tsBtnOrderedList, WebBrowserEditabil.EnumComandaHTML.InsertOrderedList);
            //this.lCorespondentaButonComanda.Add(this.tsCboSize, WebBrowserEditabil.EnumComandaHTML.SizeChange);
            this.lCorespondentaButonComanda.Add(this.btnDecrease, WebBrowserEditabil.EnumComandaHTML.SizeDecrease);
            this.lCorespondentaButonComanda.Add(this.btnIncrease, WebBrowserEditabil.EnumComandaHTML.SizeIncrease);
            this.lCorespondentaButonComanda.Add(this.tsBtnFindReplace, WebBrowserEditabil.EnumComandaHTML.FindReplace);
            this.lCorespondentaButonComanda.Add(this.tsBtnIndent, WebBrowserEditabil.EnumComandaHTML.Indent);
            this.lCorespondentaButonComanda.Add(this.tsBtnOutdent, WebBrowserEditabil.EnumComandaHTML.Outdent);
            //this.lCorespondentaButonComanda.Add(this.tsBtnPrint, WebBrowserEditabil.EnumComandaHTML.ActionPrint);
            this.lCorespondentaButonComanda.Add(this.tsBtnPrintPreview, WebBrowserEditabil.EnumComandaHTML.ActionPrintPreview);

            this.wbContinut.AllowNavigation                = true;
            this.wbContinut.AllowWebBrowserDrop            = false;
            this.wbContinut.WebBrowserShortcutsEnabled     = true;
            this.wbContinut.IsWebBrowserContextMenuEnabled = false;
            this.wbContinut.ScriptErrorsSuppressed         = true;
            this.wbContinut.ScrollBarsEnabled              = true;

            if (!IHMUtile.SuntemInDebug())
            {
                this.wbContinut.SourceHTML = WebBrowserEditabil.DefaultHtml;

                this.tsBtnBold.ToolTipText             = IHMUtile.getText(1226);
                this.tsBtnItalic.ToolTipText           = IHMUtile.getText(1227);
                this.tsBtnUnderline.ToolTipText        = IHMUtile.getText(1228);
                this.tsBtnBackColor.ToolTipText        = IHMUtile.getText(1549);
                this.tsBtnColor.ToolTipText            = IHMUtile.getText(641);
                this.tsBtnUnorderedList.ToolTipText    = IHMUtile.getText(1551);
                this.tsBtnOrderedList.ToolTipText      = IHMUtile.getText(1550);
                this.tsBtnAlignLeft.ToolTipText        = IHMUtile.getText(1203);
                this.tsBtnCenter.ToolTipText           = IHMUtile.getText(1204);
                this.tsBtnAlignRight.ToolTipText       = IHMUtile.getText(1205);
                this.tsBtnClearFormating.ToolTipText   = IHMUtile.getText(1552);
                this.tsBtnPaste.ToolTipText            = IHMUtile.getText(1553);
                this.tsBtnCut.ToolTipText              = IHMUtile.getText(1555);
                this.tsBtnCopy.ToolTipText             = IHMUtile.getText(1554);
                this.tsBtnSave.ToolTipText             = IHMUtile.getText(1556);
                this.btnUndo.ToolTipText               = IHMUtile.getText(1557);
                this.btnRedo.ToolTipText               = IHMUtile.getText(1558);
                this.btnIncrease.ToolTipText           = IHMUtile.getText(1559);
                this.btnDecrease.ToolTipText           = IHMUtile.getText(1560);
                this.btnInsereazaLinie.ToolTipText     = IHMUtile.getText(1561);
                this.tsBtnInsereazaLink.ToolTipText    = IHMUtile.getText(1219);
                this.tsBtnInsereazaImagine.ToolTipText = IHMUtile.getText(1396);
                this.btnCampDeFuziune.ToolTipText      = IHMUtile.getText(1562);
                this.tsBtnInsereazaTable.ToolTipText   = IHMUtile.getText(1563);
                this.tsBtnAlignFull.ToolTipText        = IHMUtile.getText(1207);
                this.tsBtnFont.ToolTipText             = IHMUtile.getText(1223);
                this.tsBtnFindReplace.ToolTipText      = IHMUtile.getText(1232);
                this.tsBtnIndent.ToolTipText           = IHMUtile.getText(1564);
                this.tsBtnOutdent.ToolTipText          = IHMUtile.getText(1565);
                //this.tsBtnPrint.ToolTipText = IHMUtile.getText(1566);
                this.tsBtnPrintPreview.ToolTipText = IHMUtile.getText(1567);
                this.tsBtnStriketrough.ToolTipText = IHMUtile.getText(1229);
                //this.tsBtnIndice.ToolTipText = IHMUtile.getText(1230);
                //this.tsBtnExponent.ToolTipText = IHMUtile.getText(1231);
            }
        }