private void OK_Click(object sender, EventArgs e) { CurrentAccount account = (CurrentAccount)this.Owner; account.UpdateAll(); Close(); }
private void carBooking_FormClosing(object sender, FormClosingEventArgs e) { CurrentAccount account = (CurrentAccount)this.Owner; account.UpdateAll(); account.Show(); }