예제 #1
0
        private void view_OptionsClick(object sender, EventArgs args)
        {
            if (optionsPresenter != null)
            {
                optionsPresenter.BringToFront();
                return;
            }

            optionsPresenter         = injector.Create <IOptionsPresenter>();
            optionsPresenter.Closed += optionsPresenter_Closed;
            optionsPresenter.Run();
        }
예제 #2
0
 public T Create <T>()
     where T : IInjectable, new()
 => _IInjector.Create <T>();