void Buttestprint_Click(object sender, EventArgs e) { mmDevice = null; findBTPrinter (); if (mmDevice != null) { string userid = ((GlobalvarsApp)this.Application).USERID_CODE; PrintInvHelper prnHelp = new PrintInvHelper (pathToDatabase, userid); string msg =prnHelp.OpenBTAndPrintTest(mmSocket, mmDevice); Toast.MakeText (this, msg, ToastLength.Long).Show (); } }
void StartPrint(CNNote inv,CNNoteDtls[] list,int noofcopy ) { string userid = ((GlobalvarsApp)this.Application).USERID_CODE; PrintInvHelper prnHelp = new PrintInvHelper (pathToDatabase, userid,compCode,branchCode); string msg =prnHelp.OpenBTAndPrintCN (mmSocket, mmDevice, inv, list,noofcopy); Toast.MakeText (this, msg, ToastLength.Long).Show (); }
void PrintInvSumm(DateTime printdate1,DateTime printdate2) { mmDevice = null; findBTPrinter (); if (mmDevice == null) return; string userid = ((GlobalvarsApp)this.Application).USERID_CODE; PrintInvHelper prnHelp = new PrintInvHelper (pathToDatabase, userid); string msg = prnHelp.PrintInvSumm(mmSocket, mmDevice,printdate1,printdate2); Toast.MakeText (this, msg, ToastLength.Long).Show (); }
void StartPrint(Invoice inv,InvoiceDtls[] list,int noofcopy ) { string userid = ((GlobalvarsApp)this.Application).USERID_CODE; PrintInvHelper prnHelp = new PrintInvHelper (pathToDatabase, userid); string msg =prnHelp.OpenBTAndPrint (mmSocket, mmDevice, inv, list,noofcopy); Toast.MakeText (this, msg, ToastLength.Long).Show (); //AlertShow (msg); }