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(); } }
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)); }