Example #1
0
        /// <summary>
        /// Shows the pop up.
        /// </summary>
        /// <author>
        /// Bryce McLane
        /// </author>
        /// <date>
        /// 11/28/2018
        /// </date>
        public async Task ShowPopUpView(string key)
        {
            if (_popUps.Count == 0)
            {
                return;
            }

            if (!_popUps.ContainsKey(key))
            {
                return;
            }

            _currentlyOpen = _popUps[key];

            _currentlyOpen.IsVisible = true;
            _currentlyOpen.Opacity   = 1;
            PopUpOpen = true;
            PopUpOpened?.Invoke(this, System.EventArgs.Empty);
        }
Example #2
0
 public void Open()
 {
     popUpCanvas.SetActive(true);
     PopUpOpened?.Invoke();
 }