Ejemplo n.º 1
0
        public void button6_Click(object sender, EventArgs e)
        {
            string refundInput = RefundBox.Text;

            try
            {
                int checkInput = Int32.Parse(refundInput);
                be.Refund(checkInput);
                MessageBox.Show("Refunded ID NR: " + checkInput);
            }
            catch
            {
                MessageBox.Show("Only ID number please!");
            }
        }
Ejemplo n.º 2
0
        private void button6_Click(object sender, EventArgs e)
        {
            string path        = @"C:\Users\cingo\source\repos\LawliBread\TicketSales\SalesList.txt";
            string refundInput = RefundBox.Text;

            try
            {
                int checkInput = Int32.Parse(refundInput);
                be.Refund(checkInput);
                //string[] lines = System.IO.File.ReadAllLines(path);
                //StreamWriter sw = new StreamWriter(path);
                //string overwrite = "";
                MessageBox.Show("Refunded ID nr:" + checkInput);
            }
            catch
            {
                MessageBox.Show("Only ID number please!");
            }
        }