@@ -73,36 +73,19 @@ public static string TempDirectory()
73
73
return dir;
74
74
}
75
75
76
- public KMZRebuilederForm(string[] args, string captiondop )
76
+ public KMZRebuilederForm(string[] args)
77
77
{
78
78
this.args = args;
79
79
80
80
InitializeComponent();
81
81
System.Reflection.Assembly assembly = System.Reflection.Assembly.GetExecutingAssembly();
82
82
System.Diagnostics.FileVersionInfo fvi = System.Diagnostics.FileVersionInfo.GetVersionInfo(assembly.Location);
83
- Text += " " + captiondop + fvi.FileVersion + " by " + fvi.CompanyName;
83
+ Text += " " + fvi.FileVersion + " by " + fvi.CompanyName;
84
84
85
85
RegisterFileAsses();
86
86
prepareTranslit();
87
87
MapIcons.InitZip(CurrentDirectory() + @"\mapicons\default.zip");
88
-
89
- try
90
- {
91
- memFile = new MemFile.MemoryFile("KMZRebuilder");
92
- memFile.onGetNotify = OnGetNotifyEvent;
93
- }
94
- catch { };
95
- }
96
-
97
- private void OnGetNotifyEvent(MemFile.MemoryFile.NotifyEvent notify, MemFile.MemoryFile.NotifySource source, byte notifyParam)
98
- {
99
- if (notify != MemFile.MemoryFile.NotifyEvent.fUserEvent) return;
100
- if (notifyParam == 1)
101
- {
102
- this.args = (string[]) memFile.GetSeriazable();
103
- this.Invoke(new EventHandler(LoadFiles), new object[] { null, null });
104
- };
105
- }
88
+ }
106
89
107
90
private void RegisterFileAsses()
108
91
{
@@ -3453,13 +3436,15 @@ protected override void WndProc(ref Message m)
3453
3436
if (dt.StartsWith("reb: about:"))
3454
3437
text += "\r\n" + dt.Substring(11).Trim();
3455
3438
}
3456
- catch { };
3439
+ catch (Exception ex)
3440
+ {
3441
+ };
3457
3442
MessageBox.Show(text, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Information);
3458
3443
};
3459
3444
if ((m.Msg == WM_SYSCOMMAND) && ((int)m.WParam == SYSMENU_NEW_INST))
3460
3445
{
3461
3446
string fn = System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName;
3462
- System.Diagnostics.Process.Start(fn, "/multiple" );
3447
+ System.Diagnostics.Process.Start(fn);
3463
3448
};
3464
3449
}
3465
3450
@@ -9679,8 +9664,13 @@ public void GPX2KML(string origin_name)
9679
9664
foreach (XmlNode trkseg in trk.SelectNodes("trkseg"))
9680
9665
{
9681
9666
string xyz = "";
9682
- foreach (XmlNode trkpt in trkseg.SelectNodes("trkpt"))
9667
+ XmlNodeList nl = trkseg.SelectNodes("trkpt");
9668
+ int cnt = 0;
9669
+ foreach (XmlNode trkpt in nl) // FOR DEBUG COUNTER
9670
+ {
9683
9671
xyz += trkpt.Attributes["lon"].Value + "," + trkpt.Attributes["lat"].Value + ",0 ";
9672
+ cnt++;
9673
+ };
9684
9674
sw.WriteLine("\t\t\t<Placemark>");
9685
9675
sw.WriteLine("\t\t\t\t<name>" + nam + "</name>");
9686
9676
sw.WriteLine("\t\t\t\t<description><![CDATA[" + desc + "]]></description>");
0 commit comments