static public void RemoveMovieFormFromOpened(FormSingleMovie form) { if (openedMovieForms.ContainsKey(form.id)) { openedMovieForms.Remove(form.id); } }
static public FormSingleMovie OpenMovieForm(int id) { FormSingleMovie movieForm; if (openedMovieForms.ContainsKey(id)) { movieForm = openedMovieForms[id]; movieForm.LoadData(); movieForm.Focus(); } else { movieForm = new FormSingleMovie(id); openedMovieForms.Add(id, movieForm); movieForm.Show(); } return(movieForm); }