private void grid_LoadingRow(object sender, DataGridRowEventArgs e) { Note_Parent note = (Note_Parent)e.Row.DataContext; if (note.state == "Не выполнено") { e.Row.Foreground = new SolidColorBrush(Colors.Red); } }
} // delete some note private void dataGrid_MouseUp(object sender, MouseButtonEventArgs e) { Reset(); Note_Parent note1 = dataGrid.SelectedItem as Note_Parent; if (note1 == null) { return; } Note note2 = new Orginizer.Note(); note2.date = note1.date; note2.state = note1.state; note2.text = note1.text; note2.login = AuthorizationWindow.user.name; note2.notify = note1.notify; Selected_Note = note2; }// ????????????????????????????????What is it??????????