static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); var personManager = new PersonManager(); var movieManager = new MovieManager(personManager); Application.Run(new MainForm(movieManager, personManager)); }
public MainForm(MovieManager movieManager, PersonManager personManager) { //scenario 3 this.movieManager = movieManager; this.personManager = personManager; InitializeComponent(); }
public AddMovieForm(MovieManager manager, PersonManager personManager) { //scenario 3 this.movieManager = manager; this.personManager = personManager; //personManager.Reset(); InitializeComponent(); }
public AddMovieForm(MovieManager manager) { //scenario 3 this.movieManager = manager; //not-good-but-working personManager = new PersonManager(); personManager.Reset(); InitializeComponent(); }
public MovieManager(PersonManager personManager) { this.personManager = personManager; }
public AddPersonForm(PersonManager personManager) { this.personManager = personManager; InitializeComponent(); }