/// <summary> /// Init code to be called on the application startup. /// Return false if no diff utility was found and user wanted to quit the app. /// </summary> public bool Initialize() { // Verify the application default diff utility AppHelper app = new AppHelper(Properties.Settings.Default.DiffAppHelper); if (File.Exists(app.Path)) { Configure(app); return(true); } // Search for any of the predefined tools diff = GetDetected(); // If none of the pre-set diff apps are present, show the missing diff dialog // and return with its selection of whether to continue or quit the app if (diff.Count == 0) { FormDiffMissing formDiffMissing = new FormDiffMissing(); return(formDiffMissing.ShowDialog() == DialogResult.OK); } // Otherwise, at least one diff app is present, select it as default Properties.Settings.Default.DiffAppHelper = diff[0].ToString(); Configure(diff[0]); return(true); }
/// <summary> /// Init code to be called on the application startup. /// Return false if no diff utility was found and user wanted to quit the app. /// </summary> public bool Initialize() { // Verify the application default diff utility AppHelper app = new AppHelper(Properties.Settings.Default.DiffAppHelper); if (File.Exists(app.Path)) { Configure(app); return true; } // Search for any of the predefined tools diff = GetDetected(); // If none of the pre-set diff apps are present, show the missing diff dialog // and return with its selection of whether to continue or quit the app if (diff.Count == 0) { FormDiffMissing formDiffMissing = new FormDiffMissing(); return formDiffMissing.ShowDialog() == DialogResult.OK; } // Otherwise, at least one diff app is present, select it as default Properties.Settings.Default.DiffAppHelper = diff[0].ToString(); Configure(diff[0]); return true; }