private void Egg_grid_OnMouseDoubleClick(object sender, MouseButtonEventArgs e) { if (sender != null) { DataGridRow row = sender as DataGridRow; if (row != null) { GeneWindow geneWnd = new GeneWindow((row.DataContext as Egg).genes); geneWnd.Show(); } } }
private void button_mdel_genes_Click(object sender, RoutedEventArgs e) { GeneWindow geneWnd = new GeneWindow(_monster.genes); geneWnd.Show(); }