Exemplo n.º 1
0
        /* Next button click */
        private void button3_Click(object sender, EventArgs e)
        {
            if (bid < 0)
            {
                MessageBox.Show("No reservations has been made...");
                return;
            }

            string data = Database.get_Value("select cid from bookings where bid=" + bid.ToString() + ";");

            if (data == null)
            {
                return;
            }

            int cid = System.Int32.Parse(data);

            if (cid < 1)
            {
                return;
            }

            New_customer form = new New_customer(bid, cid, this);

            form.ShowDialog(this);

            if (done)
            {
                this.Close();
            }
        }
Exemplo n.º 2
0
 /* INIT */
 public Find_customer(New_customer form)
 {
     prevForm = form;
     InitializeComponent();
 }