Merge branch 'ChargeEinbauOverview'

This commit is contained in:
HuskyTeufel
2020-07-28 11:39:09 +02:00
3 changed files with 66 additions and 2 deletions

View File

@@ -289,8 +289,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);
}
}
}