Пример #1
0
 //frmImage can be initialized with a file path
 public frmImage(frmMain frmMain, string Filepath)
 {
     if (Filepath == null)
         throw new ArgumentNullException("Filepath is null");
     if (!File.Exists(Filepath))
         throw new FileNotFoundException();
     this.Image = OpenImage(Filepath);
     //this._main = frmMain;
     this.Init();
 }
Пример #2
0
        static void Main()
        {
            if (DumplibVersion == null) return;
            try
            {
                LibLoad.InitLibs();
                AppLog.UseTimestamps = true;
                AppLog.Open(("dumpsterdebug_" + DateTime.Now.ToString("yyyyMMdd_HHmmss") + ".log"));
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);

                MainForm = new frmMain();
                Application.Run(MainForm);
            }

            catch (Exception ex)
            {
                ExH.Extended(ex, "Fatal error!");
            }
        }