public EditableSelection( ChoiceScorer.Selection selection) { Selection = selection; selectionData.Choice = Selection.Choice; selectionData.Setting = Selection.Setting; }
private void Selections_BeginningEdit(object sender, DataGridBeginningEditEventArgs e) { DataGrid dg = sender as DataGrid; ChoiceScorer.Selection selection = e.Row.Item as ChoiceScorer.Selection; int index = dg.Items.IndexOf(selection); }
private void Selections_SelectionChanged(object sender, SelectionChangedEventArgs e) { DataGrid dg = sender as DataGrid; if (dg.SelectedItems.Count == 1) { ChoiceScorer.Selection selection = dg.SelectedItems[0] as ChoiceScorer.Selection; } else { } }
public EditableSelection() { Selection = new ChoiceScorer.Selection("", 0.0); selectionData.Choice = ""; selectionData.Setting = 0.0; }