public BootstrapperBase(IInteractionProvider interactionProvider, bool autoconfigureWindow = true)
 {
     InteractionRequest.InteractionRequestAdded += (sender, args) => interactionProvider.RegisterInteraction(args.AddedInteraction);
     // ReSharper disable once PossibleNullReferenceException
     if (autoconfigureWindow)
     {
         // if the code fails here, the set window has no public constructor with no parameters. Consider setting autoconfigureWindow to false
         window = typeof(TSTartupWindow).GetConstructor(new Type[] { }).Invoke(null) as TSTartupWindow;
     }
 }
Пример #2
0
 private void InteractionRequest_InteractionRequestAdded(object sender, InteractionRequestAddedEventArgs e)
 {
     interactionProvider.RegisterInteraction(e.AddedInteraction);
 }