public bool Open(string drawerCommand, string port, PosPrint printer) { this._port = port; this._printer = printer; this._instruction = this.GetBytes(drawerCommand); if ((this._port == "NONE") || (this._instruction == null)) { return(false); } return(true); }
public void Dispose() { this._port = "NONE"; this._instruction = null; this._printer = null; }