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