예제 #1
0
 protected override void OnPaint(PaintEventArgs e)
 {
     if (!fImageLoaded)
     {
         fImageLoaded = true;
         if (imageReservationKey != null)
         {
             QTUtility.LoadReservedImage(imageReservationKey);
         }
     }
     if (!fVirtualQueried)
     {
         fVirtualQueried = true;
         if (QueryVirtualMenu != null)
         {
             QueryVirtualMenu(this, EventArgs.Empty);
             QueryVirtualMenu = null;
         }
     }
     base.OnPaint(e);
 }