Пример #1
0
        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();
        }
Пример #2
0
 // Event Handlers
 private void ColorCancel_Click(object sender, RoutedEventArgs args)
 {
     TaskColorFlyout.Hide();
 }