diff --git a/PlanetoidDB/PlanetoidDBForm.cs b/PlanetoidDB/PlanetoidDBForm.cs index eb35874b..04b737a1 100644 --- a/PlanetoidDB/PlanetoidDBForm.cs +++ b/PlanetoidDB/PlanetoidDBForm.cs @@ -133,8 +133,8 @@ private void PlanetoidDBForm_Load(object sender, EventArgs e) { if (readLine != "") { - //arrDB.Add(readLine); - strIndex = readLine.Substring(0, 7); strIndex = strIndex.Trim(); + arrDB.Add(readLine); + /*strIndex = readLine.Substring(0, 7); strIndex = strIndex.Trim(); strMagAbs = readLine.Substring(8, 5); strMagAbs = strMagAbs.Trim(); if (strMagAbs == "") doubleMagAbs = 0; else doubleMagAbs = Convert.ToDouble(strMagAbs); strSlopeParam = readLine.Substring(14, 5); strSlopeParam = strSlopeParam.Trim(); @@ -187,17 +187,14 @@ private void PlanetoidDBForm_Load(object sender, EventArgs e) arrComputerName.Add(strComputerName); arrFlags.Add(strFlags); arrDesgnName.Add(strDesgnName); - arrObsLastDate.Add(doubleObsLastDate); + arrObsLastDate.Add(doubleObsLastDate);*/ } } } sr.Close(); - formSplashScreen.Close(); - - - /*for (int i = 0; i < arrDB.Count; i++) + for (int i = 0; i < arrDB.Count; i++) { strIndex = arrDB[i].ToString().Substring(0, 7); strIndex = strIndex.Trim(); strMagAbs = arrDB[i].ToString().Substring(8, 5); strMagAbs = strMagAbs.Trim(); @@ -253,7 +250,15 @@ private void PlanetoidDBForm_Load(object sender, EventArgs e) arrFlags.Add(strFlags); arrDesgnName.Add(strDesgnName); arrObsLastDate.Add(strObsLastDate); - }*/ + + float percent = 100 * i / (arrDB.Count - 1); + step = (int)percent; + formSplashScreen.setProgressbar(step); + } + + formSplashScreen.Close(); + arrDB.Clear(); + numericUpDownGotoIndex.Minimum = 1; numericUpDownGotoIndex.Maximum = arrIndex.Count; diff --git a/PlanetoidDB/Properties/AssemblyInfo.cs b/PlanetoidDB/Properties/AssemblyInfo.cs index 65acfddc..116261c7 100644 --- a/PlanetoidDB/Properties/AssemblyInfo.cs +++ b/PlanetoidDB/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ // Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern // übernehmen, indem Sie "*" eingeben: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("0.0.2.7")] -[assembly: AssemblyFileVersion("0.0.2.7")] +[assembly: AssemblyVersion("0.0.3.8")] +[assembly: AssemblyFileVersion("0.0.3.8")]