private void view_OptionsClick(object sender, EventArgs args) { if (optionsPresenter != null) { optionsPresenter.BringToFront(); return; } optionsPresenter = injector.Create <IOptionsPresenter>(); optionsPresenter.Closed += optionsPresenter_Closed; optionsPresenter.Run(); }
public T Create <T>() where T : IInjectable, new() => _IInjector.Create <T>();