Exemple #1
0
 void OnEndLoadAuthors(Book book, IEnumerable <Author> bookAuthors, IEnumerable <Author> authors)
 {
     Ninject.Rebind <BookAuthorEditForm>().ToMethod(method => {
         return(new BookAuthorEditForm(book, authors)
         {
             Data = bookAuthors,
             Operation = EditFormOperation.Insert
         });
     });
     using (var form = Ninject.Get <BookAuthorEditForm>()) {
         form.ShowDialog();
     }
 }
Exemple #2
0
 public override void Activate()
 {
     base.Activate();
     Ninject.Rebind <BookEditForm>().ToMethod(method => new BookEditForm(Rubrics, Publishers));
 }
 public override void Activate()
 {
     base.Activate();
     Ninject.Rebind <RubricEditForm>().ToMethod(method => new RubricEditForm(LoadedRubrics));
 }
 public override void Activate()
 {
     base.Activate();
     Ninject.Rebind <RequestEditForm>().ToMethod(method => new RequestEditForm(Readers, Books));
 }