Exemplo n.º 1
0
        private void ListBoxSelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            ListBoxItem item = ListBox.SelectedItem as ListBoxItem;

            Home.Background = new SolidColorBrush(Colors.Transparent);
            MyFrame.BackStack.Clear();
            MyFrame.Navigate(typeof(HomePage), this, new SuppressNavigationTransitionInfo());
            if (Home.IsSelected)
            {
                HomeEvent?.Invoke();
            }

            else if (Today.IsSelected)
            {
                TodayEvent?.Invoke();
            }

            else if (Upcoming.IsSelected)
            {
                UpcomingEvent?.Invoke();
            }
            else if (Delayed.IsSelected)
            {
                DelayedEvent?.Invoke();
            }
            else if (AssignedToOthers.IsSelected)
            {
                AssignedToOthersEvent?.Invoke();
            }
        }
Exemplo n.º 2
0
 public void init(TodayEvent t_event)
 {
     base.init();
     today_event = t_event;
     transform.SetParent(Main.main.today_data.transform);
     transform.localScale    = Vector3.one;
     transform.localPosition = new Vector3(transform.localPosition.x, transform.localPosition.y, 0);
 }
Exemplo n.º 3
0
    public int CompareTo(TodayEvent other)
    {
        // A null value means that this object is greater.
        if (other == null)
        {
            return(1);
        }

        else
        {
            return(DateTime.Compare(_start, other._start));
        }
    }