private void ColorCommit_Click(object sender, RoutedEventArgs args) { var task = (ITask)DialogTaskListView.SelectedItem; Color color = TaskColorPicker.Color; this.SelectedTaskColorBrush = new SolidColorBrush(color); App.Settings.SetTaskColor(task, color); App.Events.Raise(new TaskColorChangedEventArgs(task, color)); TaskColorFlyout.Hide(); }
// Event Handlers private void ColorCancel_Click(object sender, RoutedEventArgs args) { TaskColorFlyout.Hide(); }