Ejemplo n.º 1
0
 public void SetNotificationShown(bool shown)
 {
     if (notification.Shown != shown)
     {
         if (!notification.Shown)
         {
             notification.Show();
         }
         else
         {
             notification.Hide();
         }
     }
 }
Ejemplo n.º 2
0
        public void SetNotificationShown(bool shown)
        {
            if (notification.Shown != shown)
            {
                if (!notification.Shown)
                {
                    notification.Show();
                }
                else
                {
                    notification.Hide();
                }
            }

            background.color = shown ? config.DefaultColor : config.LockedColor;
        }
        public void CloseRequest()
        {
            // We Acknowledge every notification otherwise it would bother without end

            for (int i = 0; i < BuyNotifications.Count; i++)
            {
                NotificationModel n = BuyNotifications[i];
                n.TimeoutMinutes = 10;
                TimeoutRule(n);
            }

            //for (int i = 0; i < SellNotifications.Count; i++)
            //{
            //    NotificationModel n = SellNotifications[i];
            //    n.TimeoutMinutes = 5;
            //    TimeoutRule(n);
            //}

            BuyNotifications.Clear();
            //SellNotifications.Clear();

            NotificationView.Hide();
        }