Thanks for continuing the development of Legends Viewer, but I have a major bug when running the app using Mono under Linux.
When I want to load a legends.xml or legends_plus.xml, the app crashes with the following error message (taken from the terminal):
System.ArgumentException: Path is empty
at System.IO.Path.Validate (System.String path, System.String parameterName) <0xb55659b0 + 0x000cd> in <filename unknown>:0
at System.IO.Path.Validate (System.String path) <0xb5565970 + 0x00027> in <filename unknown>:0
at System.IO.Directory.ValidateDirectoryListing (System.String path, System.String searchPattern, System.Boolean& stop) <0xb5555510 + 0x0002d> in <filename unknown>:0
at System.IO.Directory.GetFileSystemEntries (System.String path, System.String searchPattern, FileAttributes mask, FileAttributes attrs) <0xb5555780 + 0x00061> in <filename unknown>:0
at System.IO.Directory.GetFiles (System.String path, System.String searchPattern) <0xb5554bb0 + 0x00034> in <filename unknown>:0
at System.IO.Directory.GetFiles (System.String path) <0xb5554b70 + 0x00027> in <filename unknown>:0
at LegendsViewer.FileLoader.LocateOtherFiles (System.String xmlFile) <0xaefaab08 + 0x002c7> in <filename unknown>:0
at LegendsViewer.FileLoader.AttemptLoadFrom (System.String file) <0xaefaaa20 + 0x0006b> in <filename unknown>:0
at LegendsViewer.FileLoader.XMLClick (System.Object sender, System.EventArgs e) <0xaefa9ea8 + 0x0002b> in <filename unknown>:0
at System.Windows.Forms.Control.OnClick (System.EventArgs e) <0xb1b050e0 + 0x00056> in <filename unknown>:0
at System.Windows.Forms.Button.OnClick (System.EventArgs e) <0xb1b05070 + 0x0004b> in <filename unknown>:0
at System.Windows.Forms.ButtonBase.OnMouseUp (System.Windows.Forms.MouseEventArgs mevent) <0xb1b65d88 + 0x00118> in <filename unknown>:0
at System.Windows.Forms.Button.OnMouseUp (System.Windows.Forms.MouseEventArgs mevent) <0xb1b65d60 + 0x00017> in <filename unknown>:0
at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message& m) <0xb1b65b38 + 0x00124> in <filename unknown>:0
at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) <0xb3197660 + 0x001c3> in <filename unknown>:0
at System.Windows.Forms.ButtonBase.WndProc (System.Windows.Forms.Message& m) <0xb1ba4050 + 0x0005f> in <filename unknown>:0
at System.Windows.Forms.Button.WndProc (System.Windows.Forms.Message& m) <0xb1ba4028 + 0x00017> in <filename unknown>:0
at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) <0xb3197640 + 0x0001d> in <filename unknown>:0
at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) <0xb3197610 + 0x0002b> in <filename unknown>:0
at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) <0xb3196248 + 0x002cb> in <filename unknown>:0
This problem does not happen when loading the world_map.bmp, world_history.txt or world_sites_and_pops.txt.
I use Debian "sid" (unstable branch), and the mono-complete (version 4.2.1.102+dfsg2-5) metapackage (that installs Mono and most of the libraries, including System.Windows.Forms).