Close() public static method

关闭一个模态层
public static Close ( int index ) : void
index int
return void
示例#1
0
    /// <summary>
    /// Hide DialogBox
    /// </summary>
    public void Hide()
    {
        if (modalKey != null)
        {
            ModleLayer.Close((int)modalKey);
        }

        Return();
    }
示例#2
0
    public void Hide()
    {
        if (modalKey != null)
        {
            ModleLayer.Close((int)modalKey);
        }

        AnimateOut();
    }
示例#3
0
 void AnimateOut()
 {
     CallMethod("OnAnimateOutEnd");
     OnAnimateOutEnd();
     Return();
     if (modalKey != null)
     {
         ModleLayer.Close((int)modalKey);
     }
 }
示例#4
0
 public static void Hide()
 {
     if (layer)
     {
         //rotator.Pause();
         Templates.ReturnCache(layer);
         layer = null;
         if (modalKey != null)
         {
             ModleLayer.Close((int)modalKey);
         }
     }
     isShow = false;
 }