Exemplo n.º 1
0
 public static ResClass2 getInstance()
 {
     if (_instance == null)
     {
         _instance = new ResClass2();
     }
     return(_instance);
 }
Exemplo n.º 2
0
        public Form1()
        {
            InitializeComponent();
            _resClass = ResClass2.getInstance();
            _resClass.colorizeForm(this);

            pictureBox1.Image    = _resClass.getImage();
            mnuConnectBT.Enabled = false;   //currently no BT direct socket printing
        }
Exemplo n.º 3
0
        public Form1()
        {
            InitializeComponent();
            _resClass = ResClass2.getInstance();
            _resClass.colorizeForm(this);

            pictureBox1.Image = _resClass.getImage();
            mnuConnectBT.Enabled = false;   //currently no BT direct socket printing
        }
Exemplo n.º 4
0
        public frmLanguage(ref SerialPort sp, ref BTPort bt)
        {
            InitializeComponent();
            _sp = sp;
            _bt = bt;
            ResClass2 res = ResClass2.getInstance();

            res.colorizeForm(this);

            btnLangDE.Text = res._buttonTexts[0];
            btnLangEN.Text = res._buttonTexts[1];
            btnLangES.Text = res._buttonTexts[2];
        }
Exemplo n.º 5
0
        public frmPrint(ref Comm.BT.BTPort btPort, ref System.IO.Ports.SerialPort serPort, int iLang)
        {
            InitializeComponent();
            _iLang   = iLang;
            _btPort  = btPort;
            _serPort = serPort;

            res = ResClass2.getInstance();
            res.colorizeForm(this);

            lblOldPrice.Text = res._labelsText(ResClass2.frmPrintText.oldPrice, iLang);
            lblNewPrice.Text = res._labelsText(ResClass2.frmPrintText.newPrice, iLang);
            btnPrint.Text    = res._labelsText(ResClass2.frmPrintText.printButton, iLang);

            varLabel = res._reducedText(iLang);// getVarLabel(iLang);

            lblCurrencyOld.Text = ResClass2.sCurrency[iLang];
            lblCurrencyNew.Text = ResClass2.sCurrency[iLang];
        }
Exemplo n.º 6
0
        public frmPrint(ref Comm.BT.BTPort btPort, ref System.IO.Ports.SerialPort serPort, int iLang)
        {
            InitializeComponent();
            _iLang = iLang;
            _btPort = btPort;
            _serPort = serPort;

            res = ResClass2.getInstance();
            res.colorizeForm(this);

            lblOldPrice.Text = res._labelsText(ResClass2.frmPrintText.oldPrice, iLang);
            lblNewPrice.Text = res._labelsText(ResClass2.frmPrintText.newPrice, iLang);
            btnPrint.Text = res._labelsText(ResClass2.frmPrintText.printButton, iLang);

            varLabel = res._reducedText(iLang);// getVarLabel(iLang);

            lblCurrencyOld.Text = ResClass2.sCurrency[iLang];
            lblCurrencyNew.Text = ResClass2.sCurrency[iLang];
        }
Exemplo n.º 7
0
 public static ResClass2 getInstance()
 {
     if (_instance == null)
         _instance = new ResClass2();
     return _instance;
 }