private void AutoSearchOptions_FormClosing(object sender, FormClosingEventArgs e) { // only do our checking if the user means to begin the search if (DialogResult != DialogResult.OK) { return; } string strFilters = textBoxSearchFilter.Text.ToLower(); if (m_bNeed2007 && (strFilters.IndexOf(cstrDocxExtension) != -1)) { MessageBox.Show("It doesn't appear that either Office/Word 2007 or the Compatibility Pack for 2007 file formats is installed. Without one of these, this program will not be able to process *.docx files. You can search www.microsoft.com/downloads for \"FileFormatConverters\" and install those to be able to work with .docx files within only Office/Word 2003 installed.", FontsStylesForm.cstrCaption); } SetSearchFilters(strFilters); SearchPath = textBoxSearchStart.Text; Properties.Settings.Default.LastSearchFolderUsed = SearchPath; Properties.Settings.Default.Save(); StorePath = textBoxStoreResults.Text; ConvertBackupFiles = checkBoxConvertBackedupFiles.Checked; if (SearchPath.ToLower() == StorePath.ToLower()) { MessageBox.Show("You can't have the Backup path be the same as the search path", FontsStylesForm.cstrCaption); e.Cancel = true; return; } if (StorePath.ToLower().IndexOf(SearchPath.ToLower()) != -1) { MessageBox.Show("You can't have the Backup path be somewhere within the search path", FontsStylesForm.cstrCaption); e.Cancel = true; return; } if (SearchFilters.Count <= 0) { MessageBox.Show(String.Format("You can't have a null search filter. the default one (i.e. {0}) will be used instead", cstrDefaultFilter), FontsStylesForm.cstrCaption); } // get the fonts to search for foreach (DataGridViewRow aRow in dataGridViewFonts.Rows) { string strFontName = (string)aRow.Cells[cnFontColumn].Value; if (!String.IsNullOrEmpty(strFontName)) { m_astrFontsToSearchFor.Add(strFontName); } } if (m_astrFontsToSearchFor.Count <= 0) { MessageBox.Show("You first have to select some fonts to search for", FontsStylesForm.cstrCaption); e.Cancel = true; } }
public static void DeleteAllPlayerAndMakeGenesisBlock() { DeleteAll(StorePath.GetDefaultStoragePath(StorePath.Env.Production)); MakeGenesisBlock(BlockManager.GenesisBlockPath); }
public static void DeleteAllEditorAndMakeGenesisBlock() { DeleteAll(StorePath.GetDefaultStoragePath(StorePath.Env.Development)); MakeGenesisBlock(BlockManager.GenesisBlockPath); }