public BrowserModel(BackupBrowser browser) { browser.SelectedFiles += new EventHandler <IPhoneFileSelectedArgs>(browser_SelectedApp); browser.SelectedBackup += new EventHandler <IPhoneBackupSelectedArgs>(browser_SelectedBackup); browser.SelectedApps += new EventHandler <IPhoneAppSelectedArgs>(browser_SelectedApps); _browser = browser; }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); try { FileManager.Current.Init(); BackupBrowser browser = new BackupBrowser(); Application.Run(browser); } catch (Exception e) { Logger.ErrorException(e.Message, e); MessageBox.Show(e.Message + "\n" + e.StackTrace); } finally { FileManager.Current.Clean(); } }