public bool DownloadLibraryAndOverwrite(int iSel) { // sanity check if (-1 == iSel) return false; // get library Library lib = _libraries[iSel]; // show FormMergeLib dialog and start downloading FormMergeLib form = new FormMergeLib(FormMergeLib.Mode.Mode_Overwrite); form.LibraryName = lib.Name; form.FileName = lib.FileName; if (DialogResult.Cancel == form.ShowDialog()) return false; // success return true; }
public bool DownloadLibraryAndOverwrite(int iSel) { // sanity check if (-1 == iSel) { return(false); } // get library Library lib = _libraries[iSel]; // show FormMergeLib dialog and start downloading FormMergeLib form = new FormMergeLib(FormMergeLib.Mode.Mode_Overwrite); form.LibraryName = lib.Name; form.FileName = lib.FileName; if (DialogResult.Cancel == form.ShowDialog()) { return(false); } // success return(true); }