Example #1
0
        private void getCashDrawerStatusButton_Click(object sender, EventArgs e)
        {
            // TODO: Add your control notification handler code here
            long lResult = LKPrint.DrawerSts();

            switch (lResult)
            {
            case LKPrint.LK_CD_STS_CLOSED:
                MessageBox.Show("Cash Drawer Closed", "Cash Drawer Status", MessageBoxButtons.OK);
                break;

            case LKPrint.LK_CD_STS_OPENED:
                MessageBox.Show("Cash Drawer Opened", "Cash Drawer Status", MessageBoxButtons.OK);
                break;
            }
        }