Ejemplo n.º 1
0
 private void CSVSettingsSaveButton_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         SoldierClass.WriteCSVFile(settingList);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message.ToString(), "Error");
     }
     settingList = SoldierClass.LoadSettingsCsv("settings.csv");
     //ClassListBox.Items.Refresh();
     Xcom2LocationTextBox.Text = settingList[0].ToString();
 }
Ejemplo n.º 2
0
 private void CSVClassSaveButton_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         SoldierClass.WriteCSVFile(classList);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message.ToString(), "Error");
     }
     classList = SoldierClass.LoadSettingsCsv("soldierClass.csv");
     ClassListBox.ItemsSource = classList;
     ClassListBox.Items.Refresh();
 }