Exemple #1
0
        /// <summary>
        ///     Shows a dialogScreen on the screen.
        /// </summary>
        /// <param name="dialogScreen"></param>
        public static void Show(DialogScreen dialogScreen)
        {
            if (dialogScreen.Parent != null)
            {
                throw new ArgumentException("Dialog must not have a parent!");
            }

            DialogsToBeAdded.Add(dialogScreen);
        }
Exemple #2
0
        /// <summary>
        ///     Dismisses a specific dialog screen
        /// </summary>
        /// <param name="screen"></param>
        public static void Dismiss(DialogScreen screen)
        {
            if (!Dialogs.Contains(screen))
            {
                return;
            }

            DialogsToBeRemoved = new List <DialogScreen>()
            {
                screen
            };
        }