private void BtnConfigSave_Click(object sender, RoutedEventArgs e) { configuration.ProjectName = LblSelectedProject.Content.ToString(); configuration.CalibrationExpiration = int.Parse(Txt_CalibrationExpiration.Text); configuration.QAInlineEnabled = int.Parse(QAInlineNth.Text); configuration.LogNthDevice = int.Parse(Txt_LogNthDevice.Text); configuration.NumberOfSites = int.Parse(TxtBox_Sites.Text); if ((bool)ContinueOnFail.IsChecked) { configuration.ContinueOnFail = true; } else { configuration.ContinueOnFail = false; } if ((bool)Alarm_True.IsChecked) { configuration.StopOnAlarm = true; } else { configuration.StopOnAlarm = false; } if ((bool)Chk_GoldUnit.IsChecked) { configuration.GoldUnitEnabled = true; } else { configuration.GoldUnitEnabled = false; } if ((bool)Chk_QAOffline.IsChecked) { configuration.QAOfflineEnabled = true; } else { configuration.QAOfflineEnabled = false; } CreateProject.CreateConfigFile(configuration); // string config = @"c:\MerlinTest\Project\" + LblSelectedProject.Content + @"\Config.csv"; //using (System.IO.str = File.AppendText(config)) //{ // writer.Write(",Test"); //} ////////using (System.IO.StreamWriter writer = File.AppendText(config)) ////////{ //////// for (int x = 1; x <= sitecount; x++) //////// { //////// writer.WriteLine(); //////// writer.Write("Site " + x); //////// } ////////} }