Linercharges werden nun in textdatei gespeichert
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user