Exemplo n.º 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();
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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();
        }