Exemplo n.º 1
0
        private void InsertAsTikzStyle_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.HandleInsertAsTikzStyleClick(r);
            }
        }
Exemplo n.º 2
0
 void o_InsertAsStyle(object sender, EventArgs e)
 {
     TheModel.HandleInsertAsTikzStyleClick((sender as SnippetEntry).TheSnippet.Row);
 }