예제 #1
0
 internal static void RemoveShim(ApplicationShimBase shim)
 {
     if (s_ActiveApplicationShim == shim)
     {
         s_ActiveApplicationShim = null;
         ActiveShimChanged?.Invoke();
     }
 }
예제 #2
0
 internal static void RemoveShim(ApplicationShimBase shim)
 {
     if (s_ActiveApplicationShim.Contains(shim))
     {
         s_ActiveApplicationShim.Remove(shim);
         ActiveShimChanged?.Invoke();
     }
 }
예제 #3
0
        internal static void UseShim(ApplicationShimBase shim)
        {
            ShimManager.s_ActiveApplicationShim = shim;
            Action expr_0C = ShimManager.ActiveShimChanged;

            if (expr_0C != null)
            {
                expr_0C();
            }
        }
예제 #4
0
        internal static void UseShim(ApplicationShimBase shim)
        {
            if (s_ActiveApplicationShim.Last() == shim)
            {
                return;
            }

            RemoveShim(shim);
            s_ActiveApplicationShim.Add(shim);
            ActiveShimChanged?.Invoke();
        }
예제 #5
0
        internal static void RemoveShim(ApplicationShimBase shim)
        {
            bool flag = ShimManager.s_ActiveApplicationShim == shim;

            if (flag)
            {
                ShimManager.s_ActiveApplicationShim = null;
                Action expr_19 = ShimManager.ActiveShimChanged;
                if (expr_19 != null)
                {
                    expr_19();
                }
            }
        }
예제 #6
0
 internal static bool IsShimActive(ApplicationShimBase shim)
 {
     return(s_ActiveApplicationShim == shim);
 }
예제 #7
0
 internal static void UseShim(ApplicationShimBase shim)
 {
     s_ActiveApplicationShim = shim;
     ActiveShimChanged?.Invoke();
 }