Example #1
0
        public void CloseVertical()
        {
            if (State != OpenableState.Opened)
            {
                return;
            }
            Close();

            if (List.IsOpen)
            {
                List.Close(() =>
                {
                    NameButtonField.ReverseAnimation(() =>
                    {
                        LabelChangeAnimation.Stop();
                        LabelEnterAnimation.Stop();
                        LabelChangeAnimation.Reverse(Closed);
                    });
                });
            }
            else
            {
                NameButtonField.ReverseAnimation(() =>
                {
                    LabelChangeAnimation.Stop();
                    LabelEnterAnimation.Stop();
                    LabelChangeAnimation.Reverse(Closed);
                });
            }
        }
Example #2
0
        public void CloseHorizontal()
        {
            Close();

            if (List.IsOpen)
            {
                List.Close(() =>
                {
                    NameButtonField.ReverseAnimation(() =>
                    {
                        LabelChangeAnimation.Stop();
                        LabelEnterAnimation.Stop();
                        LabelEnterAnimation.Reverse(Closed);
                    });
                });
            }
            else
            {
                NameButtonField.ReverseAnimation(() =>
                {
                    LabelChangeAnimation.Stop();
                    LabelEnterAnimation.Stop();
                    LabelEnterAnimation.Reverse(Closed);
                });
            }

            ClearLabel();
        }