public bool Init() { MiscUtils.CleanUp(); InstantiateModelsAndViews(); view.Loaded += new EventHandler(view_Loaded); ITunesInfo iTunesInfo = iTunesInfoProvider.CheckITunesVersion(); if (!iTunesInfo.IsCompatible) { view.ShowCompatibleITunesVersionIsNotInstalled(iTunesInfo.RequiredVersion, iTunesInfo.InstalledVersion); return(false); } startControl.InitFirmwaresList(firmwareVersionModel.KnownVersions.ToArray()); startControl.CreateIPSWClicked += startControl_CreateIPSWClicked; startControl.CreateIPSW_fwVersion_Clicked += startControl_CreateIPSW_fwVersion_Clicked; startControl.TetherClicked += startControl_TetherClicked; dfuSuccessControl.ButtonClicked += dfuSuccessControl_ButtonClicked; tetherSuccessControl.ButtonClicked += tetherSuccessControl_ButtonClicked; ShowStartPage(); return(true); }
public bool Init() { MiscUtils.CleanUp(); InstantiateModelsAndViews(); _view.Loaded += view_Loaded; _startControl.InitFirmwaresList(_firmwareVersionModel.KnownVersions.ToArray()); _startControl.CreateIpswClicked += startControl_CreateIPSWClicked; _startControl.CreateIpswFwVersionClicked += startControl_CreateIPSW_fwVersion_Clicked; _startControl.TetherClicked += startControl_TetherClicked; _dfuSuccessControl.ButtonClicked += dfuSuccessControl_ButtonClicked; _tetherSuccessControl.ButtonClicked += tetherSuccessControl_ButtonClicked; ShowStartPage(); return(true); }
static void Application_ApplicationExit(object sender, EventArgs e) { LogUtil.LogEvent("Application Exit"); WinProcessUtil.KillAllProcesses(); MiscUtils.CleanUp(); }