private void OpenImage(string Filepath) { try { if (Filepath == null) { return; } frmImage _newImage = new frmImage(this, Filepath); var automap = _newImage.Image.AutoMap(); automap.Description = Path.GetFileName(Filepath) + " (Auto-generated)"; this.MapDock.AddMap(automap); _newImage.MdiParent = this; _newImage.Show(); Program.Log("Opened image: " + Filepath); } catch (System.IO.FileNotFoundException ex) { Program.Alert("File Not Found!" + Environment.NewLine + ex.FileName); } }
private void OpenImage(string Filepath) { try { if (Filepath == null) return; frmImage _newImage = new frmImage(this, Filepath); var automap = _newImage.Image.AutoMap(); automap.Description = Path.GetFileName(Filepath) + " (Auto-generated)"; this.MapDock.AddMap(automap); _newImage.MdiParent = this; _newImage.Show(); Program.Log("Opened image: " + Filepath); } catch (System.IO.FileNotFoundException ex) { Program.Alert("File Not Found!" + Environment.NewLine + ex.FileName); } }