예제 #1
0
 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();
         }
     }
 }
예제 #2
0
        private void button_mdel_genes_Click(object sender, RoutedEventArgs e)
        {
            GeneWindow geneWnd = new GeneWindow(_monster.genes);

            geneWnd.Show();
        }