private void btnOpenTill_Click(object sender, EventArgs e) { CoffeeShopPOS coffeeShopPOS = new CoffeeShopPOS(); this.Hide(); coffeeShopPOS.Show(); }
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(); }