예제 #1
0
 protected override void UnsubscribeParentEventsOverride()
 {
     if (childLocation != SplashScreenLocation.CenterScreen)
     {
         RenderingSubscriber.GetInstance(Parent.ManagedThreadId).Rendering -= OnParentRendering;
     }
 }
예제 #2
0
            public static RenderingSubscriber GetInstance(int threadId)
            {
                RenderingSubscriber result;

                if (!instances.TryGetValue(threadId, out result))
                {
                    result = new RenderingSubscriber();
                    instances.Add(threadId, result);
                }

                return(result);
            }