Esempio n. 1
0
 private void Update_Click(object sender, RoutedEventArgs e)
 {
     mMyListEveryDay.Clear();
     MyListEveryDay.Clear();
     mMyListReminder.Clear();
     MyListReminder.Clear();
     mMyListTask.Clear();
     MyListTask.Clear();
     mMyChild.Clear();
     MyListChild.Clear();
     Child();
 }
Esempio n. 2
0
 private void date_DateChanged(object sender, DatePickerValueChangedEventArgs e)
 {
     dt = (sender as DatePicker).Date.Date;
     mMyListEveryDay.Clear();
     MyListEveryDay.Clear();
     mMyListReminder.Clear();
     MyListReminder.Clear();
     mMyListTask.Clear();
     MyListTask.Clear();
     if (CurrentChild.id != 0)
     {
         DB(dt);
     }
 }
Esempio n. 3
0
        private void ListView_SelectionChanged_3(object sender, SelectionChangedEventArgs e)
        {
            mMyListEveryDay.Clear();
            MyListEveryDay.Clear();
            mMyListReminder.Clear();
            MyListReminder.Clear();
            mMyListTask.Clear();
            MyListTask.Clear();

            var current = (sender as ListBox).SelectedValue as Childs;

            if (current != null)
            {
                CurrentChild.id = current.id;
                WorkDB db = new WorkDB();
                childName.Text = db.SelectChildName(CurrentChild.id).name;
            }
            DB(dt);
        }
Esempio n. 4
0
 private void CommandInvokedHandler(IUICommand command)
 {
     if (command.Label.Equals("Да"))
     {
         try
         {
             WorkDB   db    = new WorkDB();
             Children child = new Children();
             child = db.SelectChildName(CurrentChild.id);
             db.DeleteChildren(child);
             mMyListEveryDay.Clear();
             MyListEveryDay.Clear();
             mMyListReminder.Clear();
             MyListReminder.Clear();
             mMyListTask.Clear();
             MyListTask.Clear();
             mMyChild.Clear();
             MyListChild.Clear();
             Child();
         }
         catch { }
     }
 }