Exemple #1
0
 /* selected event */
 private void Item_Selected(object sender, RoutedEventArgs e)
 {
     if (sender is ListBoxItem)
     {
         ListBoxItem l = sender as ListBoxItem;
         if (l != null)
         {
             ListItemInfo lio = new ListItemInfo(l, (l.Parent as ListBox).GetDateTime(sunday));
             lio.Owner = this;
             lio.Show();
             lio.Closing += Lio_Closing;
         }
     }
 }
Exemple #2
0
        //display result
        private void ShowTask(Entry e)
        {
            DateTime date = DateTime.Now.Date;

            while ((e.AssignToDate > date) || (e.HasDeletedDate(date) || e.HasCompletedDate(date)))
            {
                date = date.AddDays(1);
            }

            ListItemInfo listItemInfo = new ListItemInfo(e, date);

            listItemInfo.Owner = this;
            listItemInfo.Show();
        }