예제 #1
0
        private void guestsInHouseGrid_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            string       dataValue = guestsInHouseGrid.Rows[e.RowIndex].Cells[7].Value.ToString();
            GuestProfile gp        = new GuestProfile(dataValue);

            gp.ShowDialog();
            this.Close();
        }
예제 #2
0
        private void bbutton_Click(object sender, EventArgs e)
        {
            string resID = gResNumber.Text;

            this.Hide();
            GuestProfile gp = new GuestProfile(resID);

            gp.ShowDialog();
            this.Close();
        }
예제 #3
0
        private void deprturesGrid_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            string dataValue = deprturesGrid.Rows[e.RowIndex].Cells[7].Value.ToString();

            this.Hide();
            GuestProfile gp = new GuestProfile(dataValue);

            gp.ShowDialog();
            this.Close();
        }
예제 #4
0
        private void saveAndProceed_Click(object sender, EventArgs e)
        {
            con.Open();
            string     query = "update GuestProfile set Payment='" + gTotal.Text + "' where resNumber ='" + gResNumber.Text + "' ";
            SqlCommand cmd   = new SqlCommand(query, con);

            cmd.ExecuteReader();
            MessageBox.Show("Payment Saved");
            con.Close();
            string resID = gResNumber.Text;

            this.Hide();
            GuestProfile gp = new GuestProfile(resID);

            gp.ShowDialog();
            this.Close();
        }