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;
 }
 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;
 }