..
This commit is contained in:
@@ -68,7 +68,11 @@ namespace Project.Dialog
|
||||
{
|
||||
//right
|
||||
if (PUB.PrinterR.IsOpen)
|
||||
PUB.PrinterR.Print(this.richTextBox1.Text);
|
||||
{
|
||||
var prn = PUB.PrinterR.Print(this.richTextBox1.Text);
|
||||
if (prn.result == false) PUB.log.AddE(prn.errmessage);
|
||||
|
||||
}
|
||||
else PUB.log.AddAT("Printer R not connected");
|
||||
}
|
||||
|
||||
@@ -76,7 +80,10 @@ namespace Project.Dialog
|
||||
{
|
||||
//left
|
||||
if (PUB.PrinterL.IsOpen)
|
||||
PUB.PrinterL.Print(this.richTextBox1.Text);
|
||||
{
|
||||
var prn = PUB.PrinterL.Print(this.richTextBox1.Text);
|
||||
if (prn.result == false) PUB.log.AddE(prn.errmessage);
|
||||
}
|
||||
else
|
||||
PUB.log.AddAT("Printer L not connected");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user