private void btnMyCars_Click(object sender, EventArgs e) { using (show_cars newWindow = new show_cars(currentUserID)) { this.Visible = false; newWindow.ShowDialog(); this.Close(); } }
private void btn_back_Click(object sender, EventArgs e) { using (show_cars newWindow = new show_cars(idUser)) { this.Visible = false; newWindow.ShowDialog(); this.Close(); } }