Example #1
0
 public static bool UpdateWindowCover(WindowCover cover)
 {
     if (cover == null)
     {
         throw new ArgumentNullException("cover");
     }
     if (!cover.IsValid)
     {
         throw new ArgumentException("Window cover is not valid.", "cover");
     }
     Util.GetBPSOrException();
     return navigator_window_cover_update(cover.DangerousGetHandle()) == BPS.BPS_SUCCESS;
 }