Example #1
0
        private void OK_Click(object sender, EventArgs e)
        {
            CurrentAccount account = (CurrentAccount)this.Owner;

            account.UpdateAll();
            Close();
        }
Example #2
0
        private void carBooking_FormClosing(object sender, FormClosingEventArgs e)
        {
            CurrentAccount account = (CurrentAccount)this.Owner;

            account.UpdateAll();
            account.Show();
        }