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(); }
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); } }
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); }
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 { } } }