예제 #1
0
 private void Settings_Loaded(object sender, RoutedEventArgs e)
 {
     //string folder = Directory.GetParent(Directory.GetCurrentDirectory()).Parent.FullName;
     classList   = SoldierClass.LoadSettingsCsv("soldierClass.csv");
     settingList = SoldierClass.LoadSettingsCsv("settings.csv");
     ClassListBox.ItemsSource  = (classList);
     Xcom2LocationTextBox.Text = settingList[0].ToString();
 }
예제 #2
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();
 }
예제 #3
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();
 }