Example #1
0
        private void UseStyleButton_Click(object sender, RoutedEventArgs e)
        {
            // find row corresponding to clicked button
            object curItem = ((ListBoxItem)lstSnippets.ContainerFromElement((Button)sender)).Content;

            if (curItem != null)
            {
                SnippetsDataSet.SnippetsTableRow r = (curItem as DataRowView).Row as SnippetsDataSet.SnippetsTableRow;
                TheModel.HandleUseStyleButtonClick(r);
            }
        }
Example #2
0
 void o_UseStyle(object sender, EventArgs e)
 {
     TheModel.HandleUseStyleButtonClick((sender as SnippetEntry).TheSnippet.Row);
 }