Linercharges werden nun in textdatei gespeichert

This commit is contained in:
HuskyTeufel
2020-07-28 11:38:49 +02:00
parent 57b3846840
commit 39bae86ddd
2 changed files with 47 additions and 4 deletions

View File

@@ -271,8 +271,30 @@ namespace SanSystem
private void VerbrauchToolStripMenuItem_Click(object sender, EventArgs e)
{
FrmGetDataFromBluelight frmGetDataFromBluelight = new FrmGetDataFromBluelight();
frmGetDataFromBluelight.ShowDialog();
/*FrmGetDataFromBluelight frmGetDataFromBluelight = new FrmGetDataFromBluelight();
frmGetDataFromBluelight.ShowDialog();*/
Dictionary<string,List<string>> daten = KlassenBIB.LinerChargen.GenLinerChargenOverview(Datenbank.Instance.TeufelDB.Projekte);
List<string> content = new List<string>();
foreach (KeyValuePair<string, List<string>> x in daten)
{
content.Add(x.Key);
content.Add("================");
foreach(string values in x.Value)
{
content.Add(values);
}
content.Add("##############");
}
string[] datencontent = new string[content.Count];
for(int i = 0; i < content.Count; i++)
{
datencontent[i] = content[i];
}
File.WriteAllLines("linercharges.txt", datencontent);
}
}
}