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

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

            pictureBox1.Image = _resClass.getImage();
            mnuConnectBT.Enabled = false;   //currently no BT direct socket printing
        }
示例#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];
        }
示例#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];
        }
示例#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];
        }
示例#7
0
 public static ResClass2 getInstance()
 {
     if (_instance == null)
         _instance = new ResClass2();
     return _instance;
 }