Пример #1
0
        /// <summary>
        /// Hides the pop up.
        /// </summary>
        /// <author>
        /// Aaron Coppock
        /// </author>
        /// <date>
        /// 11/28/2018
        /// </date>
        public async Task HidePopUpView()
        {
            if (_currentlyOpen == null)
            {
                return;
            }

            try
            {
                _currentlyOpen.Opacity   = 0;
                _currentlyOpen.IsVisible = false;
                PopUpOpen = false;
                PopUpClosed?.Invoke(this, System.EventArgs.Empty);
                _currentlyOpen = null;
            }
            catch
            {
                // Swalllow
            }
        }
Пример #2
0
 public void Close()
 {
     popUpCanvas.SetActive(false);
     PopUpClosed?.Invoke();
 }