private void lstSnippets_MouseDoubleClick(object sender, MouseButtonEventArgs e) { if (lstSnippets.SelectedItem != null) { SnippetsDataSet.SnippetsTableRow r = ((DataRowView)lstSnippets.SelectedItem).Row as SnippetsDataSet.SnippetsTableRow; TheModel.HandleMouseDoubleClick(r); } }
void o_MouseDoubleClick(object sender, EventArgs e) { TheModel.HandleMouseDoubleClick((sender as SnippetEntry).TheSnippet.Row); }