static void Main(string[] args) { string file; if (args.Length == 0) return; else file = args[0]; if (System.IO.File.Exists(file)) { if (!System.Diagnostics.Debugger.IsAttached) { System.Windows.Forms.Application.ThreadException += ApplicationThreadException; AppDomain.CurrentDomain.UnhandledException += CurrentDomainOnUnhandledException; } ImageViewer imageViewer = new ImageViewer(file); } }
public ContextMenu(ImageViewer ImageViewer) : base() { this.ImageViewer = ImageViewer; }