示例#1
0
 static public void RemoveMovieFormFromOpened(FormSingleMovie form)
 {
     if (openedMovieForms.ContainsKey(form.id))
     {
         openedMovieForms.Remove(form.id);
     }
 }
示例#2
0
        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);
        }