Пример #1
0
        /// <summary>
        /// Shows the alert
        /// </summary>
        /// <param name="title"></param>
        /// <param name="message"></param>
        /// <param name="callback"></param>
        /// <param name="flags"></param>
        public static void Show(string title, string message, Action <string> callback, AlertButtonFlag flags)
        {
            //InitializeInstance();
            //Instance.Show();

            AlertInstance instance = new AlertInstance
            {
                Callback = callback,
                Title    = title,
                Message  = message,
                Flags    = flags
            };

            //instance.Callback = callback;
            //instance.Message = message;
            //instance.Title = title;
            //instance.ProcessFlags(flags);

            PopupManager.Instance.AddPopup(instance);
            //PopupManager.Instance.CenterPopUp(instance);
            Popups.Add(instance);

            //_instance.SetFocus();

            //Instance.DoResize(SystemManager.Instance.ScreenSize);

            //Instance.ValidateNow();
        }
Пример #2
0
        /// <summary>
        /// Shows the alert
        /// </summary>
        /// <param name="title"></param>
        /// <param name="message"></param>
        /// <param name="flags"></param>
        /// <param name="callback"></param>
        /// <param name="options"></param>
        public static void Show(string title, string message, AlertButtonFlag flags, Action <string> callback, params AlertOption[] options)
        {
            AlertInstance instance = new AlertInstance {
                Message = message, Title = title, Flags = flags, Callback = callback
            };

            instance.ApplyOptions(options);
            PopupManager.Instance.AddPopup(instance, true);
            Popups.Add(instance);
        }
Пример #3
0
        /// <summary>
        /// Shows the alert
        /// </summary>
        /// <param name="callback"></param>
        /// <param name="options"></param>
        public static void Show(Action <string> callback, params AlertOption[] options)
        {
            AlertInstance instance = new AlertInstance {
                Callback = callback
            };

            instance.ApplyOptions(options);
            PopupManager.Instance.AddPopup(instance, true);
            Popups.Add(instance);
        }
Пример #4
0
 /// <summary>
 /// Shows the alert
 /// </summary>
 /// <param name="title"></param>
 /// <param name="message"></param>
 /// <param name="flags"></param>
 /// <param name="callback"></param>
 /// <param name="options"></param>
 public static void Show(string title, string message, AlertButtonFlag flags, Action<string> callback, params AlertOption[] options)
 {
     AlertInstance instance = new AlertInstance { Message = message, Title = title, Flags = flags, Callback = callback };
     instance.ApplyOptions(options);
     PopupManager.Instance.AddPopup(instance, true);
     Popups.Add(instance);
 }
Пример #5
0
 /// <summary>
 /// Shows the alert
 /// </summary>
 /// <param name="callback"></param>
 /// <param name="options"></param>
 public static void Show(Action<string> callback, params AlertOption[] options)
 {
     AlertInstance instance = new AlertInstance {Callback = callback};
     instance.ApplyOptions(options);
     PopupManager.Instance.AddPopup(instance, true);
     Popups.Add(instance);
 }
Пример #6
0
        /// <summary>
        /// Shows the alert
        /// </summary>
        /// <param name="title"></param>
        /// <param name="message"></param>
        /// <param name="callback"></param>
        /// <param name="flags"></param>
        public static void Show(string title, string message, Action<string> callback, AlertButtonFlag flags)
        {
            //InitializeInstance();
            //Instance.Show();

            AlertInstance instance = new AlertInstance
                                         {
                                             Callback = callback,
                                             Title = title,
                                             Message = message,
                                             Flags = flags
                                         };

            //instance.Callback = callback;
            //instance.Message = message;
            //instance.Title = title;
            //instance.ProcessFlags(flags);

            PopupManager.Instance.AddPopup(instance);
            //PopupManager.Instance.CenterPopUp(instance);
            Popups.Add(instance);
            
            //_instance.SetFocus();

            //Instance.DoResize(SystemManager.Instance.ScreenSize);

            //Instance.ValidateNow();
        }