Example #1
0
 public ITransition Dismiss(IWindow window)
 {
     HideTransition transition = new HideTransition(this, (Window)window, true);
     GetTransitionExecutor().Execute(transition);
     return transition.OnStateChanged((w, state) =>
         {
             Debug.LogFormat("Dismiss Window:{0} State:{1}", w.Name, state);
             /* Control the layer of the window */
             if (state == WindowState.INVISIBLE)
                 this.MoveToLast(w);
         });
 }
Example #2
0
        public ITransition Dismiss(IWindow window)
        {
            HideTransition transition = new HideTransition(this, (Window)window, true);

            GetTransitionExecutor().Execute(transition);
            return(transition.OnStateChanged((w, state) =>
            {
                /* Control the layer of the window */
                if (state == WindowState.INVISIBLE)
                {
                    this.MoveToLast(w);
                }
            }));
        }