Пример #1
0
 public ActorsDirectorsForm(ActorDirectorGetter actorDirectorGetter,
                            MovieGetter movieGetter)
 {
     Cursor = Cursors.WaitCursor;
     InitializeComponent();
     _actorDirectorAdder  = new ActorDirectorAdder();
     _actorDirectorGetter = actorDirectorGetter;
     _movieGetter         = movieGetter;
     RefreshData();
     Cursor = Cursors.Default;
 }
Пример #2
0
        public AddUpdateActorDirectorForm(ActorDirector actorDirector,
                                          ActorDirectorGetter actorDirectorGetter, ActorDirectorAdder actorDirectorAdder,
                                          MovieGetter movieGetter)
        {
            InitializeComponent();
            _actorDirector        = actorDirector;
            _actorDirectorGetter  = actorDirectorGetter;
            _actorDirectorAdder   = actorDirectorAdder;
            _actorDirectorUpdater = new ActorDirectorUpdater();
            _movieGetter          = movieGetter;
            actorDirectorBindingSource.DataSource = _actorDirector;

            if (_actorDirector.IsNew)
            {
                base.Text = "Add Actor / Director";
            }
            else
            {
                base.Text = _actorDirector.Name;
            }
        }