Exemplo n.º 1
0
        private void AddButton_Click(object sender, RoutedEventArgs e)
        {
            Comics.Result  comic    = (Comics.Result)listBox.SelectedItem;
            GoogleCalender calender = new GoogleCalender();

            calender.CreateEvent(listBox.Text, comic.dates[0].date);
        }
 private void AddAllButton_Click(object sender, RoutedEventArgs e)
 {
     GoogleCalender calender = new GoogleCalender();
     foreach (Comics.Result comic in listBox.ItemsSource) {
         if (Convert.ToDateTime(comic.dates[0].date) > DateTime.Now){
             calender.CreateEvent(comic.title, comic.dates[0].date);
         }
     }
 }
Exemplo n.º 3
0
        private void AddAllButton_Click(object sender, RoutedEventArgs e)
        {
            GoogleCalender calender = new GoogleCalender();

            foreach (Comics.Result comic in listBox.ItemsSource)
            {
                if (Convert.ToDateTime(comic.dates[0].date) > DateTime.Now)
                {
                    calender.CreateEvent(comic.title, comic.dates[0].date);
                }
            }
        }
 private void AddButton_Click(object sender, RoutedEventArgs e)
 {
     Comics.Result comic = (Comics.Result)listBox.SelectedItem;
     GoogleCalender calender = new GoogleCalender();
     calender.CreateEvent(listBox.Text, comic.dates[0].date);
 }