Ejemplo n.º 1
0
 void MainView_Loaded(object sender, RoutedEventArgs e)
 {
     Config con = new Config();
     Sistema.DataContext = this;
     con.ShowDialog();
     dt = new DataTable();
     for (int i = 0; i < (con._num??0); i++)
         dt.Columns.Add("x" + (i + 1));
     dt.Columns.Add("_");
     Sistema.ItemsSource = dt.DefaultView;
 }
Ejemplo n.º 2
0
 private void Config_Click(object sender, RoutedEventArgs e)
 {
     Config con = new Config();
     con.ShowDialog();
     dt = new DataTable();
     for (int i = 0; i < (con._num ?? 0); i++)
         dt.Columns.Add("x" + (i + 1));
     dt.Columns.Add("_");
     Sistema.ItemsSource = dt.DefaultView;
 }