예제 #1
0
        private void btnOpenTill_Click(object sender, EventArgs e)
        {
            CoffeeShopPOS coffeeShopPOS = new CoffeeShopPOS();

            this.Hide();
            coffeeShopPOS.Show();
        }
예제 #2
0
        private void PrintReceipt()
        {
            PrintDialog printDialog = new PrintDialog();

            PrintDocument printDocument = new PrintDocument();

            printDialog.Document = printDocument;

            printDocument.PrintPage += PrintDocument_PrintPage;

            DialogResult result = printDialog.ShowDialog();

            if (result == DialogResult.OK)
            {
                printDocument.Print();
            }

            CoffeeShopPOS coffeeShopPOS = new CoffeeShopPOS();

            Form1.ActiveForm.Close();
            coffeeShopPOS.Show();
        }