コード例 #1
0
 public static void SetJumpList(Application application, JumpList value)
 {
     Verify.IsNotNull <Application>(application, "application");
     lock (JumpList.s_lock)
     {
         JumpList jumpList;
         if (JumpList.s_applicationMap.TryGetValue(application, out jumpList) && jumpList != null)
         {
             jumpList._application = null;
         }
         JumpList.s_applicationMap[application] = value;
         if (value != null)
         {
             value._application = application;
         }
     }
     if (value != null)
     {
         value.ApplyFromApplication();
     }
 }