Пример #1
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     var personManager = new PersonManager();
     var movieManager = new MovieManager(personManager);
     Application.Run(new MainForm(movieManager, personManager));
 }
Пример #2
0
        public MainForm(MovieManager movieManager, PersonManager personManager)
        {
            //scenario 3
            this.movieManager = movieManager;
            this.personManager = personManager;

            InitializeComponent();
        }
Пример #3
0
        public AddMovieForm(MovieManager manager, PersonManager personManager)
        {
            //scenario 3
            this.movieManager = manager;
            this.personManager = personManager;

            //personManager.Reset();

            InitializeComponent();
        }
Пример #4
0
        public AddMovieForm(MovieManager manager)
        {
            //scenario 3
            this.movieManager = manager;

            //not-good-but-working
            personManager = new PersonManager();
            personManager.Reset();

            InitializeComponent();
        }