private void button2_Click(object sender, EventArgs e)
        {
            var receipts = new receipts();

            receipts.Closed += (s, args) => this.Close();
            receipts.Show();
        }
        private void button3_Click_1(object sender, EventArgs e)
        {
            if (string.IsNullOrWhiteSpace(textBox7.Text))
            {
                MessageBox.Show("Input Name And Ic Number");
            }

            else if (textBox6.Text == null)
            {
                MessageBox.Show("Input Name And Ic Number");
            }

            else if (textBox7.Text == null)
            {
                MessageBox.Show("Input Name And Ic Number");
            }

            else
            {
                string icnum;
                icnum      = (textBox7.Text);
                icnum_pass = icnum;
                filename   = @".\" + textBox7.Text + ".txt";
                if (File.Exists(filename) || !File.Exists(filename))
                {
                    File.Create(filename).Dispose();

                    File.WriteAllText(filename, "Name : " + textBox6.Text + Environment.NewLine + "Total price Per Night : " + textBox1.Text + Environment.NewLine + "Final Price With Tax: " + textBox3.Text + Environment.NewLine + "Total Grand Price:" + textBox5.Text);
                    this.Hide();

                    var receipts = new receipts();
                    receipts.Closed += (s, args) => this.Close();
                    receipts.Show();
                }
            }
        }