diff --git a/ApplicationAssociations/ApplicationAssociations.csproj b/ApplicationAssociations/ApplicationAssociations.csproj index b168b5a1..d1b234b4 100644 --- a/ApplicationAssociations/ApplicationAssociations.csproj +++ b/ApplicationAssociations/ApplicationAssociations.csproj @@ -70,7 +70,7 @@ - + diff --git a/DataGridViewGeneric/ClipboardUtility.cs b/DataGridViewGeneric/ClipboardUtility.cs index 871f2931..aa25367c 100644 --- a/DataGridViewGeneric/ClipboardUtility.cs +++ b/DataGridViewGeneric/ClipboardUtility.cs @@ -354,7 +354,7 @@ public static void CopyDataGridViewSelectedCellsToClipboard(DataGridView dataGri } catch (Exception ex) { - KryptonMessageBox.Show("Can't copy cells to clipboard. Reason:\r\n\r\n" + ex.Message, "Warning!", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Can't copy cells to clipboard. Reason:\r\n\r\n" + ex.Message, "Warning!", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -666,7 +666,7 @@ public static void PasteDataGridViewSelectedCellsFromClipboard( KryptonMessageBox.Show("Can't paste selection. Can only paste selection when have selected equal numbers of columns.\r\n" + "Columns selected for copy: " + columnConentsCount + "\r\n" + "Columns selected for paste: " + columnsSelected.Count, - "Can't paste selected text", MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); + "Can't paste selected text", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); return; } @@ -720,7 +720,7 @@ public static void PasteDataGridViewSelectedCellsFromClipboard( KryptonMessageBox.Show("Can't paste selection. Can only paste selection when have selected equal numbers of rows.\r\n" + "Rows selected for copy: " + rowContents.Count + "\r\n" + "Rows selected for paste: " + rowsSelected.Count, - "Can't paste selected text", MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); + "Can't paste selected text", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); return; } diff --git a/DataGridViewGeneric/DataGridViewGeneric.csproj b/DataGridViewGeneric/DataGridViewGeneric.csproj index 984e4eb2..c9b66d65 100644 --- a/DataGridViewGeneric/DataGridViewGeneric.csproj +++ b/DataGridViewGeneric/DataGridViewGeneric.csproj @@ -54,8 +54,8 @@ - - + + diff --git a/DataGridViewGeneric/DataGridViewGenericData.cs b/DataGridViewGeneric/DataGridViewGenericData.cs index 2925de9a..949720c1 100644 --- a/DataGridViewGeneric/DataGridViewGenericData.cs +++ b/DataGridViewGeneric/DataGridViewGenericData.cs @@ -26,7 +26,7 @@ public class DataGridViewGenericData public string DataGridViewName { get; set; } = ""; public DataGridViewSize CellSize { get; set; } = DataGridViewSize.Medium; public int CellHeight { get; set; } = 24; - public KryptonPalette KryptonPalette { get; set; } = null; + public KryptonCustomPaletteBase KryptonCustomPaletteBase { get; set; } = null; public List ColumnNameAndWidthsLarge { get; set; } public List ColumnNameAndWidthsMedium { get; set; } public List ColumnNameAndWidthsSmall { get; set; } diff --git a/DataGridViewGeneric/DataGridViewHandler.cs b/DataGridViewGeneric/DataGridViewHandler.cs index 7d15c161..4236a165 100644 --- a/DataGridViewGeneric/DataGridViewHandler.cs +++ b/DataGridViewGeneric/DataGridViewHandler.cs @@ -43,14 +43,14 @@ public static bool IsFilenameEqual(string fullFileName1, string fullFileName2) public static Color ColorBackCellNormal(DataGridView dataGridView) { if (dataGridView == null || dataGridView.TopLeftHeaderCell.Tag == null) return SystemColors.ControlLightLight; - return ((DataGridViewGenericData)dataGridView.TopLeftHeaderCell.Tag).KryptonPalette.GridStyles.GridCommon.StateNormal.DataCell.Back.Color1; + return ((DataGridViewGenericData)dataGridView.TopLeftHeaderCell.Tag).KryptonCustomPaletteBase.GridStyles.GridCommon.StateNormal.DataCell.Back.Color1; } public static Color ColorTextCellNormal(DataGridView dataGridView) { if (dataGridView == null || dataGridView.TopLeftHeaderCell.Tag == null) return SystemColors.ControlText; - return ((DataGridViewGenericData)dataGridView.TopLeftHeaderCell.Tag).KryptonPalette.GridStyles.GridCommon.StateNormal.DataCell.Content.Color1; + return ((DataGridViewGenericData)dataGridView.TopLeftHeaderCell.Tag).KryptonCustomPaletteBase.GridStyles.GridCommon.StateNormal.DataCell.Content.Color1; } #endregion @@ -58,13 +58,13 @@ public static Color ColorTextCellNormal(DataGridView dataGridView) public static Color ColorBackCellFavorite(DataGridView dataGridView) { if (dataGridView == null || dataGridView.TopLeftHeaderCell.Tag == null) return SystemColors.ControlLight; - return ((DataGridViewGenericData)dataGridView.TopLeftHeaderCell.Tag).KryptonPalette.GridStyles.GridCommon.StateNormal.DataCell.Back.Color2; + return ((DataGridViewGenericData)dataGridView.TopLeftHeaderCell.Tag).KryptonCustomPaletteBase.GridStyles.GridCommon.StateNormal.DataCell.Back.Color2; } public static Color ColorTextCellFavorite(DataGridView dataGridView) { if (dataGridView == null || dataGridView.TopLeftHeaderCell.Tag == null) return SystemColors.ControlText; - return ((DataGridViewGenericData)dataGridView.TopLeftHeaderCell.Tag).KryptonPalette.GridStyles.GridCommon.StateNormal.DataCell.Content.Color2; + return ((DataGridViewGenericData)dataGridView.TopLeftHeaderCell.Tag).KryptonCustomPaletteBase.GridStyles.GridCommon.StateNormal.DataCell.Content.Color2; } #endregion @@ -72,13 +72,13 @@ public static Color ColorTextCellFavorite(DataGridView dataGridView) public static Color ColorBackCellReadOnly(DataGridView dataGridView) { if (dataGridView == null || dataGridView.TopLeftHeaderCell.Tag == null) return SystemColors.GradientInactiveCaption; - return ((DataGridViewGenericData)dataGridView.TopLeftHeaderCell.Tag).KryptonPalette.GridStyles.GridCommon.StateDisabled.DataCell.Back.Color1; + return ((DataGridViewGenericData)dataGridView.TopLeftHeaderCell.Tag).KryptonCustomPaletteBase.GridStyles.GridCommon.StateDisabled.DataCell.Back.Color1; } public static Color ColorTextCellReadOnly(DataGridView dataGridView) { if (dataGridView == null || dataGridView.TopLeftHeaderCell.Tag == null) return SystemColors.ControlText; - return ((DataGridViewGenericData)dataGridView.TopLeftHeaderCell.Tag).KryptonPalette.GridStyles.GridCommon.StateDisabled.DataCell.Content.Color1; + return ((DataGridViewGenericData)dataGridView.TopLeftHeaderCell.Tag).KryptonCustomPaletteBase.GridStyles.GridCommon.StateDisabled.DataCell.Content.Color1; } #endregion @@ -86,13 +86,13 @@ public static Color ColorTextCellReadOnly(DataGridView dataGridView) public static Color ColorBackCellFavoriteReadOnly(DataGridView dataGridView) { if (dataGridView == null || dataGridView.TopLeftHeaderCell.Tag == null) return SystemColors.MenuHighlight; - return ((DataGridViewGenericData)dataGridView.TopLeftHeaderCell.Tag).KryptonPalette.GridStyles.GridCommon.StateDisabled.DataCell.Back.Color2; + return ((DataGridViewGenericData)dataGridView.TopLeftHeaderCell.Tag).KryptonCustomPaletteBase.GridStyles.GridCommon.StateDisabled.DataCell.Back.Color2; } public static Color ColorTextCellFavoriteReadOnly(DataGridView dataGridView) { if (dataGridView == null || dataGridView.TopLeftHeaderCell.Tag == null) return SystemColors.ControlText; - return ((DataGridViewGenericData)dataGridView.TopLeftHeaderCell.Tag).KryptonPalette.GridStyles.GridCommon.StateDisabled.DataCell.Content.Color2; + return ((DataGridViewGenericData)dataGridView.TopLeftHeaderCell.Tag).KryptonCustomPaletteBase.GridStyles.GridCommon.StateDisabled.DataCell.Content.Color2; } #endregion @@ -100,13 +100,13 @@ public static Color ColorTextCellFavoriteReadOnly(DataGridView dataGridView) public static Color ColorBackCellError(DataGridView dataGridView) { if (dataGridView == null || dataGridView.TopLeftHeaderCell.Tag == null) return Color.FromArgb(255, 192, 192); - return ((DataGridViewGenericData)dataGridView.TopLeftHeaderCell.Tag).KryptonPalette.GridStyles.GridCustom2.StateNormal.DataCell.Back.Color1; + return ((DataGridViewGenericData)dataGridView.TopLeftHeaderCell.Tag).KryptonCustomPaletteBase.GridStyles.GridCustom2.StateNormal.DataCell.Back.Color1; } public static Color ColorTextCellError(DataGridView dataGridView) { if (dataGridView == null || dataGridView.TopLeftHeaderCell.Tag == null) return SystemColors.ControlText; - return ((DataGridViewGenericData)dataGridView.TopLeftHeaderCell.Tag).KryptonPalette.GridStyles.GridCustom2.StateNormal.DataCell.Content.Color1; + return ((DataGridViewGenericData)dataGridView.TopLeftHeaderCell.Tag).KryptonCustomPaletteBase.GridStyles.GridCustom2.StateNormal.DataCell.Content.Color1; } #endregion @@ -114,13 +114,13 @@ public static Color ColorTextCellError(DataGridView dataGridView) public static Color ColorBackCellImage(DataGridView dataGridView) { if (dataGridView == null || dataGridView.TopLeftHeaderCell.Tag == null) return Color.White; - return ((DataGridViewGenericData)dataGridView.TopLeftHeaderCell.Tag).KryptonPalette.GridStyles.GridCustom3.StateNormal.DataCell.Back.Color1; + return ((DataGridViewGenericData)dataGridView.TopLeftHeaderCell.Tag).KryptonCustomPaletteBase.GridStyles.GridCustom3.StateNormal.DataCell.Back.Color1; } public static Color ColorTextCellImage(DataGridView dataGridView) { if (dataGridView == null || dataGridView.TopLeftHeaderCell.Tag == null) return SystemColors.ControlText; - return ((DataGridViewGenericData)dataGridView.TopLeftHeaderCell.Tag).KryptonPalette.GridStyles.GridCustom3.StateNormal.DataCell.Content.Color1; + return ((DataGridViewGenericData)dataGridView.TopLeftHeaderCell.Tag).KryptonCustomPaletteBase.GridStyles.GridCustom3.StateNormal.DataCell.Content.Color1; } #endregion @@ -128,13 +128,13 @@ public static Color ColorTextCellImage(DataGridView dataGridView) public static Color ColorBackHeaderNormal(DataGridView dataGridView) { if (dataGridView == null || dataGridView.TopLeftHeaderCell.Tag == null) return SystemColors.Control; - return ((DataGridViewGenericData)dataGridView.TopLeftHeaderCell.Tag).KryptonPalette.GridStyles.GridCommon.StateCommon.HeaderColumn.Back.Color1; + return ((DataGridViewGenericData)dataGridView.TopLeftHeaderCell.Tag).KryptonCustomPaletteBase.GridStyles.GridCommon.StateCommon.HeaderColumn.Back.Color1; } public static Color ColorTextHeaderNormal(DataGridView dataGridView) { if (dataGridView == null || dataGridView.TopLeftHeaderCell.Tag == null) return SystemColors.ControlText; - return ((DataGridViewGenericData)dataGridView.TopLeftHeaderCell.Tag).KryptonPalette.GridStyles.GridCommon.StateCommon.HeaderColumn.Content.Color1; + return ((DataGridViewGenericData)dataGridView.TopLeftHeaderCell.Tag).KryptonCustomPaletteBase.GridStyles.GridCommon.StateCommon.HeaderColumn.Content.Color1; } #endregion @@ -142,13 +142,13 @@ public static Color ColorTextHeaderNormal(DataGridView dataGridView) public static Color ColorBackHeaderWarning(DataGridView dataGridView) { if (dataGridView == null || dataGridView.TopLeftHeaderCell.Tag == null) return Color.Yellow; - return ((DataGridViewGenericData)dataGridView.TopLeftHeaderCell.Tag).KryptonPalette.GridStyles.GridCustom1.StateCommon.HeaderColumn.Back.Color1; + return ((DataGridViewGenericData)dataGridView.TopLeftHeaderCell.Tag).KryptonCustomPaletteBase.GridStyles.GridCustom1.StateCommon.HeaderColumn.Back.Color1; } public static Color ColorTextHeaderWarning(DataGridView dataGridView) { if (dataGridView == null || dataGridView.TopLeftHeaderCell.Tag == null) return SystemColors.ControlText; - return ((DataGridViewGenericData)dataGridView.TopLeftHeaderCell.Tag).KryptonPalette.GridStyles.GridCustom1.StateCommon.HeaderColumn.Content.Color1; + return ((DataGridViewGenericData)dataGridView.TopLeftHeaderCell.Tag).KryptonCustomPaletteBase.GridStyles.GridCustom1.StateCommon.HeaderColumn.Content.Color1; } #endregion @@ -156,13 +156,13 @@ public static Color ColorTextHeaderWarning(DataGridView dataGridView) public static Color ColorBackHeaderError(DataGridView dataGridView) { if (dataGridView == null || dataGridView.TopLeftHeaderCell.Tag == null) return Color.Red; - return ((DataGridViewGenericData)dataGridView.TopLeftHeaderCell.Tag).KryptonPalette.GridStyles.GridCustom2.StateCommon.HeaderColumn.Back.Color1; + return ((DataGridViewGenericData)dataGridView.TopLeftHeaderCell.Tag).KryptonCustomPaletteBase.GridStyles.GridCustom2.StateCommon.HeaderColumn.Back.Color1; } public static Color ColorTextHeaderError(DataGridView dataGridView) { if (dataGridView == null || dataGridView.TopLeftHeaderCell.Tag == null) return SystemColors.ControlText; - return ((DataGridViewGenericData)dataGridView.TopLeftHeaderCell.Tag).KryptonPalette.GridStyles.GridCustom2.StateCommon.HeaderColumn.Content.Color1; + return ((DataGridViewGenericData)dataGridView.TopLeftHeaderCell.Tag).KryptonCustomPaletteBase.GridStyles.GridCustom2.StateCommon.HeaderColumn.Content.Color1; } #endregion @@ -170,13 +170,13 @@ public static Color ColorTextHeaderError(DataGridView dataGridView) public static Color ColorBackHeaderImage(DataGridView dataGridView) { if (dataGridView == null || dataGridView.TopLeftHeaderCell.Tag == null) return Color.LightSteelBlue; - return ((DataGridViewGenericData)dataGridView.TopLeftHeaderCell.Tag).KryptonPalette.GridStyles.GridCustom3.StateCommon.HeaderColumn.Back.Color1; + return ((DataGridViewGenericData)dataGridView.TopLeftHeaderCell.Tag).KryptonCustomPaletteBase.GridStyles.GridCustom3.StateCommon.HeaderColumn.Back.Color1; } public static Color ColorTextHeaderImage(DataGridView dataGridView) { if (dataGridView == null || dataGridView.TopLeftHeaderCell.Tag == null) return SystemColors.ControlText; - return ((DataGridViewGenericData)dataGridView.TopLeftHeaderCell.Tag).KryptonPalette.GridStyles.GridCustom3.StateCommon.HeaderColumn.Content.Color1; + return ((DataGridViewGenericData)dataGridView.TopLeftHeaderCell.Tag).KryptonCustomPaletteBase.GridStyles.GridCustom3.StateCommon.HeaderColumn.Content.Color1; } #endregion @@ -358,11 +358,11 @@ public static void DataGridViewInit(DataGridView dataGridView, bool allowUserToA #region DataGridViewInitGenericData private static void DataGridViewInitGenericData( - DataGridView dataGridView, KryptonPalette palette, string dataGridViewName, string topLeftHeaderCellName, DataGridViewSize cellSize, + DataGridView dataGridView, KryptonCustomPaletteBase palette, string dataGridViewName, string topLeftHeaderCellName, DataGridViewSize cellSize, List columnNameAndWidthsLarge, List columnNameAndWidthsMedium, List columnNameAndWidthsSmall) { DataGridViewGenericData dataGridViewGenericData = new DataGridViewGenericData(); - dataGridViewGenericData.KryptonPalette = palette; + dataGridViewGenericData.KryptonCustomPaletteBase = palette; dataGridViewGenericData.TopCellName = topLeftHeaderCellName; dataGridViewGenericData.DataGridViewName = dataGridViewName; dataGridViewGenericData.FavoriteList = FavouriteRead(CreateFavoriteFilename(dataGridViewGenericData.DataGridViewName)); @@ -393,12 +393,12 @@ private void DataGridViewInitEvents(DataGridView dataGridView) } #endregion - public DataGridViewHandler(DataGridView dataGridView, KryptonPalette palette, string dataGridViewName, string topLeftHeaderCellName, + public DataGridViewHandler(DataGridView dataGridView, KryptonCustomPaletteBase palette, string dataGridViewName, string topLeftHeaderCellName, DataGridViewSize cellSize, bool allowUserToAddRow) : this (dataGridView, palette, dataGridViewName, topLeftHeaderCellName, cellSize, null, null, null, allowUserToAddRow) { } - public DataGridViewHandler(DataGridView dataGridView, KryptonPalette palette, string dataGridViewName, string topLeftHeaderCellName, + public DataGridViewHandler(DataGridView dataGridView, KryptonCustomPaletteBase palette, string dataGridViewName, string topLeftHeaderCellName, DataGridViewSize cellSize, List columnNameAndWidthsLarge, List columnNameAndWidthsMedium, List columnNameAndWidthsSmall, bool allowUserToAddRow) { diff --git a/ImageAndMovieFileExtentions/ImageAndMovieFileExtentionsUtility.cs b/ImageAndMovieFileExtentions/ImageAndMovieFileExtentionsUtility.cs index e81af190..ebb6f9a8 100644 --- a/ImageAndMovieFileExtentions/ImageAndMovieFileExtentionsUtility.cs +++ b/ImageAndMovieFileExtentions/ImageAndMovieFileExtentionsUtility.cs @@ -380,7 +380,7 @@ public static bool RotateVideo(string sourceFile, string outputFile, int rotateD // catch (Exception ex) // { // Logger.Error(ex); - // KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + // KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); // } //} @@ -393,7 +393,7 @@ public static bool RotateVideo(string sourceFile, string outputFile, int rotateD // catch (Exception ex) // { // Logger.Error(ex); - // KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + // KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); // } //} diff --git a/ImageListView/ImageListView.csproj b/ImageListView/ImageListView.csproj index f1735c08..5837a628 100644 --- a/ImageListView/ImageListView.csproj +++ b/ImageListView/ImageListView.csproj @@ -75,9 +75,9 @@ - + - 5.2.4 + 5.2.8 diff --git a/IncludeFilesAlways/exiftool.exe b/IncludeFilesAlways/exiftool.exe index b2023f6f..a4ddc031 100644 Binary files a/IncludeFilesAlways/exiftool.exe and b/IncludeFilesAlways/exiftool.exe differ diff --git a/LocationNames/LocationNames.csproj b/LocationNames/LocationNames.csproj index 06e0f7b3..b869b4ab 100644 --- a/LocationNames/LocationNames.csproj +++ b/LocationNames/LocationNames.csproj @@ -59,7 +59,7 @@ - + \ No newline at end of file diff --git a/MetadataLibrary/FileEntryVersion.cs b/MetadataLibrary/FileEntryVersion.cs index 351e23e1..5d370d77 100644 --- a/MetadataLibrary/FileEntryVersion.cs +++ b/MetadataLibrary/FileEntryVersion.cs @@ -288,7 +288,6 @@ public static FileEntryVersionCompare CompareFileEntryAttribute(FileEntryAttribu case FileEntryVersion.ExtractedNowUsingMicrosoftPhotos: //DataGridView Column case FileEntryVersion.ExtractedNowUsingWebScraping: //DataGridView Column return FileEntryVersionCompare.Update_Status_FileNotFound; - break; #endregion #region Queue: File not Exist - DataGridView: ToSave - Result: Depends on LastWriteDateTime @@ -312,7 +311,7 @@ public static FileEntryVersionCompare CompareFileEntryAttribute(FileEntryAttribu #endregion } #endregion - break; + case FileEntryVersion.ExtractedNowUsingExiftoolTimeout: //From queue case FileEntryVersion.ExtractedNowUsingExiftoolWithError: //From queue #region Queue From Failed diff --git a/MetadataPriorityLibrary/MetadataPriorityLibrary.csproj b/MetadataPriorityLibrary/MetadataPriorityLibrary.csproj index 31ce6060..5d1a8ea0 100644 --- a/MetadataPriorityLibrary/MetadataPriorityLibrary.csproj +++ b/MetadataPriorityLibrary/MetadataPriorityLibrary.csproj @@ -57,7 +57,7 @@ - + diff --git a/MicrosoftPhotos/MicrosoftPhotos.csproj b/MicrosoftPhotos/MicrosoftPhotos.csproj index 9106a6b2..370a3f24 100644 --- a/MicrosoftPhotos/MicrosoftPhotos.csproj +++ b/MicrosoftPhotos/MicrosoftPhotos.csproj @@ -57,7 +57,7 @@ - + diff --git a/NHttp/NHttp.csproj b/NHttp/NHttp.csproj index 94483583..283db627 100644 --- a/NHttp/NHttp.csproj +++ b/NHttp/NHttp.csproj @@ -63,8 +63,8 @@ - - + + diff --git a/PhotoTags Synchronizer/ComboBoxHandler.cs b/PhotoTags Synchronizer/ComboBoxHandler.cs index 453df42d..110f66d2 100644 --- a/PhotoTags Synchronizer/ComboBoxHandler.cs +++ b/PhotoTags Synchronizer/ComboBoxHandler.cs @@ -23,7 +23,7 @@ public static void SelectionChangeCommitted(KryptonTextBox textBox, string inser catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -42,7 +42,7 @@ public static void SelectionChangeCommitted(FastColoredTextBox textBox, string i catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -57,7 +57,7 @@ public static void RemeberComboBoxSelection(KryptonComboBox comboBox) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -76,7 +76,7 @@ public static void SetComboBoxSelection(KryptonComboBox comboBox) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -95,7 +95,7 @@ public static string ComboBoxStringCollection(KryptonComboBox comboBox) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } return resultListString; } @@ -128,7 +128,7 @@ public static void ComboBoxPopulateAppend(KryptonComboBox comboBox, string[] val catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -161,7 +161,7 @@ public static void ComboBoxAddLastTextFirstInList(KryptonComboBox comboBox) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -180,7 +180,7 @@ public static string AutoCompleteStringCollectionToString(AutoCompleteStringColl catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } return resultListString; } @@ -213,7 +213,7 @@ public static void AddLastTextFirstInAutoCompleteStringCollection(AutoCompleteSt catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } } diff --git a/PhotoTags Synchronizer/DataGridViewHandlerMap.cs b/PhotoTags Synchronizer/DataGridViewHandlerMap.cs index 3ca2a72e..f5507f3c 100644 --- a/PhotoTags Synchronizer/DataGridViewHandlerMap.cs +++ b/PhotoTags Synchronizer/DataGridViewHandlerMap.cs @@ -409,7 +409,7 @@ public static void PopulateGrivViewMapNomnatatim(DataGridView dataGridView, int catch (Exception ex) { KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { diff --git a/PhotoTags Synchronizer/FilesCutCopyPasteDrag.cs b/PhotoTags Synchronizer/FilesCutCopyPasteDrag.cs index cb8c15ae..4961d163 100644 --- a/PhotoTags Synchronizer/FilesCutCopyPasteDrag.cs +++ b/PhotoTags Synchronizer/FilesCutCopyPasteDrag.cs @@ -275,7 +275,7 @@ public void DeleteSelectedFiles(ImageListView imageListView, HashSet catch (Exception ex) { KryptonMessageBox.Show("Was not able to delete the file: " + fileEntry.FileFullPath + "\r\n\r\n" + ex.Message, - "Deleting file failed", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Deleting file failed", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } } @@ -284,7 +284,7 @@ public void DeleteSelectedFiles(ImageListView imageListView, HashSet { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { diff --git a/PhotoTags Synchronizer/FormAbout.cs b/PhotoTags Synchronizer/FormAbout.cs index 6b19969b..162564ee 100644 --- a/PhotoTags Synchronizer/FormAbout.cs +++ b/PhotoTags Synchronizer/FormAbout.cs @@ -27,7 +27,7 @@ private void richTextBox1_LinkClicked(object sender, LinkClickedEventArgs e) } catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } } diff --git a/PhotoTags Synchronizer/FormConfig.Designer.cs b/PhotoTags Synchronizer/FormConfig.Designer.cs index 13dfbc7a..b7458f2e 100644 --- a/PhotoTags Synchronizer/FormConfig.Designer.cs +++ b/PhotoTags Synchronizer/FormConfig.Designer.cs @@ -345,7 +345,7 @@ private void InitializeComponent() this.buttonOffice2007White = new Krypton.Toolkit.KryptonButton(); this.buttonOffice2010White = new Krypton.Toolkit.KryptonButton(); this.buttonSparkleBlue = new Krypton.Toolkit.KryptonButton(); - this.buttonOffice365White = new Krypton.Toolkit.KryptonButton(); + this.buttonMicrosoft365White = new Krypton.Toolkit.KryptonButton(); this.buttonOffice2003 = new Krypton.Toolkit.KryptonButton(); this.kryptonButtonApplicationThemesExport = new Krypton.Toolkit.KryptonButton(); this.buttonOffice2010Silver = new Krypton.Toolkit.KryptonButton(); @@ -354,9 +354,9 @@ private void InitializeComponent() this.buttonOffice2007Blue = new Krypton.Toolkit.KryptonButton(); this.buttonOffice2010Black = new Krypton.Toolkit.KryptonButton(); this.buttonOffice2010Blue = new Krypton.Toolkit.KryptonButton(); - this.buttonOffice365Silver = new Krypton.Toolkit.KryptonButton(); - this.buttonOffice365Black = new Krypton.Toolkit.KryptonButton(); - this.buttonOffice365Blue = new Krypton.Toolkit.KryptonButton(); + this.buttonMicrosoft365Silver = new Krypton.Toolkit.KryptonButton(); + this.buttonMicrosoft365Black = new Krypton.Toolkit.KryptonButton(); + this.buttonMicrosoft365Blue = new Krypton.Toolkit.KryptonButton(); this.kryptonButtonApplicationThemesImport = new Krypton.Toolkit.KryptonButton(); this.buttonSystem = new Krypton.Toolkit.KryptonButton(); this.buttonDarkMode = new Krypton.Toolkit.KryptonButton(); @@ -4689,7 +4689,7 @@ private void InitializeComponent() this.C.Controls.Add(this.buttonOffice2007White, 0, 17); this.C.Controls.Add(this.buttonOffice2010White, 0, 13); this.C.Controls.Add(this.buttonSparkleBlue, 0, 19); - this.C.Controls.Add(this.buttonOffice365White, 0, 9); + this.C.Controls.Add(this.buttonMicrosoft365White, 0, 9); this.C.Controls.Add(this.buttonOffice2003, 0, 18); this.C.Controls.Add(this.kryptonButtonApplicationThemesExport, 0, 0); this.C.Controls.Add(this.buttonOffice2010Silver, 0, 12); @@ -4698,9 +4698,9 @@ private void InitializeComponent() this.C.Controls.Add(this.buttonOffice2007Blue, 0, 15); this.C.Controls.Add(this.buttonOffice2010Black, 0, 10); this.C.Controls.Add(this.buttonOffice2010Blue, 0, 11); - this.C.Controls.Add(this.buttonOffice365Silver, 0, 8); - this.C.Controls.Add(this.buttonOffice365Black, 0, 6); - this.C.Controls.Add(this.buttonOffice365Blue, 0, 7); + this.C.Controls.Add(this.buttonMicrosoft365Silver, 0, 8); + this.C.Controls.Add(this.buttonMicrosoft365Black, 0, 6); + this.C.Controls.Add(this.buttonMicrosoft365Blue, 0, 7); this.C.Controls.Add(this.kryptonButtonApplicationThemesImport, 0, 1); this.C.Controls.Add(this.buttonSystem, 0, 2); this.C.Controls.Add(this.buttonDarkMode, 0, 3); @@ -4785,15 +4785,15 @@ private void InitializeComponent() this.buttonSparkleBlue.Values.Text = "Sparkle - Blue"; this.buttonSparkleBlue.Click += new System.EventHandler(this.buttonSparkleBlue_Click); // - // buttonOffice365White + // buttonMicrosoft365White // - this.buttonOffice365White.CornerRoundingRadius = -1F; - this.buttonOffice365White.Location = new System.Drawing.Point(3, 263); - this.buttonOffice365White.Name = "buttonOffice365White"; - this.buttonOffice365White.Size = new System.Drawing.Size(138, 27); - this.buttonOffice365White.TabIndex = 32; - this.buttonOffice365White.Values.Text = "Office 365 - White"; - this.buttonOffice365White.Click += new System.EventHandler(this.buttonOffice365White_Click); + this.buttonMicrosoft365White.CornerRoundingRadius = -1F; + this.buttonMicrosoft365White.Location = new System.Drawing.Point(3, 263); + this.buttonMicrosoft365White.Name = "buttonMicrosoft365White"; + this.buttonMicrosoft365White.Size = new System.Drawing.Size(138, 27); + this.buttonMicrosoft365White.TabIndex = 32; + this.buttonMicrosoft365White.Values.Text = "Office 365 - White"; + this.buttonMicrosoft365White.Click += new System.EventHandler(this.buttonMicrosoft365White_Click); // // buttonOffice2003 // @@ -4876,35 +4876,35 @@ private void InitializeComponent() this.buttonOffice2010Blue.Values.Text = "Office 2010 - Blue"; this.buttonOffice2010Blue.Click += new System.EventHandler(this.buttonOffice2010Blue_Click); // - // buttonOffice365Silver + // buttonMicrosoft365Silver // - this.buttonOffice365Silver.CornerRoundingRadius = -1F; - this.buttonOffice365Silver.Location = new System.Drawing.Point(3, 230); - this.buttonOffice365Silver.Name = "buttonOffice365Silver"; - this.buttonOffice365Silver.Size = new System.Drawing.Size(138, 27); - this.buttonOffice365Silver.TabIndex = 30; - this.buttonOffice365Silver.Values.Text = "Office 365 - Silver"; - this.buttonOffice365Silver.Click += new System.EventHandler(this.buttonOffice365Silver_Click); + this.buttonMicrosoft365Silver.CornerRoundingRadius = -1F; + this.buttonMicrosoft365Silver.Location = new System.Drawing.Point(3, 230); + this.buttonMicrosoft365Silver.Name = "buttonMicrosoft365Silver"; + this.buttonMicrosoft365Silver.Size = new System.Drawing.Size(138, 27); + this.buttonMicrosoft365Silver.TabIndex = 30; + this.buttonMicrosoft365Silver.Values.Text = "Office 365 - Silver"; + this.buttonMicrosoft365Silver.Click += new System.EventHandler(this.buttonMicrosoft365Silver_Click); // - // buttonOffice365Black + // buttonMicrosoft365Black // - this.buttonOffice365Black.CornerRoundingRadius = -1F; - this.buttonOffice365Black.Location = new System.Drawing.Point(3, 164); - this.buttonOffice365Black.Name = "buttonOffice365Black"; - this.buttonOffice365Black.Size = new System.Drawing.Size(138, 27); - this.buttonOffice365Black.TabIndex = 31; - this.buttonOffice365Black.Values.Text = "Office 365 - Black"; - this.buttonOffice365Black.Click += new System.EventHandler(this.buttonOffice365Black_Click); + this.buttonMicrosoft365Black.CornerRoundingRadius = -1F; + this.buttonMicrosoft365Black.Location = new System.Drawing.Point(3, 164); + this.buttonMicrosoft365Black.Name = "buttonMicrosoft365Black"; + this.buttonMicrosoft365Black.Size = new System.Drawing.Size(138, 27); + this.buttonMicrosoft365Black.TabIndex = 31; + this.buttonMicrosoft365Black.Values.Text = "Office 365 - Black"; + this.buttonMicrosoft365Black.Click += new System.EventHandler(this.buttonMicrosoft365Black_Click); // - // buttonOffice365Blue + // buttonMicrosoft365Blue // - this.buttonOffice365Blue.CornerRoundingRadius = -1F; - this.buttonOffice365Blue.Location = new System.Drawing.Point(3, 197); - this.buttonOffice365Blue.Name = "buttonOffice365Blue"; - this.buttonOffice365Blue.Size = new System.Drawing.Size(138, 27); - this.buttonOffice365Blue.TabIndex = 29; - this.buttonOffice365Blue.Values.Text = "Office 365 - Blue"; - this.buttonOffice365Blue.Click += new System.EventHandler(this.buttonOffice365Blue_Click); + this.buttonMicrosoft365Blue.CornerRoundingRadius = -1F; + this.buttonMicrosoft365Blue.Location = new System.Drawing.Point(3, 197); + this.buttonMicrosoft365Blue.Name = "buttonMicrosoft365Blue"; + this.buttonMicrosoft365Blue.Size = new System.Drawing.Size(138, 27); + this.buttonMicrosoft365Blue.TabIndex = 29; + this.buttonMicrosoft365Blue.Values.Text = "Office 365 - Blue"; + this.buttonMicrosoft365Blue.Click += new System.EventHandler(this.buttonMicrosoft365Blue_Click); // // kryptonButtonApplicationThemesImport // @@ -5266,7 +5266,7 @@ private void InitializeComponent() this.kryptonPageApplicationThemesProperties.Name = "kryptonPageApplicationThemesProperties"; this.kryptonPageApplicationThemesProperties.Size = new System.Drawing.Size(254, 438); this.kryptonPageApplicationThemesProperties.Text = "Properties"; - this.kryptonPageApplicationThemesProperties.TextDescription = "Properties for Selected KryptonPalette"; + this.kryptonPageApplicationThemesProperties.TextDescription = "Properties for Selected KryptonCustomPaletteBase"; this.kryptonPageApplicationThemesProperties.TextTitle = "Properties"; this.kryptonPageApplicationThemesProperties.ToolTipTitle = "Page ToolTip"; this.kryptonPageApplicationThemesProperties.UniqueName = "413847226e614dae94f8b51de04f255f"; @@ -9648,10 +9648,10 @@ private void InitializeComponent() private KryptonButton buttonOffice2010White; private KryptonButton buttonDarkMode; private KryptonButton buttonOffice2013White; - private KryptonButton buttonOffice365White; - private KryptonButton buttonOffice365Black; - private KryptonButton buttonOffice365Silver; - private KryptonButton buttonOffice365Blue; + private KryptonButton buttonMicrosoft365White; + private KryptonButton buttonMicrosoft365Black; + private KryptonButton buttonMicrosoft365Silver; + private KryptonButton buttonMicrosoft365Blue; private KryptonContextMenu kryptonContextMenuPalette; private KryptonButton kryptonButtonShowContectMenu; private KryptonDataGridView kryptonDataGridViewShowPalette; diff --git a/PhotoTags Synchronizer/FormConfig.cs b/PhotoTags Synchronizer/FormConfig.cs index 2c1e3fea..1e4b316c 100644 --- a/PhotoTags Synchronizer/FormConfig.cs +++ b/PhotoTags Synchronizer/FormConfig.cs @@ -299,7 +299,7 @@ public void Init() } catch (Exception ex) { - KryptonMessageBox.Show("Failed to load config.\r\n\r\n" + ex.Message, "Failed to load config", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Failed to load config.\r\n\r\n" + ex.Message, "Failed to load config", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } @@ -309,7 +309,7 @@ public void Init() } catch (Exception ex) { - KryptonMessageBox.Show("Failed to load config.\r\n\r\n" + ex.Message, "Failed to load config", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Failed to load config.\r\n\r\n" + ex.Message, "Failed to load config", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } //Metadata Filename Date formats @@ -319,7 +319,7 @@ public void Init() } catch (Exception ex) { - KryptonMessageBox.Show("Failed to load config.\r\n\r\n" + ex.Message, "Failed to load config", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Failed to load config.\r\n\r\n" + ex.Message, "Failed to load config", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } //Metadata Read @@ -332,7 +332,7 @@ public void Init() } catch (Exception ex) { - KryptonMessageBox.Show("Failed to load config.\r\n\r\n" + ex.Message, "Failed to load config", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Failed to load config.\r\n\r\n" + ex.Message, "Failed to load config", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } //WebScraping @@ -351,7 +351,7 @@ public void Init() } catch (Exception ex) { - KryptonMessageBox.Show("Failed to load config.\r\n\r\n" + ex.Message, "Failed to load config", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Failed to load config.\r\n\r\n" + ex.Message, "Failed to load config", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } @@ -362,7 +362,7 @@ public void Init() } catch (Exception ex) { - KryptonMessageBox.Show("Failed to load config.\r\n\r\n" + ex.Message, "Failed to load config", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Failed to load config.\r\n\r\n" + ex.Message, "Failed to load config", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } @@ -376,20 +376,20 @@ public void Init() } catch (Exception ex) { - KryptonMessageBox.Show("Failed to load config.\r\n\r\n" + ex.Message, "Failed to load config", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Failed to load config.\r\n\r\n" + ex.Message, "Failed to load config", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } //AutoCorrect try { - DataGridViewHandler dataGridViewHandler = new DataGridViewHandler(dataGridViewAutoKeywords, (KryptonPalette)kryptonManager1.GlobalPalette, "AutoKeywords", "AutoKeywords", DataGridViewSize.ConfigSize, allowUserToAddRow: true); + DataGridViewHandler dataGridViewHandler = new DataGridViewHandler(dataGridViewAutoKeywords, (KryptonCustomPaletteBase)kryptonManager1.GlobalPalette, "AutoKeywords", "AutoKeywords", DataGridViewSize.ConfigSize, allowUserToAddRow: true); autoCorrect = AutoCorrect.ConvertConfigValue(Properties.Settings.Default.AutoCorrect); PopulateAutoCorrectPoperties(); } catch (Exception ex) { - KryptonMessageBox.Show("Failed to load config.\r\n\r\n" + ex.Message, "Failed to load config", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Failed to load config.\r\n\r\n" + ex.Message, "Failed to load config", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } @@ -401,7 +401,7 @@ public void Init() } catch (Exception ex) { - KryptonMessageBox.Show("Failed to load config.\r\n\r\n" + ex.Message, "Failed to load config", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Failed to load config.\r\n\r\n" + ex.Message, "Failed to load config", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } @@ -414,7 +414,7 @@ public void Init() } catch (Exception ex) { - KryptonMessageBox.Show("Failed to load config.\r\n\r\n" + ex.Message, "Failed to load config", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Failed to load config.\r\n\r\n" + ex.Message, "Failed to load config", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } //Convert and Merge @@ -424,7 +424,7 @@ public void Init() } catch (Exception ex) { - KryptonMessageBox.Show("Failed to load config.\r\n\r\n" + ex.Message, "Failed to load config", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Failed to load config.\r\n\r\n" + ex.Message, "Failed to load config", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } try @@ -433,7 +433,7 @@ public void Init() } catch (Exception ex) { - KryptonMessageBox.Show("Failed to load config.\r\n\r\n" + ex.Message, "Failed to load config", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Failed to load config.\r\n\r\n" + ex.Message, "Failed to load config", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } //Chromecast @@ -457,7 +457,7 @@ public void Init() } catch (Exception ex) { - KryptonMessageBox.Show("Failed to load config.\r\n\r\n" + ex.Message, "Failed to load config", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Failed to load config.\r\n\r\n" + ex.Message, "Failed to load config", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } @@ -476,14 +476,14 @@ public void Init() } catch (Exception ex) { - KryptonMessageBox.Show("Failed to load config.\r\n\r\n" + ex.Message, "Failed to load config", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Failed to load config.\r\n\r\n" + ex.Message, "Failed to load config", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } isPopulation = false; } catch (Exception ex) { - KryptonMessageBox.Show("Failed to load config.\r\n\r\n" + ex.Message, "Failed to load config", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Failed to load config.\r\n\r\n" + ex.Message, "Failed to load config", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -665,7 +665,7 @@ private void buttonConfigSave_Click(object sender, EventArgs e) MetadataReadPrioity.WriteAlways(); } catch (Exception ex) { - KryptonMessageBox.Show("Failed to save config.\r\n\r\n" + ex.Message, "Failed to save config", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Failed to save config.\r\n\r\n" + ex.Message, "Failed to save config", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); _ = this.BeginInvoke(new Action(Logger.Error), ex, "buttonConfigSave_Click failed saving config."); } @@ -1180,7 +1180,7 @@ private void SaveAutoKeywords() } catch (Exception ex) { - KryptonMessageBox.Show(ex.Message, "AutoKeywords failed to saved", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "AutoKeywords failed to saved", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); _ = this.BeginInvoke(new Action(Logger.Error), ex); } } @@ -1197,7 +1197,7 @@ void LoadAutoKeywords() DataGridViewHandler.FastAutoSizeRowsHeight(dataGridViewAutoKeywords, 0); } catch (Exception ex) { - KryptonMessageBox.Show(ex.Message, "AutoKeywords failed to saved", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "AutoKeywords failed to saved", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); _ = this.BeginInvoke(new Action(Logger.Error), ex, "LoadAutoKeywords"); } } @@ -1210,7 +1210,7 @@ void LoadAutoKeywords() private void PopulateMetadataCameraOwner(DataGridView dataGridView) { isCellValueUpdating = true; - DataGridViewHandler dataGridViewHandler = new DataGridViewHandler(dataGridView, (KryptonPalette)kryptonManager1.GlobalPalette, "CameraMakeModelOwner", "Camera Make/Model", DataGridViewSize.ConfigSize, allowUserToAddRow: false); + DataGridViewHandler dataGridViewHandler = new DataGridViewHandler(dataGridView, (KryptonCustomPaletteBase)kryptonManager1.GlobalPalette, "CameraMakeModelOwner", "Camera Make/Model", DataGridViewSize.ConfigSize, allowUserToAddRow: false); DataGridViewHandler.Clear(dataGridView, DataGridViewSize.ConfigSize); DataGridViewHandler.SetIsAgregated(dataGridView, true); @@ -1391,7 +1391,7 @@ private void PopulateMetadataLocationNames(DataGridView dataGridView, Dictionary private void PopulateMetadataLocationNames(DataGridView dataGridView) { isCellValueUpdating = true; - DataGridViewHandler dataGridViewHandler = new DataGridViewHandler(dataGridView, (KryptonPalette)kryptonManager1.GlobalPalette, "LocationNames", "Location names", DataGridViewSize.ConfigSize, allowUserToAddRow: false); + DataGridViewHandler dataGridViewHandler = new DataGridViewHandler(dataGridView, (KryptonCustomPaletteBase)kryptonManager1.GlobalPalette, "LocationNames", "Location names", DataGridViewSize.ConfigSize, allowUserToAddRow: false); DataGridViewHandler.Clear(dataGridView, DataGridViewSize.ConfigSize); DataGridViewHandler.SetIsAgregated(dataGridView, true); @@ -1476,11 +1476,11 @@ private void buttonLocationExport_Click(object sender, EventArgs e) string output = JsonConvert.SerializeObject(locationRecords); System.IO.File.WriteAllText(saveFileDialog1.FileName, output, Encoding.UTF8); - KryptonMessageBox.Show(locationRecords.Count.ToString() + " locations exported", "Location file exported", MessageBoxButtons.OK, KryptonMessageBoxIcon.Information, showCtrlCopy: true); + KryptonMessageBox.Show(locationRecords.Count.ToString() + " locations exported", "Location file exported", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Information, showCtrlCopy: true); } } catch (Exception ex) { - KryptonMessageBox.Show("Error saving JSON file!\r\n\r\n" + ex.Message, "Was not able to save JSON file", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Error saving JSON file!\r\n\r\n" + ex.Message, "Was not able to save JSON file", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -1513,12 +1513,12 @@ private void buttonLocationImport_Click(object sender, EventArgs e) Dictionary locationNames = new Dictionary(); foreach (LocationRecord locationRecord in readResult) locationNames.Add(locationRecord.LocationCoordinate, locationRecord.LocationDescription); PopulateMetadataLocationNames(dataGridView, locationNames); - KryptonMessageBox.Show(locationNames.Count.ToString() + " locations imported", "Location file imported", MessageBoxButtons.OK, KryptonMessageBoxIcon.Information, showCtrlCopy: true); + KryptonMessageBox.Show(locationNames.Count.ToString() + " locations imported", "Location file imported", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Information, showCtrlCopy: true); } } catch (Exception ex) { - KryptonMessageBox.Show("Error loading JSON file!\r\n\r\n" + ex.Message, "Was not able to load JSON file", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Error loading JSON file!\r\n\r\n" + ex.Message, "Was not able to load JSON file", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -1614,7 +1614,7 @@ private void textBoxBrowserURL_KeyPress(object sender, KeyPressEventArgs e) KryptonMessageBox.Show( (GlobalData.isRunningWinSmode ? "Your Windows is running Windows 10 S / 11 S mode.\r\n" + "The Chromium Web Browser doesn't support this mode.\r\n\r\n" : "") + - ex.Message, "Syntax Error", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + ex.Message, "Syntax Error", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } } @@ -1647,7 +1647,7 @@ private void dataGridViewLocationNames_CellMouseDoubleClick(object sender, DataG KryptonMessageBox.Show( (GlobalData.isRunningWinSmode ? "Your Windows is running Windows 10 S / 11 S mode.\r\n" + "The Chromium Web Browser doesn't support this mode.\r\n\r\n" : "") + - ex.Message, "Syntax Error", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + ex.Message, "Syntax Error", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -1667,7 +1667,7 @@ private void comboBoxMapZoomLevel_SelectedIndexChanged(object sender, EventArgs KryptonMessageBox.Show( (GlobalData.isRunningWinSmode ? "Your Windows is running Windows 10 S / 11 S mode.\r\n" + "The Chromium Web Browser doesn't support this mode.\r\n\r\n" : "") + - ex.Message, "Syntax Error", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + ex.Message, "Syntax Error", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -1706,7 +1706,7 @@ private void GetLocationAndShow(MapProvider mapProvider) KryptonMessageBox.Show( (GlobalData.isRunningWinSmode ? "Your Windows is running Windows 10 S / 11 S mode.\r\n" + "The Chromium Web Browser doesn't support this mode.\r\n\r\n" : "") + - ex.Message, "Syntax Error", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + ex.Message, "Syntax Error", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } catch (Exception ex) @@ -1714,7 +1714,7 @@ private void GetLocationAndShow(MapProvider mapProvider) KryptonMessageBox.Show( (GlobalData.isRunningWinSmode ? "Your Windows is running Windows 10 S / 11 S mode.\r\n" + "The Chromium Web Browser doesn't support this mode.\r\n\r\n" : "") + - ex.Message, "Syntax Error", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + ex.Message, "Syntax Error", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -2139,7 +2139,7 @@ public void CopyMetadataReadPrioity(Dictionary WebScrapingLinksStatusRead() } } catch (Exception ex) { - KryptonMessageBox.Show(ex.Message, "DeserializeObject failed...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "DeserializeObject failed...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } return result; } @@ -1054,7 +1054,7 @@ private void WebScrapingLinksStatusWrites(Dictionary l } catch (Exception ex) { - KryptonMessageBox.Show(ex.Message, "SerializeObject failed...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "SerializeObject failed...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -1079,7 +1079,7 @@ private Dictionary WebScrapingDataSetStatusRead(Li } catch (Exception ex) { - KryptonMessageBox.Show(ex.Message, "DeserializeObject failed...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "DeserializeObject failed...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } return result; } @@ -1096,7 +1096,7 @@ private void WebScrapingDataSetStatusWrite(Dictionary 0); } @@ -1626,7 +1626,7 @@ private void DataGridViewUpdatedFilenameRenameRows(DataGridView dataGridView, st catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -1668,7 +1668,7 @@ private void DataGridViewUpdatedFilenameConvertAndMergeRows(DataGridView dataGri catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -1701,7 +1701,7 @@ private void DataGridViewUpdatedFilenameColumns(DataGridView dataGridView, strin catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -1721,7 +1721,7 @@ private void CollectedMetadataFromAllDataGridView(FileEntryAttribute fileEntryAt catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -1756,7 +1756,7 @@ private void CollectMetadataFromAllDataGridViewData(out List metadataL catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -1831,7 +1831,7 @@ private void DataGridViewSetMetadataOnAllDataGridView(Metadata metadataFixedAndC catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -1852,7 +1852,7 @@ private void DataGridView_UpdatedDirtyFlags(DataGridView dataGridView) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -1876,7 +1876,7 @@ private void DataGridViewSetDirtyFlagAfterSave(Metadata metadataFixedAndCorrecte catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -1924,7 +1924,7 @@ private HashSet DataGridView_GetSelectedFilesFromActive() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } return files; } @@ -2019,7 +2019,7 @@ private void DataGridView_Rename_Invoke(string oldFullFilename, string newFullFi catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion diff --git a/PhotoTags Synchronizer/MainForm_ErrorHandling.cs b/PhotoTags Synchronizer/MainForm_ErrorHandling.cs index 1e758bb5..ec1b4ad7 100644 --- a/PhotoTags Synchronizer/MainForm_ErrorHandling.cs +++ b/PhotoTags Synchronizer/MainForm_ErrorHandling.cs @@ -50,7 +50,7 @@ private void DeleteError(string fullFilePath) } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } } @@ -84,7 +84,7 @@ public void AddError(string fileDirectory, string region, string command, string } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } } @@ -118,7 +118,7 @@ public void AddError( } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } } @@ -135,7 +135,7 @@ public void RemoveError(string fullFilePath) } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } } @@ -151,7 +151,7 @@ public void RemoveErrors() } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } } @@ -169,7 +169,7 @@ private void timerShowErrorMessage_Tick(object sender, EventArgs e) listOfErrors = ""; hasWriteAndVerifyMetadataErrors = false; - //MessageBox.Show(errors, "Warning or Errors has occured!", MessageBoxButtons.OK); + //MessageBox.Show(errors, "Warning or Errors has occured!", (KryptonMessageBoxButtons)MessageBoxButtons.OK); if (formMessageBoxWarnings == null || formMessageBoxWarnings.IsDisposed) formMessageBoxWarnings = new FormMessageBox("Warning", errors); else formMessageBoxWarnings.AppendMessage(errors); formMessageBoxWarnings.Owner = this; @@ -178,7 +178,7 @@ private void timerShowErrorMessage_Tick(object sender, EventArgs e) } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } try diff --git a/PhotoTags Synchronizer/MainForm_EventsHandling.cs b/PhotoTags Synchronizer/MainForm_EventsHandling.cs index 28012a27..ea98b2f0 100644 --- a/PhotoTags Synchronizer/MainForm_EventsHandling.cs +++ b/PhotoTags Synchronizer/MainForm_EventsHandling.cs @@ -135,7 +135,7 @@ private void kryptonRibbonQATButtonSelectAll_Click(object sender, EventArgs e) { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -159,7 +159,7 @@ private void kryptonRibbonGroupButtonSelectAll_Click(object sender, EventArgs e) { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -183,7 +183,7 @@ private void kryptonContextMenuItemFileSelectAll_Click(object sender, EventArgs { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -245,7 +245,7 @@ private void ActionSelectAll() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -268,7 +268,7 @@ private void ImageListViewSelectAll() { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -294,7 +294,7 @@ private void ComboBoxSelectAll() catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -327,7 +327,7 @@ private void kryptonRibbonQATButtonSelectNone_Click(object sender, EventArgs e) { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -350,7 +350,7 @@ private void kryptonRibbonGroupButtonSelectNone_Click(object sender, EventArgs e { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -374,7 +374,7 @@ private void kryptonContextMenuItemFileSelectNone_Click(object sender, EventArgs { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -436,7 +436,7 @@ private void ActionSelectNone() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -459,7 +459,7 @@ private void ImageListViewSelectNone() { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -485,7 +485,7 @@ private void ComboBoxSelectNone() catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -518,7 +518,7 @@ private void kryptonRibbonGroupButtonSelectToggle_Click(object sender, EventArgs { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -542,7 +542,7 @@ private void kryptonRibbonQATButtonSelectToggle_Click(object sender, EventArgs e { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -566,7 +566,7 @@ private void kryptonContextMenuItemFileSelectInverse_Click(object sender, EventA { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -628,7 +628,7 @@ private void ActionSelectToggle() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -653,7 +653,7 @@ private void ImageListViewSelectToggle() { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -701,7 +701,7 @@ private void ComboBoxSelectToggle() catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -719,7 +719,7 @@ private void DataGridViewSelectToggle(DataGridView dataGridView) } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } } @@ -746,7 +746,7 @@ private void kryptonRibbonGroupButtonSelectForwards_Click(object sender, EventAr { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -770,7 +770,7 @@ private void kryptonRibbonQATButtonSelectNext_Click(object sender, EventArgs e) { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -832,7 +832,7 @@ private void ActionSelectNext() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -878,7 +878,7 @@ private void ComboBoxSelectNext() catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -896,7 +896,7 @@ private void DataGridViewSelectNextColumn(DataGridView dataGridView) } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } } @@ -916,7 +916,7 @@ private void DataGridViewSelectNextRow(DataGridView dataGridView) } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } } @@ -943,7 +943,7 @@ private void kryptonRibbonGroupButtonSelectEqual_Click(object sender, EventArgs { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -967,7 +967,7 @@ private void kryptonRibbonQATButtonSelectEqual_Click(object sender, EventArgs e) { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -1029,7 +1029,7 @@ private void ActionSelectMatch() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -1055,7 +1055,7 @@ private void ComboBoxSelectMatch() catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -1078,7 +1078,7 @@ private void DataGridViewSelectMatch(DataGridView dataGridView) } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } } @@ -1106,7 +1106,7 @@ private void kryptonRibbonQATButtonSelectPrevious_Click(object sender, EventArgs { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -1130,7 +1130,7 @@ private void kryptonRibbonGroupButtonSelectBackwards_Click(object sender, EventA { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -1192,7 +1192,7 @@ private void ActionSelectPrevious() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -1238,7 +1238,7 @@ private void ComboBoxSelectPrevious() catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -1257,7 +1257,7 @@ private void DataGridViewSelectPreviousColumn(DataGridView dataGridView) } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } } @@ -1277,7 +1277,7 @@ private void DataGridViewSelectPreviousRow(DataGridView dataGridView) } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } } @@ -1315,7 +1315,7 @@ private void ActionSelectMediaFilesMatchCells() { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -1344,7 +1344,7 @@ private void kryptonRibbonGroupButtonToolsReselectFilesMatchDataGridView_Click_1 { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -1365,7 +1365,7 @@ private void kryptonContextMenuItemFileSelectMatchCells_Click(object sender, Eve { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -1409,7 +1409,7 @@ private void ActionSelectMediaFilesWithErrors() { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -1438,7 +1438,7 @@ private void kryptonRibbonGroupButtonToolsReselectFilesHasErrors_Click(object se { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -1468,7 +1468,7 @@ private void ActionSelectDataGridViewMatchCells() { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -1490,7 +1490,7 @@ private void kryptonRibbonGroupButtonToolsReselectDataGridVIewMatchDataGridView_ { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -1517,7 +1517,7 @@ private void kryptonRibbonGroupButtonSelectMissingMetadata_Click(object sender, { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -1602,7 +1602,7 @@ private void SelectMissingMetadata() } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } } @@ -1638,7 +1638,7 @@ private void ActionFileSelectMissingMetadata() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -1661,7 +1661,7 @@ private void kryptonContextMenuItemFileSelectFiles_Click(object sender, EventArg { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -1685,7 +1685,7 @@ private void kryptonRibbonGroupButtonSelectWildcardsSelect_Click(object sender, { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -1709,7 +1709,7 @@ private void ActionFileSelectWildcards() } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } } @@ -1751,7 +1751,7 @@ private void Action_CheckAndFixOneDriveIssues_Return_WasFoundAndRemoved() { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -1796,7 +1796,7 @@ private void Action_CheckAndFixOneDriveIssues_Return_WasFoundAndRemoved() "No - No changes in selections" ), "Result after running OneDrive duplicated tool.", - (notFixed.Count == 0 ? MessageBoxButtons.OK : MessageBoxButtons.YesNo), + (notFixed.Count == 0 ? (KryptonMessageBoxButtons)MessageBoxButtons.OK : (KryptonMessageBoxButtons)MessageBoxButtons.YesNo), KryptonMessageBoxIcon.Question, showCtrlCopy: true) == DialogResult.Yes) { ImageListView_SelectFiles(notFixed); @@ -1816,13 +1816,13 @@ private void Action_CheckAndFixOneDriveIssues_Return_WasFoundAndRemoved() "Files not fixed: 0\r\n\r\n" + "No files found, was searching for <-MachineName<-xx>>.ext\r\n", "Result running OneDrive duplicated tool.", - MessageBoxButtons.OK); + (KryptonMessageBoxButtons)MessageBoxButtons.OK); } #endregion } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } } @@ -1867,7 +1867,7 @@ private void Action_RemovedDuplicates() { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -1912,7 +1912,7 @@ private void Action_RemovedDuplicates() "No - No changes in selections" ), "Result after running OneDrive duplicated tool.", - (notFixed.Count == 0 ? MessageBoxButtons.OK : MessageBoxButtons.YesNo), + (notFixed.Count == 0 ? (KryptonMessageBoxButtons)MessageBoxButtons.OK : (KryptonMessageBoxButtons)MessageBoxButtons.YesNo), KryptonMessageBoxIcon.Question, showCtrlCopy: true) == DialogResult.Yes) { ImageListView_SelectFiles(notFixed); @@ -1932,13 +1932,13 @@ private void Action_RemovedDuplicates() "Files not fixed: 0\r\n\r\n" + "No files found, was searching for equal DateTaken between metadata in media files\r\n", "Result running OneDrive duplicated tool.", - MessageBoxButtons.OK); + (KryptonMessageBoxButtons)MessageBoxButtons.OK); } #endregion } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } } @@ -1969,7 +1969,7 @@ private void kryptonRibbonGroupButtonHomeCut_Click(object sender, EventArgs e) { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -1990,7 +1990,7 @@ private void KryptonContextMenuItemGenericCut_Click(object sender, EventArgs e) { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -2011,7 +2011,7 @@ private void kryptonContextMenuItemFileCut_Click(object sender, EventArgs e) { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -2073,7 +2073,7 @@ private void ActionCut() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -2094,7 +2094,7 @@ private void MediaFilesCut() catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -2107,7 +2107,7 @@ private void FolderCut() string folder = GetNodeFolderRealPath(treeViewFolderBrowser1.SelectedNode as TreeNodePath); if (!Directory.Exists (folder)) { - KryptonMessageBox.Show("Not a valid folder selected. Try select anoter folder.\r\nSelected system folder: " + (string.IsNullOrWhiteSpace(folder) ? "Unknown" : folder), "Invalid folder selection...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); + KryptonMessageBox.Show("Not a valid folder selected. Try select anoter folder.\r\nSelected system folder: " + (string.IsNullOrWhiteSpace(folder) ? "Unknown" : folder), "Invalid folder selection...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); return; } @@ -2120,7 +2120,7 @@ private void FolderCut() catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -2142,7 +2142,7 @@ private void DataGridGenericCut(DataGridView dataGridView) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -2158,7 +2158,7 @@ private void ConvertAndMergeCut() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -2174,7 +2174,7 @@ private void DateCut() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -2189,7 +2189,7 @@ private void ExiftoolCut() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -2205,7 +2205,7 @@ private void ExiftoolWarningCut() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -2221,7 +2221,7 @@ private void MapCut() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -2245,7 +2245,7 @@ private void PeopleCut() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -2261,7 +2261,7 @@ private void PropertiesCut() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -2277,7 +2277,7 @@ private void RenameCut() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -2308,7 +2308,7 @@ private void TagsAndKeywordsCut() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -2335,7 +2335,7 @@ private void kryptonRibbonGroupButtonHomeCopy_Click(object sender, EventArgs e) { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -2356,7 +2356,7 @@ private void KryptonContextMenuItemGenericCopy_Click(object sender, EventArgs e) { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -2378,7 +2378,7 @@ private void kryptonContextMenuItemFileCopy_Click(object sender, EventArgs e) { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -2440,7 +2440,7 @@ private void ActionCopy() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -2461,7 +2461,7 @@ private void MediaFilesCopy() catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -2474,7 +2474,7 @@ private void FolderCopy() string folder = GetNodeFolderRealPath(treeViewFolderBrowser1.SelectedNode as TreeNodePath); if (!Directory.Exists(folder)) { - KryptonMessageBox.Show("Not a valid folder selected. Try select anoter folder.\r\nSelected system folder: " + (string.IsNullOrWhiteSpace(folder) ? "Unknown" : folder), "Invalid folder...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); + KryptonMessageBox.Show("Not a valid folder selected. Try select anoter folder.\r\nSelected system folder: " + (string.IsNullOrWhiteSpace(folder) ? "Unknown" : folder), "Invalid folder...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); return; } @@ -2488,7 +2488,7 @@ private void FolderCopy() catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } @@ -2507,7 +2507,7 @@ private void DataGridGenericCopy(DataGridView dataGridView) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -2523,7 +2523,7 @@ private void ConvertAndMergeCopy() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -2539,7 +2539,7 @@ private void DateCopy() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -2555,7 +2555,7 @@ private void ExiftoolCopy() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -2571,7 +2571,7 @@ private void ExiftoolWarningCopy() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -2587,7 +2587,7 @@ private void MapCopy() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -2603,7 +2603,7 @@ private void PeopleCopy() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -2618,7 +2618,7 @@ private void PropertiesCopy() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -2634,7 +2634,7 @@ private void RenameCopy() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -2650,7 +2650,7 @@ private void TagsAndKeywordsCopy() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -2673,7 +2673,7 @@ private void kryptonRibbonGroupButtonHomePaste_Click(object sender, EventArgs e) { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -2693,7 +2693,7 @@ private void KryptonContextMenuItemGenericPaste_Click(object sender, EventArgs e { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -2714,7 +2714,7 @@ private void kryptonContextMenuItemFilePaste_Click(object sender, EventArgs e) { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -2776,7 +2776,7 @@ private void ActionPaste() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -2817,7 +2817,7 @@ private void MediaFilesPaste() catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -2835,7 +2835,7 @@ private void FolderPaste() if (!Directory.Exists(targetFolder)) { - KryptonMessageBox.Show("Not a valid target folder selected. Try select anoter folder.\r\nSelected system folder: " + (string.IsNullOrWhiteSpace(targetFolder) ? "Unknown" : targetFolder), "Invalid folder...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); + KryptonMessageBox.Show("Not a valid target folder selected. Try select anoter folder.\r\nSelected system folder: " + (string.IsNullOrWhiteSpace(targetFolder) ? "Unknown" : targetFolder), "Invalid folder...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); return; } @@ -2846,7 +2846,7 @@ private void FolderPaste() catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -2866,7 +2866,7 @@ private void DataGridViewGenrericPaste(DataGridView dataGridView) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -2886,7 +2886,7 @@ private void ConvertAndMergePaste() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -2902,7 +2902,7 @@ private void DatePaste() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -2918,7 +2918,7 @@ private void ExiftoolPaste() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -2934,7 +2934,7 @@ private void ExiftoolWarningPaste() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -2950,7 +2950,7 @@ private void MapPaste() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -2973,7 +2973,7 @@ private void PeoplePaste() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -2993,7 +2993,7 @@ private void PropertiesPaste() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -3016,7 +3016,7 @@ private void RenamePaste() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -3066,7 +3066,7 @@ private void TagsAndKeywordsPaste() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -3077,7 +3077,7 @@ private void TagsAndKeywordsPaste() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -3100,7 +3100,7 @@ private void kryptonRibbonGroupButtonHomeFileSystemDelete_Click(object sender, E { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -3121,7 +3121,7 @@ private void KryptonContextMenuItemGenericFileSystemDelete_Click(object sender, { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -3142,7 +3142,7 @@ private void kryptonContextMenuItemFileDelete_Click(object sender, EventArgs e) { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -3204,7 +3204,7 @@ private void ActionGridCellAndFileSystemDelete() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -3220,11 +3220,11 @@ private void FileSystemSelectedFilesDelete() HashSet selectedFiles = ImageListViewHandler.GetFilesSelectedItemsCache(imageListView1); if (IsFileInAnyQueueLock(selectedFiles)) { - KryptonMessageBox.Show("Can't delete files. Files are being used, you need wait until process is finished.", "File in queue...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); + KryptonMessageBox.Show("Can't delete files. Files are being used, you need wait until process is finished.", "File in queue...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); return; } - if (KryptonMessageBox.Show("Are you sure you will delete the files", "Files will be deleted!", MessageBoxButtons.YesNo, KryptonMessageBoxIcon.Question, showCtrlCopy: true) == DialogResult.Yes) + if (KryptonMessageBox.Show("Are you sure you will delete the files", "Files will be deleted!", (KryptonMessageBoxButtons)MessageBoxButtons.YesNo, KryptonMessageBoxIcon.Question, showCtrlCopy: true) == DialogResult.Yes) { using (new WaitCursor()) { @@ -3238,13 +3238,13 @@ private void FileSystemSelectedFilesDelete() } catch (Exception ex) { - KryptonMessageBox.Show(ex.Message, "Syntax error", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } imageListView1.Focus(); @@ -3261,13 +3261,13 @@ private void FileSystemFolderDelete() string folder = GetSelectedNodeFullRealPath(); if (folder == null || !Directory.Exists(folder)) { - KryptonMessageBox.Show("Can't delete folder. No valid folder selected.", "Invalid folder...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); + KryptonMessageBox.Show("Can't delete folder. No valid folder selected.", "Invalid folder...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); return; } if (IsFolderInAnyQueueLock(folder)) { - KryptonMessageBox.Show("Can't delete folder. Files in folder is been used, you need wait until process is finished.", "File are in queue....", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Can't delete folder. Files in folder is been used, you need wait until process is finished.", "File are in queue....", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); return; } @@ -3280,7 +3280,7 @@ private void FileSystemFolderDelete() (KryptonMessageBox.Show("You are about to delete the folder:\r\n\r\n" + folder + "\r\n\r\n" + "There are " + (fileAndFolderEntriesCount.Length == 51 ? " over 50+" : fileAndFolderEntriesCount.Length.ToString()) + " files found.\r\n\r\n" + - "Procced?", "Are you sure?", MessageBoxButtons.OKCancel, KryptonMessageBoxIcon.Question, showCtrlCopy: true) == DialogResult.OK) + "Procced?", "Are you sure?", (KryptonMessageBoxButtons)MessageBoxButtons.OKCancel, KryptonMessageBoxIcon.Question, showCtrlCopy: true) == DialogResult.OK) ) { using (new WaitCursor()) @@ -3313,7 +3313,7 @@ private void FileSystemFolderDelete() catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -3332,7 +3332,7 @@ private void DataGridViewGenrericDelete(DataGridView dataGridView) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -3352,7 +3352,7 @@ private void ConvertAndMergeDelete() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -3368,7 +3368,7 @@ private void DateDelete() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -3384,7 +3384,7 @@ private void ExiftoolDelete() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -3400,7 +3400,7 @@ private void ExiftoolWarningDelete() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -3416,7 +3416,7 @@ private void MapDelete() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -3437,7 +3437,7 @@ private void PeopleDelete() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -3457,7 +3457,7 @@ private void PropertiesDelete() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -3473,7 +3473,7 @@ private void RenameDelete() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -3500,7 +3500,7 @@ private void TagsAndKeywordsDelete() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -3527,7 +3527,7 @@ private void kryptonRibbonGroupButtonHomeUndo_Click(object sender, EventArgs e) { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -3548,7 +3548,7 @@ private void KryptonContextMenuItemGenericUndo_Click(object sender, EventArgs e) { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -3608,7 +3608,7 @@ private void ActionUndo() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -3627,7 +3627,7 @@ private void DataGridViewGenrericUndo(DataGridView dataGridView) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -3647,7 +3647,7 @@ private void ConvertAndMergeUndo() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -3663,7 +3663,7 @@ private void DateUndo() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -3679,7 +3679,7 @@ private void ExiftoolUndo() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -3695,7 +3695,7 @@ private void ExiftoolWarningUndo() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -3711,7 +3711,7 @@ private void MapUndo() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -3732,7 +3732,7 @@ private void PeopleUndo() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -3752,7 +3752,7 @@ private void PropertiesUndo() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -3768,7 +3768,7 @@ private void RenameUndo() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -3791,7 +3791,7 @@ private void TagsAndKeywordsUndo() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -3818,7 +3818,7 @@ private void kryptonRibbonGroupButtonHomeRedo_Click(object sender, EventArgs e) { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -3838,7 +3838,7 @@ private void KryptonContextMenuItemGenericRedo_Click(object sender, EventArgs e) { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -3898,7 +3898,7 @@ private void ActionRedo() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -3919,7 +3919,7 @@ private void DataGridViewGenrericRedo(DataGridView dataGridView) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -3939,7 +3939,7 @@ private void ConvertAndMergeRedo() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -3955,7 +3955,7 @@ private void DateRedo() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -3971,7 +3971,7 @@ private void ExiftoolRedo() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -3987,7 +3987,7 @@ private void ExiftoolWarningRedo() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -4003,7 +4003,7 @@ private void MapRedo() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -4024,7 +4024,7 @@ private void PeopleRedo() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -4044,7 +4044,7 @@ private void PropertiesRedo() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -4060,7 +4060,7 @@ private void RenameRedo() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -4082,7 +4082,7 @@ private void TagsAndKeywordsRedo() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -4109,7 +4109,7 @@ private void kryptonRibbonGroupButtonHomeFind_Click(object sender, EventArgs e) { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -4129,7 +4129,7 @@ private void KryptonContextMenuItemGenericFind_Click(object sender, EventArgs e) { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -4192,7 +4192,7 @@ private void ActionFind() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -4208,7 +4208,7 @@ private void FolderSearchFilterFolderFind() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -4272,7 +4272,7 @@ private void MediaFilesFind() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -4291,7 +4291,7 @@ private void DataGridViewGenrericFind(DataGridView dataGridView) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -4311,7 +4311,7 @@ private void ConvertAndMergeFind() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -4327,7 +4327,7 @@ private void DateFind() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -4343,7 +4343,7 @@ private void ExiftoolFind() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -4359,7 +4359,7 @@ private void ExiftoolWarningFind() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -4375,7 +4375,7 @@ private void MapFind() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -4396,7 +4396,7 @@ private void PeopleFind() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -4412,7 +4412,7 @@ private void PropertiesFind() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -4428,7 +4428,7 @@ private void RenameFind() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -4450,7 +4450,7 @@ private void TagsAndKeywordsFind() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -4477,7 +4477,7 @@ private void kryptonRibbonGroupButtonHomeReplace_Click(object sender, EventArgs { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -4497,7 +4497,7 @@ private void KryptonContextMenuItemGenericReplace_Click(object sender, EventArgs { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -4557,7 +4557,7 @@ private void ActionFindAndReplace() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -4576,7 +4576,7 @@ private void DataGridViewGenrericFindAndReplace(DataGridView dataGridView) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -4596,7 +4596,7 @@ private void ConvertAndMergeFindAndReplace() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -4612,7 +4612,7 @@ private void DateFindAndReplace() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -4628,7 +4628,7 @@ private void ExiftoolFindAndReplace() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -4644,7 +4644,7 @@ private void ExiftoolWarningFindAndReplace() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -4660,7 +4660,7 @@ private void MapFindAndReplace() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -4680,7 +4680,7 @@ private void PeopleFindAndReplace() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -4700,7 +4700,7 @@ private void PropertiesFindAndReplace() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -4716,7 +4716,7 @@ private void RenameFindAndReplace() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -4738,7 +4738,7 @@ private void TagsAndKeywordsFindAndReplace() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -4765,7 +4765,7 @@ private void KryptonContextMenuItemGenericFavoriteAdd_Click(object sender, Event { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -4825,7 +4825,7 @@ private void ActionFavoriteAdd() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -4841,7 +4841,7 @@ private void DataGridViewGenrericFavoriteAdd(DataGridView dataGridView) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -4857,7 +4857,7 @@ private void ConvertAndMergeFavoriteAdd() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -4873,7 +4873,7 @@ private void DateFavoriteAdd() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -4889,7 +4889,7 @@ private void ExiftoolFavoriteAdd() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -4905,7 +4905,7 @@ private void ExiftoolWarningFavoriteAdd() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -4921,7 +4921,7 @@ private void MapFavoriteAdd() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -4937,7 +4937,7 @@ private void PeopleFavoriteAdd() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -4953,7 +4953,7 @@ private void PropertiesFavoriteAdd() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -4969,7 +4969,7 @@ private void RenameFavoriteAdd() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -4985,7 +4985,7 @@ private void TagsAndKeywordsFavoriteAdd() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -5008,7 +5008,7 @@ private void KryptonContextMenuItemGenericFavoriteDelete_Click(object sender, Ev { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -5068,7 +5068,7 @@ private void ActionFavoriteDelete() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -5084,7 +5084,7 @@ private void DataGridViewGenrericFavoriteDelete(DataGridView dataGridView) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -5100,7 +5100,7 @@ private void ConvertAndMergeFavoriteDelete() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -5116,7 +5116,7 @@ private void DateFavoriteDelete() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -5132,7 +5132,7 @@ private void ExiftoolFavoriteDelete() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -5148,7 +5148,7 @@ private void ExiftoolWarningFavoriteDelete() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -5164,7 +5164,7 @@ private void MapFavoriteDelete() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -5180,7 +5180,7 @@ private void PeopleFavoriteDelete() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -5196,7 +5196,7 @@ private void PropertiesFavoriteDelete() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -5212,7 +5212,7 @@ private void RenameFavoriteDelete() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -5228,7 +5228,7 @@ private void TagsAndKeywordsFavoriteDelete() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -5251,7 +5251,7 @@ private void KryptonContextMenuItemFavoriteToggle_Click(object sender, EventArgs { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -5311,7 +5311,7 @@ private void ActionFavoriteToggle() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -5327,7 +5327,7 @@ private void DataGridViewGenrericFavoriteToogle(DataGridView dataGridView) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -5343,7 +5343,7 @@ private void ConvertAndMergeFavoriteToogle() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -5359,7 +5359,7 @@ private void DateFavoriteToogle() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -5375,7 +5375,7 @@ private void ExiftoolFavoriteToogle() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -5391,7 +5391,7 @@ private void ExiftoolWarningFavoriteToogle() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -5407,7 +5407,7 @@ private void MapFavoriteToogle() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -5423,7 +5423,7 @@ private void PeopleFavoriteToogle() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -5439,7 +5439,7 @@ private void PropertiesFavoriteToogle() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -5455,7 +5455,7 @@ private void RenameFavoriteToogle() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -5471,7 +5471,7 @@ private void TagsAndKeywordsFavoriteToogle() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -5494,7 +5494,7 @@ private void kryptonRibbonGroupButtonDataGridViewRowsFavorite_Click(object sende { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -5515,7 +5515,7 @@ private void KryptonContextMenuItemGenericRowShowFavorite_Click(object sender, E { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -5535,7 +5535,7 @@ private void UpdateBottonsEqualAndFavorite(bool hideEqualColumns, bool showFavou catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -5591,7 +5591,7 @@ private void ActionRowsShowFavoriteToggle() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -5609,7 +5609,7 @@ private void DataGridViewGenrericShowFavoriteToogle(DataGridView dataGridView) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -5625,7 +5625,7 @@ private void ConvertAndMergeRowsShowFavoriteToggle() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -5641,7 +5641,7 @@ private void DateRowsShowFavoriteToggle() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -5657,7 +5657,7 @@ private void ExiftoolRowsShowFavoriteToggle() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -5673,7 +5673,7 @@ private void ExiftoolWarningRowsShowFavoriteToggle() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -5689,7 +5689,7 @@ private void MapRowsShowFavoriteToggle() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -5705,7 +5705,7 @@ private void PeopleRowsShowFavoriteToggle() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -5721,7 +5721,7 @@ private void PropertiesRowsShowFavoriteToggle() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -5737,7 +5737,7 @@ private void RenameRowsShowFavoriteToggle() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -5753,7 +5753,7 @@ private void TagsAndKeywordsRowsShowFavoriteToggle() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -5776,7 +5776,7 @@ private void KryptonContextMenuItemGenericRowHideEqual_Click(object sender, Even { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -5797,7 +5797,7 @@ private void kryptonRibbonGroupButtonDataGridViewRowsHideEqual_Click(object send { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -5857,7 +5857,7 @@ private void ActionRowsHideEqualToggle() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -5874,7 +5874,7 @@ private void DataGridViewGenrericRowsHideEqualToogle(DataGridView dataGridView) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -5890,7 +5890,7 @@ private void ConvertAndMergeRowsHideEqualToggle() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -5906,7 +5906,7 @@ private void DateRowsHideEqualToggle() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -5922,7 +5922,7 @@ private void ExiftoolRowsHideEqualToggle() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -5938,7 +5938,7 @@ private void ExiftoolWarningRowsHideEqualToggle() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -5954,7 +5954,7 @@ private void MapRowsHideEqualToggle() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -5970,7 +5970,7 @@ private void PeopleRowsHideEqualToggle() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -5986,7 +5986,7 @@ private void PropertiesRowsHideEqualToggle() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -6002,7 +6002,7 @@ private void RenameRowsHideEqualToggle() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -6018,7 +6018,7 @@ private void TagsAndKeywordsRowsHideEqualToggle() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -6041,7 +6041,7 @@ private void kryptonRibbonGroupButtonHomeCopyText_Click(object sender, EventArgs { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -6062,7 +6062,7 @@ private void KryptonContextMenuItemGenericCopyText_Click(object sender, EventArg { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -6124,7 +6124,7 @@ private void ActionCopyText() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -6137,7 +6137,7 @@ private void FolderCopyNameToClipboard_Click() string folder = GetSelectedNodeFullRealPath(); if (folder == null || !Directory.Exists(folder)) { - KryptonMessageBox.Show("Can't copy folder name. Not a valid folder selected.", "Invalid folder", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Can't copy folder name. Not a valid folder selected.", "Invalid folder", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); return; } Clipboard.SetText(folder); @@ -6145,7 +6145,7 @@ private void FolderCopyNameToClipboard_Click() catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -6165,7 +6165,7 @@ private void MediaFilesCopyNameToClipboard_Click() catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -6248,7 +6248,7 @@ private void ActionTriStateToggle() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -6267,7 +6267,7 @@ private void DataGridViewGenericTagActionToggle(DataGridView dataGridView, strin catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -6283,7 +6283,7 @@ private void TagsAndKeywordsTriStateToggle() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -6299,7 +6299,7 @@ private void PeopleTriStateToggle() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -6363,7 +6363,7 @@ private void ActionTriStateOn() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -6380,7 +6380,7 @@ private void TagsAndKeywordsTriStateOn() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -6397,7 +6397,7 @@ private void PeopleTriStateOn() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -6461,7 +6461,7 @@ private void ActionTriStateOff() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -6478,7 +6478,7 @@ private void TagsAndKeywordsTriStateOff() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -6495,7 +6495,7 @@ private void PeopleTriStateOff() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -6542,7 +6542,7 @@ private void kryptonRibbonQATButtonSaveAndAutoCorrect_Click(object sender, Event { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -6589,7 +6589,7 @@ private void kryptonRibbonGroupButtonHomeSaveAutoCorrectAndSave_Click(object sen { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -6640,7 +6640,7 @@ private void kryptonRibbonQATButtonSave_Click(object sender, EventArgs e) { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -6687,7 +6687,7 @@ private void kryptonRibbonGroupButtonHomeSaveSave_Click(object sender, EventArgs { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -6734,7 +6734,7 @@ private void KryptonContextMenuItemGenericSave_Click(object sender, EventArgs e) { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -6781,7 +6781,7 @@ private void kryptonContextMenuItemFileSave_Click(object sender, EventArgs e) { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -6828,7 +6828,7 @@ private void kryptonContextMenuItemFileSaveAndAutoCorrect_Click(object sender, E { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -6853,20 +6853,20 @@ private void ActionSave(bool useAutoCorrect) switch (ActiveKryptonPage) { case KryptonPages.None: - KryptonMessageBox.Show("No active View is selected. You need to select a view so application knows what View to save.", "Nothing to save...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); + KryptonMessageBox.Show("No active View is selected. You need to select a view so application knows what View to save.", "Nothing to save...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); break; case KryptonPages.kryptonPageFolderSearchFilterFolder: - KryptonMessageBox.Show("'Folders view' is avtive. You need to select diffrent view so application knows what View to save.", "Nothing to save...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); + KryptonMessageBox.Show("'Folders view' is avtive. You need to select diffrent view so application knows what View to save.", "Nothing to save...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); break; case KryptonPages.kryptonPageFolderSearchFilterSearch: - KryptonMessageBox.Show("'Search view' is avtive. You need to select diffrent view so application knows what View to save.", "Nothing to save...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); + KryptonMessageBox.Show("'Search view' is avtive. You need to select diffrent view so application knows what View to save.", "Nothing to save...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); break; case KryptonPages.kryptonPageFolderSearchFilterFilter: - KryptonMessageBox.Show("'Filter view' is avtive. You need to select diffrent view so application knows what View to save.", "Nothing to save...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); + KryptonMessageBox.Show("'Filter view' is avtive. You need to select diffrent view so application knows what View to save.", "Nothing to save...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); break; case KryptonPages.kryptonPageMediaFiles: - KryptonMessageBox.Show("'Show Media Files view' is avtive. You need to select diffrent view so application knows what View to save.", "Nothing to save...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); + KryptonMessageBox.Show("'Show Media Files view' is avtive. You need to select diffrent view so application knows what View to save.", "Nothing to save...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); break; case KryptonPages.kryptonPageToolboxTags: case KryptonPages.kryptonPageToolboxPeople: @@ -6876,10 +6876,10 @@ private void ActionSave(bool useAutoCorrect) GlobalData.IsAgregatedProperties = false; break; case KryptonPages.kryptonPageToolboxExiftool: - KryptonMessageBox.Show("'Exiftool view' is avtive. You need to select diffrent view so application knows what View to save.", "Nothing to save...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); + KryptonMessageBox.Show("'Exiftool view' is avtive. You need to select diffrent view so application knows what View to save.", "Nothing to save...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); break; case KryptonPages.kryptonPageToolboxWarnings: - KryptonMessageBox.Show("'Exiftool Warnings' view is avtive. You need to select diffrent view so application knows what View to save.", "Nothing to save...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); + KryptonMessageBox.Show("'Exiftool Warnings' view is avtive. You need to select diffrent view so application knows what View to save.", "Nothing to save...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); break; case KryptonPages.kryptonPageToolboxProperties: SaveProperties(); @@ -6900,7 +6900,7 @@ private void ActionSave(bool useAutoCorrect) catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -6966,7 +6966,7 @@ private void SaveDataGridViewMetadata(bool useAutoCorrect) if (metadataListOriginalExiftool.Count != metadataListFromDataGridView.Count) { - KryptonMessageBox.Show("Error occure", "Can't read and macth the data...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); + KryptonMessageBox.Show("Error occure", "Can't read and macth the data...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); return; } @@ -7026,7 +7026,7 @@ private void SaveDataGridViewMetadata(bool useAutoCorrect) "Can't find any value that was changed.\r\n" + "Compatibility Check and Fix can replace values back to original values.\t\n" + (useAutoCorrect ? "Please note AutoCorrect can have changed back information." : ""), - "Nothing to save...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); + "Nothing to save...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); return; } ThreadSaveUsingExiftoolToMedia(); @@ -7034,7 +7034,7 @@ private void SaveDataGridViewMetadata(bool useAutoCorrect) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -7092,7 +7092,7 @@ private void SaveProperties() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -7162,7 +7162,7 @@ private void SaveConvertAndMerge() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } @@ -7229,7 +7229,7 @@ private void ActionFastCopyNoOverwrite() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -7244,7 +7244,7 @@ private void TagsAndKeywordsFastCopyTextNoOverwrite() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -7260,7 +7260,7 @@ private void MapFastCopyTextNoOverwrite() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -7279,7 +7279,7 @@ private void DateFastCopyTextNoOverwrite() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -7345,7 +7345,7 @@ private void ActionFastCopyOverwrite() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -7360,7 +7360,7 @@ private void TagsAndKeywordsFastCopyTextOverwrite() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -7377,7 +7377,7 @@ private void MapFastCopyTextAndOverwrite() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } @@ -7397,7 +7397,7 @@ private void DateFastCopyTextAndOverwrite() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } @@ -7470,7 +7470,7 @@ private void ActionFileSystemRename() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -7487,7 +7487,7 @@ private void CellRename() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -7502,7 +7502,7 @@ private void MediafilesRename() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -7517,7 +7517,7 @@ private void FolderRename() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -7543,7 +7543,7 @@ private void kryptonRibbonGroupButtonMediaFileRotate90CCW_Click(object sender, E { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -7566,7 +7566,7 @@ private void KryptonContextMenuItemGenericRotate270_Click(object sender, EventAr { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -7618,7 +7618,7 @@ private void ActionRotate270() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -7633,7 +7633,7 @@ private void MediaRotate270() catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -7659,7 +7659,7 @@ private void KryptonContextMenuItemGenericRotate180_Click(object sender, EventAr { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -7683,7 +7683,7 @@ private void kryptonRibbonGroupButtonMediaFileRotate180_Click(object sender, Eve { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -7736,7 +7736,7 @@ private void ActionRotate180() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -7751,7 +7751,7 @@ private void MediaRotate180() catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -7777,7 +7777,7 @@ private void kryptonRibbonGroupButtonMediaFileRotate90CW_Click(object sender, Ev { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -7800,7 +7800,7 @@ private void KryptonContextMenuItemGenericRotate90_Click(object sender, EventArg { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -7852,7 +7852,7 @@ private void ActionRotate90() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -7867,7 +7867,7 @@ private void MediaRotate90() catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -7893,7 +7893,7 @@ private void KryptonContextMenuItemGenericMediaViewAsPoster_Click(object sender, { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -7916,7 +7916,7 @@ private void kryptonRibbonQATButtonMediaPoster_Click(object sender, EventArgs e) { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -7939,7 +7939,7 @@ private void kryptonRibbonGroupButtonDatGridShowPoster_Click(object sender, Even { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -8001,7 +8001,7 @@ private void ActionMediaViewAsPoster() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -8016,7 +8016,7 @@ private void GenericMediaViewAsPoster(DataGridView dataGridView) } catch (Exception ex) { - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -8032,7 +8032,7 @@ private void FolderMediaViewAsPoster() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -8048,7 +8048,7 @@ private void MediaFilesMediaViewAsPoster() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -8064,7 +8064,7 @@ private void DateMediaViewAsPoster() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -8080,7 +8080,7 @@ private void ExiftoolMediaViewAsPoster() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -8096,7 +8096,7 @@ private void ExiftoolWarningMediaViewAsPoster() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -8112,7 +8112,7 @@ private void MapMediaViewAsPoster() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -8128,7 +8128,7 @@ private void PeopleMediaViewAsPoster() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -8144,7 +8144,7 @@ private void TagsAndKeywordsMediaViewAsPoster() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -8160,7 +8160,7 @@ private void PropertiesMediaViewAsPoster() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -8176,7 +8176,7 @@ private void RenameMediaViewAsPoster() } catch (Exception ex) { - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -8192,7 +8192,7 @@ private void ConvertAndMergeMediaViewAsPoster() } catch (Exception ex) { - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -8218,7 +8218,7 @@ private void KryptonContextMenuItemGenericMediaViewAsFull_Click(object sender, E { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -8242,7 +8242,7 @@ private void kryptonRibbonQATButtonMediaPreview_Click(object sender, EventArgs e { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -8304,7 +8304,7 @@ private void ActionMediaViewAsFull() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -8320,7 +8320,7 @@ private void imageListView1_ItemHover(object sender, ItemHoverEventArgs e) catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -8337,7 +8337,7 @@ private void GenericMediaPreviewFoldeOrMediaList(string selectedMediaFilePullPat catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -8364,7 +8364,7 @@ private void ActionPreviewPreviewOpen() catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -8383,7 +8383,7 @@ private void ActionPreviewPreviewClose() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -8398,7 +8398,7 @@ private void kryptonRibbonGroupButtonPreviewPreview_Click(object sender, EventAr catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } @@ -8427,7 +8427,7 @@ private void kryptonRibbonMain_SelectedTabChanged(object sender, EventArgs e) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -8444,7 +8444,7 @@ private void MediaviewHoveredItemMediaViewAsFull() catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -8488,7 +8488,7 @@ private void GenericMediaPreviewSelectedInDataGridView(DataGridView dataGridView catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error); } } #endregion @@ -8504,7 +8504,7 @@ private void TagsAndKeywordMediaPreview() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -8520,7 +8520,7 @@ private void DateMediaPreview() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -8536,7 +8536,7 @@ private void PeopleMediaPreview() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -8552,7 +8552,7 @@ private void MapMediaPreview() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -8568,7 +8568,7 @@ private void ExiftoolMediaPreview() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -8584,7 +8584,7 @@ private void WarningsMediaPreview() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -8600,7 +8600,7 @@ private void PropertiesMediaPreview() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -8616,7 +8616,7 @@ private void RenameMediaPreview() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -8632,7 +8632,7 @@ private void ConvertAndMergeMediaPreview() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -8686,7 +8686,7 @@ private void ActionRefreshFolderAndFiles() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -8708,7 +8708,7 @@ private void kryptonRibbonGroupButtonHomeFileSystemRefreshFolder_Click(object se { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -8732,7 +8732,7 @@ private void KryptonContextMenuItemGenericFileSystemRefreshFolder_Click(object s { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -8757,7 +8757,7 @@ private void FolderRefresh() catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -8774,7 +8774,7 @@ private void MediaFilesRefresh() catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -8827,7 +8827,7 @@ private void ActionReadSubfolders() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -8849,7 +8849,7 @@ private void KryptonContextMenuItemGenericReadSubfolders_Click(object sender, Ev { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -8871,7 +8871,7 @@ private void FolderReadSubfolders() catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -8933,7 +8933,7 @@ private void ActionOpenExplorerLocation() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -8955,7 +8955,7 @@ private void kryptonRibbonGroupButtonHomeFileSystemOpenExplorerLocation_Click(ob { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -8979,7 +8979,7 @@ private void KryptonContextMenuItemGenericOpenExplorerLocation_Click(object send { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -9004,12 +9004,12 @@ private void MediaFilesOpenExplorerLocation(HashSet files) catch (Exception ex) { errorMessage += (errorMessage == "" ? "" : "\r\n") + ex.Message; } } - if (errorMessage != "") KryptonMessageBox.Show(errorMessage, "Failed to start application process...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + if (errorMessage != "") KryptonMessageBox.Show(errorMessage, "Failed to start application process...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -9023,13 +9023,13 @@ private void FolderOpenExplorerLocation() string folder = GetSelectedNodeFullRealPath(); if (folder == null || !Directory.Exists(folder)) { - KryptonMessageBox.Show("Can't open folder location. Not a valid folder selected.", "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); + KryptonMessageBox.Show("Can't open folder location. Not a valid folder selected.", "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); return; } ApplicationActivation.ShowFolderInEplorer(folder); } catch (Exception ex) { - KryptonMessageBox.Show(ex.Message, "Failed to start application process...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Failed to start application process...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -9097,7 +9097,7 @@ private void ActionFileSystemVerbOpen(int? columnIndex, int? rowIndex) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error starting ActionFileSystemVerbOpen...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error starting ActionFileSystemVerbOpen...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -9116,7 +9116,7 @@ private void kryptonContextMenuItemFileOpen_Click(object sender, EventArgs e) { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -9140,7 +9140,7 @@ private void imageListView1_ItemDoubleClick(object sender, ItemClickEventArgs e) { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -9164,7 +9164,7 @@ private void kryptonRibbonGroupButtonHomeFileSystemOpen_Click(object sender, Eve { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -9188,7 +9188,7 @@ private void KryptonContextMenuItemGenericOpen_Click(object sender, EventArgs e) { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -9264,12 +9264,12 @@ private void MediaFilesVerbOpen_Click(HashSet files) catch (Exception ex) { errorMessage += (errorMessage == "" ? "" : "\r\n") + ex.Message; } } - if (errorMessage != "") KryptonMessageBox.Show(errorMessage, "Failed to start application process...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + if (errorMessage != "") KryptonMessageBox.Show(errorMessage, "Failed to start application process...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error starting ActionFileSystemVerbOpen...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error starting ActionFileSystemVerbOpen...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -9331,7 +9331,7 @@ private void ActionFileSystemOpenWith(ApplicationData applicationData) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -9347,7 +9347,7 @@ private void OpenWithSelectedVerb(ApplicationData applicationData, HashSet files) catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } @@ -9556,7 +9556,7 @@ private void ActionFileSystemVerbEdit() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -9575,7 +9575,7 @@ private void kryptonContextMenuItemFileEdit_Click(object sender, EventArgs e) { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -9599,7 +9599,7 @@ private void kryptonRibbonGroupButtonHomeFileSystemVerbEdit_Click(object sender, { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -9622,7 +9622,7 @@ private void KryptonContextMenuItemGenericFileSystemVerbEdit_Click(object sender { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -9646,12 +9646,12 @@ private void MediaFilesVerbEdit(HashSet files) catch (Exception ex) { errorMessage += (errorMessage == "" ? "" : "\r\n") + ex.Message; } } - if (errorMessage != "") KryptonMessageBox.Show(errorMessage, "Failed to start application process...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + if (errorMessage != "") KryptonMessageBox.Show(errorMessage, "Failed to start application process...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -9713,7 +9713,7 @@ private void ActionFileSystemRunCommand() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -9735,7 +9735,7 @@ private void kryptonRibbonGroupButtonFileSystemRunCommand_Click(object sender, E { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -9759,7 +9759,7 @@ private void KryptonContextMenuItemGenericFileSystemRunCommand_Click(object send { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -9796,7 +9796,7 @@ private void MediaFilesRunCommand(HashSet files) FormSplash.UpdateStatus("Create AutoCorrect file..."); #region AutoCorrect AutoCorrect autoCorrect = AutoCorrect.ConvertConfigValue(Properties.Settings.Default.AutoCorrect); - if (autoCorrect == null) KryptonMessageBox.Show("AutoCorrect: " + Properties.Settings.Default.AutoCorrect, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + if (autoCorrect == null) KryptonMessageBox.Show("AutoCorrect: " + Properties.Settings.Default.AutoCorrect, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); float locationAccuracyLatitude = Properties.Settings.Default.LocationAccuracyLatitude; float locationAccuracyLongitude = Properties.Settings.Default.LocationAccuracyLongitude; int writeCreatedDateAndTimeAttributeTimeIntervalAccepted = Properties.Settings.Default.WriteFileAttributeCreatedDateTimeIntervalAccepted; @@ -9867,7 +9867,7 @@ private void MediaFilesRunCommand(HashSet files) catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -9929,7 +9929,7 @@ private void ActionAutoCorrectRun() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -9960,7 +9960,7 @@ private void KryptonContextMenuItemGenericAutoCorrectRun_Click(object sender, Ev { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -9992,7 +9992,7 @@ private void kryptonRibbonGroupButtonHomeAutoCorrectRun_Click(object sender, Eve { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -10025,7 +10025,7 @@ private void AutoCorrectRunMediaFiles(FileEntryVersion fileEntryVersion) catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -10046,7 +10046,7 @@ private void AutoCorrectRunFolder(FileEntryVersion fileEntryVersion) string selectedFolder = GetSelectedNodeFullRealPath(); if (selectedFolder == null || !Directory.Exists(selectedFolder)) { - KryptonMessageBox.Show("Can't run AutoCorrect. Not a valid folder selected.", "Invalid folder...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); + KryptonMessageBox.Show("Can't run AutoCorrect. Not a valid folder selected.", "Invalid folder...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); return; } @@ -10062,7 +10062,7 @@ private void AutoCorrectRunFolder(FileEntryVersion fileEntryVersion) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -10186,7 +10186,7 @@ private void ActionAutoCorrectForm() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -10216,7 +10216,7 @@ private void kryptonRibbonGroupButtonHomeAutoCorrectForm_Click(object sender, Ev { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -10247,7 +10247,7 @@ private void KryptonContextMenuItemGenericAutoCorrectForm_Click(object sender, E { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -10288,7 +10288,7 @@ private void AutoCorrectFormMediaFiles(FileEntryVersion fileEntryVersion) catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -10315,7 +10315,7 @@ private void AutoCorrectFormFolder(FileEntryVersion fileEntryVersion) string selectedFolder = GetSelectedNodeFullRealPath(); if (selectedFolder == null || !Directory.Exists(selectedFolder)) { - KryptonMessageBox.Show("Can't run AutoCorrect. Not a valid folder selected.", "Invalid folder...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); + KryptonMessageBox.Show("Can't run AutoCorrect. Not a valid folder selected.", "Invalid folder...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); return; } IEnumerable fileDatas = ImageAndMovieFileExtentionsUtility.GetFilesByEnumerableFast(selectedFolder, false); @@ -10331,7 +10331,7 @@ private void AutoCorrectFormFolder(FileEntryVersion fileEntryVersion) catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -10403,7 +10403,7 @@ private void AutoCorrectFormDataGridView(FileEntryVersion fileEntryVersion) catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -10461,7 +10461,7 @@ private void kryptonRibbonGroupButtonHomeMetadataRefreshLast_Click(object sender { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -10485,7 +10485,7 @@ private void KryptonContextMenuItemGenericMetadataRefreshLast_Click(object sende { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -10506,7 +10506,7 @@ private void kryptonContextMenuItemFileReloadLast_Click(object sender, EventArgs { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -10559,7 +10559,7 @@ private void ActionMetadataRefreshLast() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -10588,7 +10588,7 @@ void DeleteLastMetadataAndReloadThread(HashSet fileEntries) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -10618,7 +10618,7 @@ private void MediaFilesMetadataRefreshLast() catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -10642,7 +10642,7 @@ private void FolderMetadataRefreshLast() catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -10695,7 +10695,7 @@ private void ActionMetadataReloadDeleteHistory() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -10717,7 +10717,7 @@ private void kryptonRibbonGroupButtonHomeMetadataReloadDeleteHistory_Click(objec { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -10740,7 +10740,7 @@ private void KryptonContextMenuItemGenericMetadataReloadDeleteHistory_Click(obje { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -10761,7 +10761,7 @@ private void kryptonContextMenuItemFileReloadAll_Click(object sender, EventArgs { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -10793,7 +10793,7 @@ public void ReloadThumbnailAndMetadataClearThumbnailAndMetadataHistory(HashSet @@ -10906,7 +10906,7 @@ private void FolderMetadataReloadDeleteHistoryk() catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -10934,7 +10934,7 @@ private void kryptonRibbonGroupButtonToolsImportLocations_Click(object sender, E { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -10967,7 +10967,7 @@ private void ImportLocations() catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -10998,7 +10998,7 @@ private void WebScraper_Click() catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } else @@ -11007,7 +11007,7 @@ private void WebScraper_Click() (GlobalData.isRunningWinSmode ? "Your Windows is running Windows 10 S / 11 S mode.\r\n" + "The Chromium Web Browser doesn't support this mode.\r\n\r\n" : "") + "\r\nCan't run WebScraper tool on your windows integrity policies.\r\n", - "Syntax Error", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Syntax Error", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -11031,7 +11031,7 @@ private void kryptonRibbonGroupButtonToolsConfig_Click(object sender, EventArgs { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -11108,26 +11108,26 @@ private void Config() //Palette if (config.IsKryptonManagerChanged) { - KryptonPalette kryptonPalette = KryptonPaletteHandler.Load(Properties.Settings.Default.KryptonPaletteFullFilename, Properties.Settings.Default.KryptonPaletteName); - KryptonPaletteHandler.SetPalette(this, kryptonManager1, kryptonPalette, KryptonPaletteHandler.IsSystemPalette, Properties.Settings.Default.KryptonPaletteDropShadow); + KryptonCustomPaletteBase KryptonCustomPaletteBase = KryptonCustomPaletteBaseHandler.Load(Properties.Settings.Default.KryptonCustomPaletteBaseFullFilename, Properties.Settings.Default.KryptonCustomPaletteBaseName); + KryptonCustomPaletteBaseHandler.SetPalette(this, kryptonManager1, KryptonCustomPaletteBase, KryptonCustomPaletteBaseHandler.IsSystemPalette, Properties.Settings.Default.KryptonCustomPaletteBaseDropShadow); } - KryptonPaletteHandler.SetDataGridViewPalette(kryptonManager1, dataGridViewConvertAndMerge); - KryptonPaletteHandler.SetDataGridViewPalette(kryptonManager1, dataGridViewDate); - KryptonPaletteHandler.SetDataGridViewPalette(kryptonManager1, dataGridViewExiftool); - KryptonPaletteHandler.SetDataGridViewPalette(kryptonManager1, dataGridViewExiftoolWarning); - KryptonPaletteHandler.SetDataGridViewPalette(kryptonManager1, dataGridViewMap); - KryptonPaletteHandler.SetDataGridViewPalette(kryptonManager1, dataGridViewPeople); - KryptonPaletteHandler.SetDataGridViewPalette(kryptonManager1, dataGridViewProperties); - KryptonPaletteHandler.SetDataGridViewPalette(kryptonManager1, dataGridViewRename); - KryptonPaletteHandler.SetDataGridViewPalette(kryptonManager1, dataGridViewTagsAndKeywords); + KryptonCustomPaletteBaseHandler.SetDataGridViewPalette(kryptonManager1, dataGridViewConvertAndMerge); + KryptonCustomPaletteBaseHandler.SetDataGridViewPalette(kryptonManager1, dataGridViewDate); + KryptonCustomPaletteBaseHandler.SetDataGridViewPalette(kryptonManager1, dataGridViewExiftool); + KryptonCustomPaletteBaseHandler.SetDataGridViewPalette(kryptonManager1, dataGridViewExiftoolWarning); + KryptonCustomPaletteBaseHandler.SetDataGridViewPalette(kryptonManager1, dataGridViewMap); + KryptonCustomPaletteBaseHandler.SetDataGridViewPalette(kryptonManager1, dataGridViewPeople); + KryptonCustomPaletteBaseHandler.SetDataGridViewPalette(kryptonManager1, dataGridViewProperties); + KryptonCustomPaletteBaseHandler.SetDataGridViewPalette(kryptonManager1, dataGridViewRename); + KryptonCustomPaletteBaseHandler.SetDataGridViewPalette(kryptonManager1, dataGridViewTagsAndKeywords); - KryptonPaletteHandler.SetImageListViewPalettes(kryptonManager1, imageListView1); + KryptonCustomPaletteBaseHandler.SetImageListViewPalettes(kryptonManager1, imageListView1); } } catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -11155,7 +11155,7 @@ private void kryptonRibbonGroupButtonToolsDatabaseCleaner_Click(object sender, E catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -11179,7 +11179,7 @@ private void kryptonRibbonGroupButtonToolsAbout_Click(object sender, EventArgs e { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -11200,7 +11200,7 @@ private void About() catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -11227,7 +11227,7 @@ private void kryptonRibbonGroupButtonToolsLocationAnalytics_Click(object sender, { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -11253,7 +11253,7 @@ private void KryptonContextMenuItemToolLocationAnalytics_Click(object sender, Ev { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -11342,7 +11342,7 @@ public void PopulateExiftoolToolStripMenuItems() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -11388,7 +11388,7 @@ private void ActionAssignCompositeTag(DataGridView dataGridView, MetadataPriorit catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -11440,7 +11440,7 @@ private void KryptonContextMenuItemAssignCompositeTag_Click(object sender, Event catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -11486,7 +11486,7 @@ private void SetRibbonDataGridViewSizeBottons(DataGridViewSize size, bool enable catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -11542,7 +11542,7 @@ private void SetGridViewSize(DataGridViewSize size) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -11557,7 +11557,7 @@ private void kryptonRibbonGroupButtonDataGridViewCellSizeBig_Click(object sender catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } @@ -11570,7 +11570,7 @@ private void kryptonRibbonGroupButtonDataGridViewCellSizeMedium_Click(object sen catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } @@ -11583,7 +11583,7 @@ private void kryptonRibbonGroupButtonDataGridViewCellSizeSmall_Click(object send catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -11602,7 +11602,7 @@ private void imageListView1_ColumnWidthChanged(object sender, ColumnEventArgs e) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -11643,7 +11643,7 @@ private void dataGridViewRename_ColumnWidthChanged(object sender, DataGridViewCo catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -11684,7 +11684,7 @@ private void dataGridViewConvertAndMerge_ColumnWidthChanged(object sender, DataG catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -11705,7 +11705,7 @@ private void SetRibbonDataGridViewShowWhatColumns(ShowWhatColumns showWhatColumn catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -11721,7 +11721,7 @@ private void SetRibbonGridViewColumnsButtonsHistoricalAndError(bool showHistoric catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -11738,7 +11738,7 @@ private void kryptonRibbonGroupButtonDataGridViewColumnsHistory_Click(object sen catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } @@ -11753,7 +11753,7 @@ private void kryptonRibbonGroupButtonDataGridViewColumnsErrors_Click(object send catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -11795,7 +11795,7 @@ private void SetImageListViewRender(Manina.Windows.Forms.View imageListViewViewM catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } @@ -11847,7 +11847,7 @@ private void kryptonRibbonGroupButtonImageListViewDetailviewColumns_Click(object catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -11870,7 +11870,7 @@ private void SetThumbnailSize(int size) catch (Exception ex) { Logger.Error(ex); - //KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + //KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -11892,7 +11892,7 @@ private void kryptonRibbonGroupButtonThumbnailSizeXLarge_Click(object sender, Ev { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -11916,7 +11916,7 @@ private void kryptonRibbonGroupButtonThumbnailSizeLarge_Click(object sender, Eve { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -11940,7 +11940,7 @@ private void kryptonRibbonGroupButtonThumbnailSizeMedium_Click(object sender, Ev { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -11964,7 +11964,7 @@ private void kryptonRibbonGroupButtonThumbnailSizeSmall_Click(object sender, Eve { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -11988,7 +11988,7 @@ private void kryptonRibbonGroupButtonThumbnailSizeXSmall_Click(object sender, Ev { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -12103,7 +12103,7 @@ private void ImageListViewSortColumn(ImageListView imageListView, KryptonContext catch (Exception ex) { Logger.Error(ex); - //KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + //KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -12195,7 +12195,7 @@ private void SetImageListViewSortByRadioButton(ImageListView imageListView, Colu catch (Exception ex) { Logger.Error(ex); - //KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + //KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -12332,7 +12332,7 @@ private void ImageListViewSortByCheckedRadioButton(bool toogle) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { isSortingImageListView = false; @@ -12358,7 +12358,7 @@ private void KryptonContextMenuItemFileSystemColumnSortClear_Click(object sender { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -12382,7 +12382,7 @@ private void KryptonContextMenuRadioButtonFileSystemColumnSortFilename_Click(obj { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -12406,7 +12406,7 @@ private void KryptonContextMenuRadioButtonFileSystemColumnSortSmarteDate_Click(o { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -12430,7 +12430,7 @@ private void KryptonContextMenuRadioButtonFileSystemColumnSortFileDate_Click(obj { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -12454,7 +12454,7 @@ private void KryptonContextMenuRadioButtonFileSystemColumnSortFileCreateDate_Cli { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -12478,7 +12478,7 @@ private void KryptonContextMenuRadioButtonFileSystemColumnSortFileModifiedDate_C { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -12502,7 +12502,7 @@ private void KryptonContextMenuRadioButtonFileSystemColumnSortMediaDateTaken_Cli { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -12526,7 +12526,7 @@ private void KryptonContextMenuRadioButtonFileSystemColumnSortMediaAlbum_Click(o { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -12550,7 +12550,7 @@ private void KryptonContextMenuRadioButtonFileSystemColumnSortMediaTitle_Click(o { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -12574,7 +12574,7 @@ private void KryptonContextMenuRadioButtonFileSystemColumnSortMediaDescription_C { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -12598,7 +12598,7 @@ private void KryptonContextMenuRadioButtonFileSystemColumnSortMediaComments_Clic { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -12622,7 +12622,7 @@ private void KryptonContextMenuRadioButtonFileSystemColumnSortMediaAuthor_Click( { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -12645,7 +12645,7 @@ private void KryptonContextMenuRadioButtonFileSystemColumnSortMediaRating_Click( { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -12669,7 +12669,7 @@ private void KryptonContextMenuRadioButtonFileSystemColumnSortLocationName_Click { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -12693,7 +12693,7 @@ private void KryptonContextMenuRadioButtonFileSystemColumnSortLocationRegionStat { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -12717,7 +12717,7 @@ private void KryptonContextMenuRadioButtonFileSystemColumnSortLocationCity_Click { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -12741,7 +12741,7 @@ private void KryptonContextMenuRadioButtonFileSystemColumnSortLocationCountry_Cl { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -12771,7 +12771,7 @@ private void kryptonRibbonGroupButtonToolsProgressLazyloadingShowStatus_Click(ob { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -12795,7 +12795,7 @@ private void buttonSpecNavigatorDataGridViewProgressCircle_Click(object sender, { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -12819,7 +12819,7 @@ private void buttonSpecNavigatorImageListViewLoadStatus_Click(object sender, Eve { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { diff --git a/PhotoTags Synchronizer/MainForm_FileHandling.cs b/PhotoTags Synchronizer/MainForm_FileHandling.cs index 84677fbb..ac373d19 100644 --- a/PhotoTags Synchronizer/MainForm_FileHandling.cs +++ b/PhotoTags Synchronizer/MainForm_FileHandling.cs @@ -26,7 +26,7 @@ private HashSet GetFilesInSelectedFolderCached() string folder = GetSelectedNodeFullRealPath(); if (folder == null || !Directory.Exists(folder)) { - KryptonMessageBox.Show("Can't reach the folder. Not a valid folder selected.", "Invalid folder...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); + KryptonMessageBox.Show("Can't reach the folder. Not a valid folder selected.", "Invalid folder...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); cachedFolder = ""; fileEntriesFolderCached = new HashSet(); return fileEntriesFolderCached; @@ -61,7 +61,7 @@ private IEnumerable GetFilesInSelectedFolder(string folder, bool recur { if (folder == null || !Directory.Exists(folder)) { - KryptonMessageBox.Show("Can't reach the folder. Not a valid folder selected.", "Invalid folder...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); + KryptonMessageBox.Show("Can't reach the folder. Not a valid folder selected.", "Invalid folder...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); return fileDatas; } fileDatas = ImageAndMovieFileExtentionsUtility.GetFilesByEnumerableFast(folder, recursive); @@ -161,7 +161,7 @@ private void RenameFile_Thread_UpdateTreeViewFolderBrowser(TreeViewFolderBrowser { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -258,7 +258,7 @@ private void MoveFilesNoRename_UpdateTreeViewFolderBrowser(TreeViewFolderBrowser { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -392,7 +392,7 @@ private void CopyFiles_UpdateTreeViewFolderBrowser(TreeViewFolderBrowser folderT catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -471,7 +471,7 @@ private void CopyFolder_UpdateTreeViewFolderBrowser(TreeViewFolderBrowser folder catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -622,7 +622,7 @@ private List FixOneDriveIssuesDeleteLoser(HashSet fileEntries { Logger.Error(ex); KryptonMessageBox.Show(ex.Message + "\r\nWas trying to replace\r\n" + fileEntryOther.FileFullPath + "\r\n with\r\n" + fileEntrySource.FileFullPath, - "Was not able to remove duplicated file.", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Was not able to remove duplicated file.", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } else @@ -642,7 +642,7 @@ private List FixOneDriveIssuesDeleteLoser(HashSet fileEntries { Logger.Error(ex); KryptonMessageBox.Show(ex.Message + "\r\n" + fileEntrySource.FileFullPath, - "Was not able to remove dubpliacted file.", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Was not able to remove dubpliacted file.", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } } @@ -650,7 +650,7 @@ private List FixOneDriveIssuesDeleteLoser(HashSet fileEntries { Logger.Error(ex); KryptonMessageBox.Show(ex.Message + "\r\n" + fileEntryOther.FileFullPath + "\r\n" + fileEntrySource.FileFullPath, - "Was not able to remove the oldest of dubpliacted file.", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Was not able to remove the oldest of dubpliacted file.", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } #endregion } @@ -674,7 +674,7 @@ private List FixOneDriveIssuesDeleteLoser(HashSet fileEntries { Logger.Error(ex); KryptonMessageBox.Show(ex.Message + "\r\nWas trying to replace\r\n" + fileEntryOther.FileFullPath + "\r\n with\r\n" + fileEntrySource.FileFullPath, - "Was not able to remove duplicated file.", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Was not able to remove duplicated file.", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } #endregion } @@ -695,7 +695,7 @@ private List FixOneDriveIssuesDeleteLoser(HashSet fileEntries { Logger.Error(ex); KryptonMessageBox.Show(ex.Message + "\r\n" + fileEntrySource.FileFullPath, - "Was not able to remove dubpliacted file.", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Was not able to remove dubpliacted file.", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } #endregion } @@ -717,7 +717,7 @@ private List FixOneDriveIssuesDeleteLoser(HashSet fileEntries catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } return foundOrRemovedFiles; } @@ -779,7 +779,7 @@ public List FixOneDriveIssuesUsingDateTaken(HashSet fileEntri catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } return foundOrRemovedFiles; } @@ -874,7 +874,7 @@ public List FixOneDriveIssues(HashSet fileEntries, out List ima catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -1013,7 +1013,7 @@ private void ImageListView_FetchListOfMediaFiles_FromDatabase_and_Aggregate() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -1145,7 +1145,7 @@ private void ImageListView_FetchListOfMediaFiles_FromDatabase_and_Aggregate_Sear catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -1178,7 +1178,7 @@ private void ImageListView_SelectFiles(List listOfFileFullPath, bool cle { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -1241,7 +1241,7 @@ private void ImageListView_FetchListOfMediaFiles_FromFolder_and_Aggregate(bool r "You can use the Tool: Remove OneDrive Duplicates.\r\n\r\n" + "Examples files:\r\n\r\n" + filesExampleFound + "\r\n\r\n" + "Select files where dulicates found?", - "OneDrive duplicated files found.", MessageBoxButtons.OKCancel, KryptonMessageBoxIcon.Question, showCtrlCopy: true) == DialogResult.OK) + "OneDrive duplicated files found.", (KryptonMessageBoxButtons)MessageBoxButtons.OKCancel, KryptonMessageBoxIcon.Question, showCtrlCopy: true) == DialogResult.OK) { ImageListView_SelectFiles(dublicatedFound); } @@ -1254,7 +1254,7 @@ private void ImageListView_FetchListOfMediaFiles_FromFolder_and_Aggregate(bool r catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -1270,7 +1270,7 @@ private void ImageListView_Aggregate_FromDatabaseSearchResult_and_Aggregate(Hash catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -1295,7 +1295,7 @@ private void ImageListView_Aggregate_UsingFiltersOnExistingFiles(KryptonTreeView catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -1449,7 +1449,7 @@ private HashSet ImageListView_Populate_ListOfMediaFiles_AddFilter(IEn catch (Exception ex) { KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -1490,7 +1490,7 @@ private void ImageListViewRemoveItemInvoke(string filename) { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -1516,7 +1516,7 @@ private void ImageListView_Rename_Invoke(ImageListView imageListView, string old catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -1594,7 +1594,7 @@ private void ImageViewListeUpdateAfterRename(ImageListView imageListView, Dictio { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { diff --git a/PhotoTags Synchronizer/MainForm_LocationHistoryAnalytics.cs b/PhotoTags Synchronizer/MainForm_LocationHistoryAnalytics.cs index 11331391..8f34b5a3 100644 --- a/PhotoTags Synchronizer/MainForm_LocationHistoryAnalytics.cs +++ b/PhotoTags Synchronizer/MainForm_LocationHistoryAnalytics.cs @@ -15,7 +15,7 @@ private void ShowFormLocationHistoryAnalyticsInit() if (formLocationHistoryAnalytics == null || formLocationHistoryAnalytics.IsDisposed) formLocationHistoryAnalytics = new FormLocationHistoryAnalytics(); formLocationHistoryAnalytics.Owner = this; formLocationHistoryAnalytics.GoogleLocationHistoryDatabaseCache = databaseGoogleLocationHistory; - formLocationHistoryAnalytics.KryptonPalette = (KryptonPalette)kryptonManager1.GlobalPalette; + formLocationHistoryAnalytics.KryptonCustomPaletteBase = (KryptonCustomPaletteBase)kryptonManager1.GlobalPalette; if (formLocationHistoryAnalytics.WindowState == FormWindowState.Minimized) formLocationHistoryAnalytics.WindowState = FormWindowState.Normal; formLocationHistoryAnalytics.BringToFront(); diff --git a/PhotoTags Synchronizer/MainForm_Map.cs b/PhotoTags Synchronizer/MainForm_Map.cs index 1d7eac5a..5fecb2f4 100644 --- a/PhotoTags Synchronizer/MainForm_Map.cs +++ b/PhotoTags Synchronizer/MainForm_Map.cs @@ -119,7 +119,7 @@ private void textBoxBrowserURL_KeyPress(object sender, KeyPressEventArgs e) KryptonMessageBox.Show( (GlobalData.isRunningWinSmode ? "Your Windows is running Windows 10 S / 11 S mode.\r\n" + "The Chromium Web Browser doesn't support this mode.\r\n\r\n" : "") + - ex.Message, "Can't run the Web Browser", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + ex.Message, "Can't run the Web Browser", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } } @@ -210,7 +210,7 @@ private void UpdateBrowserMap(string combinedCorordinateString, MapProvider mapP KryptonMessageBox.Show( (GlobalData.isRunningWinSmode ? "Your Windows is running Windows 10 S / 11 S mode.\r\n" + "The Chromium Web Browser doesn't support this mode.\r\n\r\n" : "") + - ex.Message, "Syntax Error", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + ex.Message, "Syntax Error", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } } @@ -247,7 +247,7 @@ private void GetLocationAndShow(MapProvider mapProvider) KryptonMessageBox.Show( (GlobalData.isRunningWinSmode ? "Your Windows is running Windows 10 S / 11 S mode.\r\n" + "The Chromium Web Browser doesn't support this mode.\r\n\r\n" : "") + - ex.Message, "Syntax Error", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + ex.Message, "Syntax Error", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -394,7 +394,7 @@ private void comboBoxMapZoomLevel_SelectedIndexChanged(object sender, EventArgs KryptonMessageBox.Show( (GlobalData.isRunningWinSmode ? "Your Windows is running Windows 10 S / 11 S mode.\r\n" + "The Chromium Web Browser doesn't support this mode.\r\n\r\n" : "") + - ex.Message, "Syntax Error", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + ex.Message, "Syntax Error", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion diff --git a/PhotoTags Synchronizer/MainForm_People.cs b/PhotoTags Synchronizer/MainForm_People.cs index 9af442c6..2e4d3aa7 100644 --- a/PhotoTags Synchronizer/MainForm_People.cs +++ b/PhotoTags Synchronizer/MainForm_People.cs @@ -114,21 +114,21 @@ private void dataGridViewPeople_CellMouseDown(object sender, DataGridViewCellMou { if (!DataGridViewHandler.IsColumnSelected(dataGridView, e.ColumnIndex)) { - KryptonMessageBox.Show("You need to select a name cell for current media file.", "Missing selection on media file", MessageBoxButtons.OK, KryptonMessageBoxIcon.Information, showCtrlCopy: true); + KryptonMessageBox.Show("You need to select a name cell for current media file.", "Missing selection on media file", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Information, showCtrlCopy: true); return; } DataGridViewGenericColumn dataGridViewGenericColumn = DataGridViewHandler.GetColumnDataGridViewGenericColumn(dataGridView, e.ColumnIndex); if (dataGridViewGenericColumn == null || dataGridViewGenericColumn.ReadWriteAccess != ReadWriteAccess.AllowCellReadAndWrite) { - KryptonMessageBox.Show("You can only change region on current version on media file, not on historical or error log.", "Not correct column type", MessageBoxButtons.OK, KryptonMessageBoxIcon.Information, showCtrlCopy: true); + KryptonMessageBox.Show("You can only change region on current version on media file, not on historical or error log.", "Not correct column type", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Information, showCtrlCopy: true); return; } List selectedRows = DataGridViewHandler.GetRowSelected(dataGridView); if (selectedRows.Count != 1) { - KryptonMessageBox.Show("You can only create a region for one name cell at once.", "Wrong number of selection", MessageBoxButtons.OK, KryptonMessageBoxIcon.Information, showCtrlCopy: true); + KryptonMessageBox.Show("You can only create a region for one name cell at once.", "Wrong number of selection", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Information, showCtrlCopy: true); return; } else @@ -138,7 +138,7 @@ private void dataGridViewPeople_CellMouseDown(object sender, DataGridViewCellMou if (dataGridViewGenericRow == null || dataGridViewGenericRow.IsHeader) { - KryptonMessageBox.Show("The selected cell can't be changed, need select another cell.", "Wrong cell selected", MessageBoxButtons.OK, KryptonMessageBoxIcon.Information, showCtrlCopy: true); + KryptonMessageBox.Show("The selected cell can't be changed, need select another cell.", "Wrong cell selected", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Information, showCtrlCopy: true); return; } } @@ -146,7 +146,7 @@ private void dataGridViewPeople_CellMouseDown(object sender, DataGridViewCellMou Image image = dataGridViewGenericColumn.Thumbnail; if (image == null) { - KryptonMessageBox.Show("No media has been load, please wait or reload the media to fetch thumbnail image.", "Not media has been loaded", MessageBoxButtons.OK, KryptonMessageBoxIcon.Information, showCtrlCopy: true); + KryptonMessageBox.Show("No media has been load, please wait or reload the media to fetch thumbnail image.", "Not media has been loaded", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Information, showCtrlCopy: true); return; } @@ -229,7 +229,7 @@ private void UpdateRegionThumbnail(DataGridView dataGridView) } else { Logger.Error("Was not able to updated the region thumbnail. Poster was failed to load."); - KryptonMessageBox.Show("Was not able to updated the region thumbnail.\r\nPoster was failed to load.", "", MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); + KryptonMessageBox.Show("Was not able to updated the region thumbnail.\r\nPoster was failed to load.", "", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); } DataGridViewHandler.InvalidateCellColumnHeader(dataGridView, dataGridViewCell.ColumnIndex); } @@ -238,7 +238,7 @@ private void UpdateRegionThumbnail(DataGridView dataGridView) catch (Exception ex) { Logger.Error(ex, "UpdateRegionThumbnail"); - KryptonMessageBox.Show("Was not able to updated the region thumbnail.\r\n\r\n" + ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Was not able to updated the region thumbnail.\r\n\r\n" + ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -285,7 +285,7 @@ private void dataGridViewPeople_CellMouseUp(object sender, DataGridViewCellMouse } else { - KryptonMessageBox.Show("Couldn't create a region. No region selection was made.", "No region selected", MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); + KryptonMessageBox.Show("Couldn't create a region. No region selection was made.", "No region selected", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); peopleMouseDownColumn = int.MinValue; } @@ -918,7 +918,7 @@ private void RegionSelectorLoadAndSelect(DataGridView dataGridView, int rowSelec DataGridViewGenericColumn dataGridViewGenericColumn = DataGridViewHandler.GetColumnDataGridViewGenericColumn(dataGridView, columnIndex); if (dataGridViewGenericColumn == null || dataGridViewGenericColumn.ReadWriteAccess != ReadWriteAccess.AllowCellReadAndWrite) return; - //MessageBox.Show("You can only change region on current version on media file, not on historical or error log.", "Not correct column type", MessageBoxButtons.OK); + //MessageBox.Show("You can only change region on current version on media file, not on historical or error log.", "Not correct column type", (KryptonMessageBoxButtons)MessageBoxButtons.OK); List selectedRows = DataGridViewHandler.GetRowSelected(dataGridView); @@ -953,7 +953,7 @@ private void RegionSelectorLoadAndSelect(DataGridView dataGridView, int rowSelec else { Logger.Warn("Region selector was not able to load poster."); - KryptonMessageBox.Show("Region selector was not able to load poster.", "Not able to load poster...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Region selector was not able to load poster.", "Not able to load poster...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } @@ -964,7 +964,7 @@ private void RegionSelectorLoadAndSelect(DataGridView dataGridView, int rowSelec catch (Exception ex) { Logger.Error(ex, "RegionSelectorLoadAndSelect"); - KryptonMessageBox.Show("Region selector was not able to start.\r\n\r\n" + ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Region selector was not able to start.\r\n\r\n" + ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion diff --git a/PhotoTags Synchronizer/MainForm_Preview.cs b/PhotoTags Synchronizer/MainForm_Preview.cs index 0580c9f6..5baeda01 100644 --- a/PhotoTags Synchronizer/MainForm_Preview.cs +++ b/PhotoTags Synchronizer/MainForm_Preview.cs @@ -126,7 +126,7 @@ private void VlcSetChromecastRender(GoogleCast.IReceiver selectedChromecast) { if (!vlcRendererItems.Any()) { - KryptonMessageBox.Show("No chromecast items found. Abort casting...", "No chromecast found...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Information, showCtrlCopy: true); + KryptonMessageBox.Show("No chromecast items found. Abort casting...", "No chromecast found...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Information, showCtrlCopy: true); return; } @@ -144,7 +144,7 @@ private void VlcSetChromecastRender(GoogleCast.IReceiver selectedChromecast) } } } - if (!renderFound) KryptonMessageBox.Show("Can connect LibVlc Chromecast render, render not found", "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + if (!renderFound) KryptonMessageBox.Show("Can connect LibVlc Chromecast render, render not found", "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } #endregion @@ -271,7 +271,7 @@ private async void GooglecastFindReceiversAsync() googleCast_receivers = await googleCast_DeviceLocator.FindReceiversAsync(); } catch (Exception ex) { - KryptonMessageBox.Show("Was not able to start serivce FindReceiversAsync\r\n" + ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Was not able to start serivce FindReceiversAsync\r\n" + ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } kryptonRibbonGroupButtonPreviewChromecast.Enabled = false; @@ -494,7 +494,7 @@ await GoogleCast_ConnectMediaChannelAsync(googleCast_ConnectedReceiver) } catch (Exception ex) { - KryptonMessageBox.Show("Communication with Google Cast failed to play... \r\n" + ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Communication with Google Cast failed to play... \r\n" + ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -511,7 +511,7 @@ await GoogleCast_ConnectMediaChannelAsync(googleCast_ConnectedReceiver) } catch (Exception ex) { - KryptonMessageBox.Show("Communication with Google Cast failed to pause... \r\n" + ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Communication with Google Cast failed to pause... \r\n" + ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -682,7 +682,7 @@ private void GoogleCast_StatusChanged(MediaStatus status, int ext = 0) default: if (status.ExtendedStatus == null) { - KryptonMessageBox.Show("GoogleCast Status Player reason: " + MediaStatusToText(status), "Warning...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); + KryptonMessageBox.Show("GoogleCast Status Player reason: " + MediaStatusToText(status), "Warning...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); Logger.Trace("GoogleCast_mediaChannel_StatusChanged: " + MediaStatusToText(status, ext)); } break; @@ -701,7 +701,7 @@ private void GoogleCast_StatusChanged(MediaStatus status, int ext = 0) MediaPlayerEventsHandler(ButtonStateVlcChromcastState.Paused, MediaPlaybackEventsSource.Googlecast); break; default: - KryptonMessageBox.Show("GoogleCast Status Player: " + MediaStatusToText(status), "Warning...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); + KryptonMessageBox.Show("GoogleCast Status Player: " + MediaStatusToText(status), "Warning...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); Logger.Trace("GoogleCast_mediaChannel_StatusChanged: " + MediaStatusToText(status, ext)); break; } @@ -908,7 +908,7 @@ private void NHttpServer_RequestReceived(object sender, HttpRequestEventArgs e) e.Response.ContentType = "image/png"; - if (mediaByteArray == null || mediaByteArray.Length == 0) KryptonMessageBox.Show("Was not able to load the media file: " + mediaFullFilename, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + if (mediaByteArray == null || mediaByteArray.Length == 0) KryptonMessageBox.Show("Was not able to load the media file: " + mediaFullFilename, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -1504,7 +1504,7 @@ private async void ActionPreviewStop() SlideShowInit(0); //Slideshow stop ChromecastingSwitchOff(); //No chromecast selected - if (!await GoogleCast_Disconnect(googleCast_ConnectedReceiver, true)) KryptonMessageBox.Show(googleCast_LastKnownErrorMessage, "Warning...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); + if (!await GoogleCast_Disconnect(googleCast_ConnectedReceiver, true)) KryptonMessageBox.Show(googleCast_LastKnownErrorMessage, "Warning...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); if (videoView1 != null && videoView1.MediaPlayer != null) if (videoView1.MediaPlayer.IsPlaying) videoView1.MediaPlayer.Stop(); //Stop Vlc mediaplayer } @@ -1860,7 +1860,7 @@ stream output } catch (Exception ex) { - KryptonMessageBox.Show("Playing Video file failed: " + ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Playing Video file failed: " + ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } if (videoView1 != null && videoView1.MediaPlayer != null) videoView1.Visible = true; imageBoxPreview.Visible = false; @@ -1881,7 +1881,7 @@ stream output catch (Exception ex) { MediaPlayerEventsHandler(ButtonStateVlcChromcastState.Error, MediaPlaybackEventsSource.ScreenImageViewer); - KryptonMessageBox.Show("Playing Image file failed: " + ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Playing Image file failed: " + ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } imageBoxPreview.Visible = true; imageBoxPreview.ZoomToFit(); diff --git a/PhotoTags Synchronizer/MainForm_Rename.cs b/PhotoTags Synchronizer/MainForm_Rename.cs index e598050c..63fd7fef 100644 --- a/PhotoTags Synchronizer/MainForm_Rename.cs +++ b/PhotoTags Synchronizer/MainForm_Rename.cs @@ -32,7 +32,7 @@ private void buttonRenameUpdate_Click(object sender, EventArgs e) catch (Exception ex) { Logger.Error(ex, "Was not able to updated name on files"); - KryptonMessageBox.Show("Was not able to updated name on files.\r\n" + ex.Message, "Update name on files failed.", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Was not able to updated name on files.\r\n" + ex.Message, "Update name on files failed.", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -48,7 +48,7 @@ private void checkBoxRenameShowFullPath_CheckedChanged(object sender, EventArgs catch (Exception ex) { Logger.Error(ex, "Was not able to updated name on files"); - KryptonMessageBox.Show("Was not able to updated name on files.\r\n" + ex.Message, "Update name on files failed.", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Was not able to updated name on files.\r\n" + ex.Message, "Update name on files failed.", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -112,7 +112,7 @@ private void SaveRename() catch (Exception ex) { Logger.Error(ex, "Was not able to rename files"); - KryptonMessageBox.Show("Was not able to rename files.\r\n" + ex.Message, "Rename files failed.", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Was not able to rename files.\r\n" + ex.Message, "Rename files failed.", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -134,7 +134,7 @@ private void buttonRenameSave_Click(object sender, EventArgs e) { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { diff --git a/PhotoTags Synchronizer/MainForm_Rotate.cs b/PhotoTags Synchronizer/MainForm_Rotate.cs index 43a0b75c..af0ac1e2 100644 --- a/PhotoTags Synchronizer/MainForm_Rotate.cs +++ b/PhotoTags Synchronizer/MainForm_Rotate.cs @@ -91,7 +91,7 @@ private bool Rotate(FileEntry fileEntry, int rotateDegrees, ref string error) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } return coverted; } @@ -111,7 +111,7 @@ private int GetFileEntriesRotateMediaCountLock() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); return 0; } } @@ -125,7 +125,7 @@ private int GetFileEntriesRotateMediaCountDirty() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); return 0; } } @@ -148,7 +148,7 @@ private void RotateInit(ImageListView imageListView, int rotateDegrees) if (!string.IsNullOrWhiteSpace(filesMissingMetadata)) { KryptonMessageBox.Show("Need wait until metadata is read from media files befor rotating. Otherwise metadata from original media file will be lost.", - "Can't start rotate of media files yet.", MessageBoxButtons.YesNo, KryptonMessageBoxIcon.Exclamation, showCtrlCopy: true); + "Can't start rotate of media files yet.", (KryptonMessageBoxButtons)MessageBoxButtons.YesNo, KryptonMessageBoxIcon.Exclamation, showCtrlCopy: true); } else if (MessageBox.Show( @@ -213,7 +213,7 @@ private void RotateInit(ImageListView imageListView, int rotateDegrees) } catch (Exception ex) { - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } } @@ -221,7 +221,7 @@ private void RotateInit(ImageListView imageListView, int rotateDegrees) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -242,7 +242,7 @@ private void timerSaveProgessRemoveProgress_Tick(object sender, EventArgs e) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion diff --git a/PhotoTags Synchronizer/MainForm_SelectGroup.cs b/PhotoTags Synchronizer/MainForm_SelectGroup.cs index 65e18da2..6692726c 100644 --- a/PhotoTags Synchronizer/MainForm_SelectGroup.cs +++ b/PhotoTags Synchronizer/MainForm_SelectGroup.cs @@ -101,7 +101,7 @@ private void SelectedGroupByMatch(ImageListView imageListView, { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -197,7 +197,7 @@ private void SelectedGroupBySelections(ImageListView imageListView, int baseItem { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -299,7 +299,7 @@ private void ImageListViewSelectNext() catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -329,7 +329,7 @@ private void ImageListViewSelectPrevious() catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -354,7 +354,7 @@ private void ImageListViewSelectMatch() catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -385,7 +385,7 @@ private void ImageListViewWildcardsSelectMatch(ImageListView imageListView, stri { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { @@ -483,7 +483,7 @@ public void GroupSelectLast() { Logger.Error(ex); KryptonMessageBox.Show("Unexpected error occur.\r\nException message:" + ex.Message + "\r\n", - "Unexpected error occur", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Unexpected error occur", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } finally { diff --git a/PhotoTags Synchronizer/MainForm_Status.cs b/PhotoTags Synchronizer/MainForm_Status.cs index cd890d74..fff598e8 100644 --- a/PhotoTags Synchronizer/MainForm_Status.cs +++ b/PhotoTags Synchronizer/MainForm_Status.cs @@ -28,7 +28,7 @@ private void timerShowStatusText_RemoveTimer_Tick(object sender, EventArgs e) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -53,7 +53,7 @@ public void UpdateStatusAction(string text, bool forceRefresh = false) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -78,7 +78,7 @@ public void UpdateStatusActionDelayedRefresh(string text) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -101,7 +101,7 @@ public void UpdateStatusImageListView(string text) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -116,7 +116,7 @@ private void imageListView1_ThumbnailCaching(object sender, ItemEventArgs e) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -132,7 +132,7 @@ private void ExiftoolReader_afterNewMediaFoundEvent(FileEntry fileEntry) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -187,7 +187,7 @@ private void AddTaskToFileTasks(Dictionary> fileTasks, stri catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } @@ -437,7 +437,7 @@ private void ActionSeeProcessQueue() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -680,7 +680,7 @@ private void DisplayAllQueueStatus() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -722,7 +722,7 @@ private void DatabaseAndCacheMetadataExiftool_OnRecordReadToCache(object sender, catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -765,7 +765,7 @@ private void DatabaseAndCacheMetadataExiftool_OnDeleteRecord(object sender, Dele catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } @@ -830,7 +830,7 @@ private void ShowExiftoolSaveProgressClear() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -848,7 +848,7 @@ private void AddWatcherShowExiftoolSaveProcessQueue(string fullFileName) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -900,7 +900,7 @@ private void ProgressbarBackgroundProgressQueueRemainding(int queueRemainding) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -918,7 +918,7 @@ private void ProgressbarBackgroundProgress(bool enabled, int value, int minimum, catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -1034,7 +1034,7 @@ private Bitmap GetProgressCircle(int procentage, out int imageIndex) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } return PhotoTagsSynchronizer.Properties.Resources.ProgressCircle17_16x16; } @@ -1079,7 +1079,7 @@ private void SetButtonSpecNavigator(Krypton.Navigator.ButtonSpecNavigator button catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -1104,7 +1104,7 @@ public void LazyLoadingDataGridViewProgressUpdateStatus(int queueRemainding) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -1119,7 +1119,7 @@ public void LoadingItemsImageListView(int value, int maximum) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -1153,7 +1153,7 @@ private void ProgressbarSaveAndConvertProgress(bool enabled, int value) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -1171,7 +1171,7 @@ private void ProgressbarSaveAndConvertProgress(bool enabled, int value, int mini catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -1189,7 +1189,7 @@ private void ProgressbarSaveProgress(bool visible) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -1206,7 +1206,7 @@ private void FilesCutCopyPasteDrag_OnFileSystemAction(object sender, FileSystemA catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion diff --git a/PhotoTags Synchronizer/MainForm_TagsAndKeywords.cs b/PhotoTags Synchronizer/MainForm_TagsAndKeywords.cs index 6c043f28..39ee9b77 100644 --- a/PhotoTags Synchronizer/MainForm_TagsAndKeywords.cs +++ b/PhotoTags Synchronizer/MainForm_TagsAndKeywords.cs @@ -44,7 +44,7 @@ private void dataGridViewTagsAndKeywords_RowsAdded(object sender, DataGridViewRo catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } @@ -139,7 +139,7 @@ private void dataGridViewTagsAndKeywords_CellEnter(object sender, DataGridViewCe catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -333,7 +333,7 @@ private void ActionChangeTitle(string newText) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } private void ActionUpdateTitle() @@ -383,7 +383,7 @@ private void ActionChangeDescription(string newText) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } @@ -432,7 +432,7 @@ private void ActionChangeComments(string newText) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } @@ -481,7 +481,7 @@ private void ActionChangeAlbum(string newText) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } @@ -531,7 +531,7 @@ private void ActionChangeAuthor(string newText) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } diff --git a/PhotoTags Synchronizer/MainForm_Threads.cs b/PhotoTags Synchronizer/MainForm_Threads.cs index 97a0c06f..dda66852 100644 --- a/PhotoTags Synchronizer/MainForm_Threads.cs +++ b/PhotoTags Synchronizer/MainForm_Threads.cs @@ -152,7 +152,7 @@ private int CommonQueueLazyLoadingMapNomnatatimLock() } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); return 0; } @@ -183,7 +183,7 @@ private int CommonQueueLazyLoadingAllSourcesAllMetadataAndThumbnailCountLock() } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); return 0; } @@ -197,7 +197,7 @@ private int CommonQueueLazyLoadingAllSourcesAllMetadataAndRegionThumbnailsCountD } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); return 0; } @@ -216,7 +216,7 @@ private int CommonQueueLazyLoadingThumbnailCountLock() } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); return 0; } @@ -229,7 +229,7 @@ private int CommonQueueLazyLoadingThumbnailCountDirty() } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); return 0; } @@ -248,7 +248,7 @@ private int CommonQueueSaveToDatabaseRegionAndThumbnailCountLock() } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); return 0; } @@ -261,7 +261,7 @@ private int CommonQueueSaveToDatabaseRegionAndThumbnailCountDirty() } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); return 0; } @@ -280,7 +280,7 @@ private int CommonQueueSaveToDatabaseMediaThumbnailCountLock() } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); return 0; } @@ -294,7 +294,7 @@ private int CommonQueueSaveToDatabaseMediaThumbnailCountDirty() } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); return 0; } @@ -314,7 +314,7 @@ private int CommonQueueReadMetadataFromMicrosoftPhotosCountLock() } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); return 0; } @@ -327,7 +327,7 @@ private int CommonQueueReadMetadataFromSourceMicrosoftPhotosCountDirty() } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); return 0; } @@ -342,7 +342,7 @@ private int CommonQueueReadMetadataFromSourceWindowsLivePhotoGalleryCountLock() } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); return 0; } @@ -355,7 +355,7 @@ private int CommonQueueReadMetadataFromSourceWindowsLivePhotoGalleryCountDirty() } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); return 0; } @@ -374,7 +374,7 @@ private int CommonQueueReadMetadataFromSourceExiftoolCountLock() } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); return 0; } @@ -387,7 +387,7 @@ private int CommonQueueReadMetadataFromSourceExiftoolCountDirty() } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); return 0; } @@ -406,7 +406,7 @@ private int CommonQueueSaveUsingExiftoolMetadataUpdatedByUserCountLock() } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); return 0; } @@ -419,7 +419,7 @@ private int CommonQueueSaveUsingExiftoolMetadataUpdatedByUserCountDirty() } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); return 0; } @@ -438,7 +438,7 @@ private int ExiftoolSave_MediaFilesNotInDatabaseCountLock() } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); return 0; } @@ -451,7 +451,7 @@ private int ExiftoolSave_MediaFilesNotInDatabaseCountDirty() } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); return 0; } @@ -470,7 +470,7 @@ private int CommonQueueMetadataWrittenByExiftoolReadyToVerifyCountDirty() } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); return 0; } @@ -489,7 +489,7 @@ private int CommonQueueRenameCountLock() } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); return 0; } @@ -502,7 +502,7 @@ private int CommonQueueRenameCountDirty() } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); return 0; } @@ -517,7 +517,7 @@ private int CommonQueueAutoCorrectLock() } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); return 0; } @@ -530,7 +530,7 @@ private int CommonQueueAutoCorrectDirty() } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); return 0; } @@ -555,7 +555,7 @@ private void timerStartThread_Tick(object sender, EventArgs e) } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } } @@ -611,7 +611,7 @@ private bool IsAnyThreadRunning() } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); return false; } @@ -638,7 +638,7 @@ private bool IsThreadRunningExcept_ThreadSaveToDatabaseRegionAndThumbnail() } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); return false; } @@ -672,7 +672,7 @@ public void ClearAllQueues() } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } } @@ -692,7 +692,7 @@ public void ClearQueueLazyLoadningSelectedFilesLock() } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } } @@ -713,7 +713,7 @@ public void AddQueueLazyLoadningSelectedFilesLock(FileEntryBroker fileEntryBroke } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } } @@ -731,7 +731,7 @@ public void RemoveQueueLazyLoadningSelectedFilesLock(FileEntryBroker fileEntryBr } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } } @@ -748,7 +748,7 @@ public int CountQueueLazyLoadningSelectedFilesLock() } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); return 0; } @@ -790,7 +790,7 @@ private void AddQueueLazyLoadning_AllSources_AllVersions_MetadataAndRegionThumbn } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } } @@ -807,7 +807,7 @@ public void AddQueueLazyLoadning_AllSources_NoHistory_MetadataAndRegionThumbnail } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } } @@ -846,7 +846,7 @@ public void AddQueueLazyLoadning_AllSources_CurrentWrittenDate_UseCurrentFileDat } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } } @@ -871,7 +871,7 @@ public void AddQueueLazyLoadning_AllSources_NoHistory_MetadataAndRegionThumbnail } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } } @@ -1000,7 +1000,7 @@ public void ThreadLazyLoadingAllSourcesMetadataAndRegionThumbnails() KryptonMessageBox.Show("ThreadLazyLoadingAllSourcesMetadataAndRegionThumbnails crashed.\r\n" + "Read Exiftool data.\r\n" + "Exception message:" + ex.Message + "\r\n", - "Lazy loading queue failed", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Lazy loading queue failed", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex, "ThreadLazyLoadingAllSourcesMetadataAndRegionThumbnails"); } #endregion @@ -1026,7 +1026,7 @@ public void ThreadLazyLoadingAllSourcesMetadataAndRegionThumbnails() KryptonMessageBox.Show("ThreadLazyLoadingAllSourcesMetadataAndRegionThumbnails crashed.\r\n" + "Read Microsoft Photos data.\r\n" + "Exception message:" + ex.Message + "\r\n", - "Lazy loading queue failed", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Lazy loading queue failed", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex, "ThreadLazyLoadingAllSourcesMetadataAndRegionThumbnails"); } #endregion @@ -1052,7 +1052,7 @@ public void ThreadLazyLoadingAllSourcesMetadataAndRegionThumbnails() KryptonMessageBox.Show("ThreadLazyLoadingAllSourcesMetadataAndRegionThumbnails crashed.\r\n" + "Read WindowsLiveGallery data.\r\n" + "Exception message:" + ex.Message + "\r\n", - "Lazy loading queue failed", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Lazy loading queue failed", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex, "ThreadLazyLoadingAllSourcesMetadataAndRegionThumbnails"); } #endregion @@ -1087,7 +1087,7 @@ public void ThreadLazyLoadingAllSourcesMetadataAndRegionThumbnails() KryptonMessageBox.Show("ThreadLazyLoadingAllSourcesMetadataAndRegionThumbnails crashed.\r\n" + "Read WebScaping data.\r\n" + "Exception message:" + ex.Message + "\r\n", - "Lazy loading queue failed", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Lazy loading queue failed", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex, "ThreadLazyLoadingAllSourcesMetadataAndRegionThumbnails"); } #endregion @@ -1134,7 +1134,7 @@ public void ThreadLazyLoadingAllSourcesMetadataAndRegionThumbnails() KryptonMessageBox.Show("ThreadLazyLoadingAllSourcesMetadataAndRegionThumbnails crashed.\r\n" + "The 'commonQueueLazyLoadingAllSourcesAllMetadataAndRegionThumbnails' was cleared.\r\n" + "Exception message:" + ex.Message + "\r\n", - "Lazy loading queue failed", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Lazy loading queue failed", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); lock (commonQueueLazyLoadingAllSourcesAllMetadataAndRegionThumbnailsLock) commonQueueLazyLoadingAllSourcesAllMetadataAndRegionThumbnails.Clear(); //Avoid loop, due to unknown error Logger.Error(ex, "ThreadLazyLoadingAllSourcesMetadataAndRegionThumbnails"); } @@ -1183,7 +1183,7 @@ public void AddQueueLazyLoadningMediaThumbnailLock(List file } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } } @@ -1202,7 +1202,7 @@ public void AddQueueLazyLoadningMediaThumbnailLock(FileEntryAttribute fileEntryA } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } } @@ -1250,7 +1250,7 @@ public void ThreadLazyLoadingMediaThumbnail() { KryptonMessageBox.Show("LazyLoadningThumbnail crashed." + "\r\nException message:" + ex.Message + "\r\n", - "LazyLoadningThumbnail failed", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "LazyLoadningThumbnail failed", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); lock (commonQueueLazyLoadingMediaThumbnailLock) commonQueueLazyLoadingMediaThumbnail.Clear(); //Avoid loop, due to unknown error Logger.Error(ex, "ThreadLazyLoadningThumbnail thread failed. "); } @@ -1320,7 +1320,7 @@ public void AddQueueReadFromSourceExiftoolLock(FileEntry fileEntry, bool alsoAdd } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } } @@ -1864,7 +1864,7 @@ public void ThreadReadFromSourceMetadataExiftool() { KryptonMessageBox.Show("Read exiftool thread crashed.\r\n" + "Exception message:" + ex.Message + "\r\n", - "Read exiftool thread failed", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Read exiftool thread failed", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); lock (commonQueueReadMetadataFromSourceExiftoolLock) commonQueueReadMetadataFromSourceExiftool.Clear(); Logger.Error(ex, "ThreadCollectMetadataExiftool"); } @@ -1901,7 +1901,7 @@ public void AddQueueVerifyMetadataLock(Metadata metadataToVerifyAfterSavedByExif } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } } @@ -1938,7 +1938,7 @@ public void AddQueueSaveUsingExiftoolMetadataUpdatedByUserLock(Metadata metadata } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } } @@ -2498,7 +2498,7 @@ public void ThreadSaveUsingExiftoolToMedia() KryptonMessageBox.Show("Saving ThreadSaveMetadata crashed.\r\n" + "The ThreadSaveMetadata queue was cleared. Nothing was saved.\r\n" + "Exception message:" + ex.Message + "\r\n", - "Saving ThreadSaveMetadata failed", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Saving ThreadSaveMetadata failed", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); lock (exiftoolSave_QueueSubset_MetadataToSaveUpdatedByUserLock) exiftoolSave_QueueSubset_MetadataToSaveUpdatedByUser.Clear(); Logger.Error(ex, "ThreadSaveMetadata: "); } @@ -2552,7 +2552,7 @@ public void AddQueueSaveToDatabaseMediaThumbnailLock(FileEntryImage fileEntryIma } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } } @@ -2649,7 +2649,7 @@ public void ThreadSaveToDatabaseMediaThumbnail() KryptonMessageBox.Show("Saving ThreadSaveThumbnail crashed.\r\n" + "The ThreadSaveThumbnail queue was cleared. Nothing was saved.\r\n" + "Exception message:" + ex.Message + "\r\n", - "Saving ThreadSaveThumbnail failed", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Saving ThreadSaveThumbnail failed", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); lock (commonQueueSaveToDatabaseMediaThumbnailLock) { commonQueueSaveToDatabaseMediaThumbnail.Clear(); } //Avoid loop, due to unknown error Logger.Error(ex, "ThreadSaveThumbnail"); } @@ -2712,7 +2712,7 @@ public void AddQueueReadFromSourceMetadataMicrosoftPhotosLock(FileEntry fileEntr } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } } @@ -2786,7 +2786,7 @@ public void ThreadReadFromSourceMetadataMicrosoftPhotos() ThreadReadFromSourceMetadataMicrosoftPhotosFailed = true; KryptonMessageBox.Show("ThreadCollectMetadataMicrosoftPhotos crashed.\r\nThis thead will stop running. You may try restart App to get it started again.\r\n" + "Exception message:" + ex.Message + "\r\n", - "ThreadCollectMetadataMicrosoftPhotos failed", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "ThreadCollectMetadataMicrosoftPhotos failed", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex, "ThreadCollectMetadataMicrosoftPhotos failed."); } finally @@ -2844,7 +2844,7 @@ public void AddQueueReadFromSourceWindowsLivePhotoGalleryLock(FileEntry fileEntr } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } } @@ -2919,7 +2919,7 @@ public void ThreadReadFromSourceMetadataWindowsLiveGallery() ThreadReadFromSourceMetadataWindowsLiveGalleryFailed = true; KryptonMessageBox.Show("ThreadCollectMetadataWindowsLiveGallery crashed.\r\n This thead will stop running. You may try restart App to get it started again.\r\n" + "Exception message:" + ex.Message + "\r\n", - "ThreadCollectMetadataWindowsLiveGallery failed. This thead will stop running. You may try restart App to get it started again.", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "ThreadCollectMetadataWindowsLiveGallery failed. This thead will stop running. You may try restart App to get it started again.", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); lock (commonQueueReadMetadataFromSourceWindowsLivePhotoGalleryLock) commonQueueReadMetadataFromSourceWindowsLivePhotoGallery.Clear(); Logger.Error(ex, "ThreadCollectMetadataWindowsLiveGallery failed"); } @@ -2964,7 +2964,7 @@ private void AddQueueSaveToDatabaseRegionAndThumbnailLock(Metadata metadata) } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } } @@ -3322,7 +3322,7 @@ public void ThreadSaveToDatabaseRegionAndThumbnail() KryptonMessageBox.Show("Saving Region Thumbnail crashed. The 'save region queue' was cleared.\r\n" + "Nothing was saved.\r\n" + "Exception message:" + ex.Message + "\r\n", - "Saving Region Thumbnail failed", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Saving Region Thumbnail failed", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); lock (commonQueueSaveToDatabaseRegionAndThumbnailLock) { commonQueueSaveToDatabaseRegionAndThumbnail.Clear(); } //Avoid loop, due to unknown error Logger.Error(ex, "ThreadReadMediaPosterSaveRegions crashed"); break; //Need jump out of while or endless loop @@ -3384,7 +3384,7 @@ public bool IsFolderInQueueSaveToDatabaseRegionAndThumbnailLock (string folder) } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); return false; } @@ -3409,7 +3409,7 @@ public bool IsFileInQueueSaveToDatabaseRegionAndThumbnailLock(string fullFilenam } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } return fileInUse; @@ -3434,7 +3434,7 @@ public bool IsFolderInQueueSaveToDatabaseMediaThumbnailLock(string folder) } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } return folderInUse; @@ -3459,7 +3459,7 @@ public bool IsFileInQueueSaveToDatabaseMediaThumbnailLock(string fullFilename) } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } return fileInUse; @@ -3484,7 +3484,7 @@ public bool IsFolderInQueueReadMetadataFromSourceMicrosoftPhotosLock(string fold } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } return folderInUse; @@ -3511,7 +3511,7 @@ public bool IsFileInQueueReadMetadataFromSourceMicrosoftPhotosLock(string fullFi } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } return fileInUse; @@ -3537,7 +3537,7 @@ public bool IsFolderInQueueReadMetadataFromSourceWindowsLivePhotoGalleryLock(str } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } return folderInUse; @@ -3562,7 +3562,7 @@ public bool IsFileInQueueReadMetadataFromSourceWindowsLivePhotoGalleryLock(strin } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } return fileInUse; @@ -3599,7 +3599,7 @@ public bool IsFolderInQueueReadAndSaveMetadataFromSourceExiftoolLock(string fold } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } return folderInUse; @@ -3636,7 +3636,7 @@ public bool IsFileInQueueReadAndSaveMetadataFromSourceExiftoolLock(string fullFi } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } return fileInUse; @@ -3685,7 +3685,7 @@ public bool IsFolderInQueueSaveUsingExiftoolMetadataLock(string folder) } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } return folderInUse; @@ -3711,7 +3711,7 @@ public bool IsFileInTemporaryUnavailableLock(string fullFilename) } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } return fileInUse; @@ -3758,7 +3758,7 @@ public bool IsFileInQueueSaveUsingExiftoolMetadataLock(string fullFilename) } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } return fileInUse; @@ -3839,7 +3839,7 @@ public bool IsFileInAnyQueueLock(HashSet listOfFiles) } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } return fileInUse; @@ -3865,7 +3865,7 @@ public bool IsFileInAnyQueueLock(StringCollection fileList) } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } return fileInUse; @@ -3891,7 +3891,7 @@ public bool IsFileInAnyQueueLock(ImageListViewSelectedItemCollection imageListVi } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } return fileInUse; @@ -3962,7 +3962,7 @@ public void AddQueueRenameMediaFilesLock(string fullFileName, string renameVaria } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } } @@ -4123,7 +4123,7 @@ public void ThreadRenameMediaFiles() KryptonMessageBox.Show("Saving ThreadRename crashed.\r\n" + "The ThreadRename queue was cleared. Nothing was saved.\r\n" + "Exception message:" + ex.Message + "\r\n", - "Saving ThreadRename failed", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Saving ThreadRename failed", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); lock (commonQueueRenameMediaFilesLock) commonQueueRenameMediaFiles.Clear(); Logger.Error(ex, "ThreadRename"); } finally @@ -4175,7 +4175,7 @@ public void AddQueueAutoCorrectLock(FileEntryBroker fileEntryBroker, AutoCorrect } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } } @@ -4291,7 +4291,7 @@ public void ThreadAutoCorrect() KryptonMessageBox.Show("ThreadAutoCorrect crashed.\r\n" + "The ThreadAutoCorrect queue was cleared. Nothing was saved.\r\n" + "Exception message:" + ex.Message + "\r\n", - "Saving ThreadAutoCorrect failed", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "Saving ThreadAutoCorrect failed", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); lock (commonQueueAutoCorrectLock) commonQueueAutoCorrect.Clear(); Logger.Error(ex, "ThreadAutoCorrect"); } @@ -4337,7 +4337,7 @@ public void AddQueueLazyLoadingMapNomnatatimLock(FileEntryAttribute fileEntryAtt } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } } @@ -4360,7 +4360,7 @@ public void AddQueueLazyLoadingMapNomnatatimLock(List fileEn } catch (Exception ex) { - KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Syntax error.", "Exception message: " + ex.Message + "\r\n", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } } @@ -4447,7 +4447,7 @@ public void ThreadQueueLazyLoadingMapNomnatatim() { KryptonMessageBox.Show("ThreadQueueLazyLoadingMapNomnatatim crashed." + "\r\nException message:" + ex.Message + "\r\n", - "ThreadQueueLazyLoadingMapNomnatatim failed", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + "ThreadQueueLazyLoadingMapNomnatatim failed", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex, "ThreadQueueLazyLoadingMapNomnatatim failed"); } finally diff --git a/PhotoTags Synchronizer/MainForm_Thumbnail.cs b/PhotoTags Synchronizer/MainForm_Thumbnail.cs index 72d7faab..ec3c6a2a 100644 --- a/PhotoTags Synchronizer/MainForm_Thumbnail.cs +++ b/PhotoTags Synchronizer/MainForm_Thumbnail.cs @@ -68,7 +68,7 @@ private Image GetThumbnailFromDatabaseUpdatedDatabaseIfNotExist(FileEntry fileEn catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } return thumbnailImage; } diff --git a/PhotoTags Synchronizer/MainForm_TreeViewFolderBrowser_DragAndDrop.cs b/PhotoTags Synchronizer/MainForm_TreeViewFolderBrowser_DragAndDrop.cs index 456b9c03..5ab423bd 100644 --- a/PhotoTags Synchronizer/MainForm_TreeViewFolderBrowser_DragAndDrop.cs +++ b/PhotoTags Synchronizer/MainForm_TreeViewFolderBrowser_DragAndDrop.cs @@ -52,19 +52,19 @@ private void CopyOrMove_UpdatedBrowserTreeView(DragDropEffects dragDropEffects, { if (dragDropEffects == DragDropEffects.None) { - KryptonMessageBox.Show("Was not able to detect if you select copy or cut object that was pasted or dropped", "Warning...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); + KryptonMessageBox.Show("Was not able to detect if you select copy or cut object that was pasted or dropped", "Warning...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); return; } if (!Directory.Exists(targetFolder)) { - KryptonMessageBox.Show("Target folder is not a valid target folder.\r\nSelected system folder:" + targetNode?.FullPath == null ? "Unkown" : targetNode?.FullPath, "Warning...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); + KryptonMessageBox.Show("Target folder is not a valid target folder.\r\nSelected system folder:" + targetNode?.FullPath == null ? "Unkown" : targetNode?.FullPath, "Warning...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); return; } if (IsFileInAnyQueueLock(sourceFilesAndFolders)) { - KryptonMessageBox.Show("Can't " + dragDropEffects.ToString() + " files. Files are being used, you need wait until process is finished.", "Warning...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); + KryptonMessageBox.Show("Can't " + dragDropEffects.ToString() + " files. Files are being used, you need wait until process is finished.", "Warning...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); return; } @@ -155,7 +155,7 @@ private void CopyOrMove_UpdatedBrowserTreeView(DragDropEffects dragDropEffects, "Source and destiation are the same.\r\n\r\n" + "Target folder: " + targetFolder + "\r\n" + fileMessage + - folderMessage, "Warning...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); + folderMessage, "Warning...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); } treeViewFolderBrowser1.Focus(); @@ -163,7 +163,7 @@ private void CopyOrMove_UpdatedBrowserTreeView(DragDropEffects dragDropEffects, catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -181,7 +181,7 @@ private void treeViewFolderBrowser1_BeforeLabelEdit(object sender, NodeLabelEdit if (directoryInfo.Parent == null || sourceDirectory == null || !Directory.Exists(sourceDirectory)) { e.CancelEdit = true; - KryptonMessageBox.Show("Can't edit folder name. No valid folder selected.", "Invalid folder...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); + KryptonMessageBox.Show("Can't edit folder name. No valid folder selected.", "Invalid folder...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); return; } } @@ -189,7 +189,7 @@ private void treeViewFolderBrowser1_BeforeLabelEdit(object sender, NodeLabelEdit catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } @@ -223,7 +223,7 @@ private void AfterAfterLabelEdit(TreeNode node, string newLabel, string oldLabel } else { - KryptonMessageBox.Show("Can't edit folder name. No valid folder selected.", "Invalid folder...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); + KryptonMessageBox.Show("Can't edit folder name. No valid folder selected.", "Invalid folder...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning, showCtrlCopy: true); } treeViewFolderBrowser1.ResumeLayout(); treeViewFolderBrowser1.Focus(); @@ -232,7 +232,7 @@ private void AfterAfterLabelEdit(TreeNode node, string newLabel, string oldLabel catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } private void treeViewFolderBrowser1_AfterLabelEdit(object sender, NodeLabelEditEventArgs e) @@ -247,7 +247,7 @@ private void treeViewFolderBrowser1_AfterLabelEdit(object sender, NodeLabelEditE catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -277,7 +277,7 @@ private void treeViewFolderBrowser1_DragDrop(object sender, DragEventArgs e) catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } @@ -300,7 +300,7 @@ private void treeViewFolderBrowser1_NodeMouseClick(object sender, TreeNodeMouseC catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -316,7 +316,7 @@ private DataObject SetDropDropFileList(string sourceDirectory) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } return SetDropDropFileList(droplist); } @@ -357,7 +357,7 @@ private void treeViewFolderBrowser1_ItemDrag(object sender, ItemDragEventArgs e) SetDropDropFileList(""); //Removes error message for wrong Data in Clipboard Logger.Error(ex, "folderTreeViewFolder_ItemDrag, Failed create drag and drop transfer data."); - KryptonMessageBox.Show("Failed create drag and drop transfer data. Error: " + ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Failed create drag and drop transfer data. Error: " + ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); treeViewFolderBrowser1.Focus(); } } @@ -374,7 +374,7 @@ private void treeViewFolderBrowser1_DragLeave(object sender, EventArgs e) catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion diff --git a/PhotoTags Synchronizer/MainForm_TreeViewFolderBrowser_EventHandling.cs b/PhotoTags Synchronizer/MainForm_TreeViewFolderBrowser_EventHandling.cs index 7c176a19..ed0d5e16 100644 --- a/PhotoTags Synchronizer/MainForm_TreeViewFolderBrowser_EventHandling.cs +++ b/PhotoTags Synchronizer/MainForm_TreeViewFolderBrowser_EventHandling.cs @@ -26,7 +26,7 @@ private void treeViewFolderBrowser1_BeforeSelect(object sender, TreeViewCancelEv catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -47,7 +47,7 @@ private void treeViewFolderBrowser1_AfterSelect(object sender, TreeViewEventArgs catch (Exception ex) { Logger.Error(ex, ""); - KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show("Following error occured: \r\n" + ex.Message, "Was not able to complete operation", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -73,7 +73,7 @@ private string GetNodeFolderRealPath(TreeNodePath treeNodePath) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); return ""; } } diff --git a/PhotoTags Synchronizer/MainForm_TreeViewFolderBrowser_Filter.cs b/PhotoTags Synchronizer/MainForm_TreeViewFolderBrowser_Filter.cs index 060f3590..4835ab1c 100644 --- a/PhotoTags Synchronizer/MainForm_TreeViewFolderBrowser_Filter.cs +++ b/PhotoTags Synchronizer/MainForm_TreeViewFolderBrowser_Filter.cs @@ -38,7 +38,7 @@ private void treeViewFilter_BeforeCheck(object sender, TreeViewCancelEventArgs e catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -63,7 +63,7 @@ private void treeViewFilter_AfterCheck(object sender, TreeViewEventArgs e) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -91,7 +91,7 @@ private void FilterReplaceNullWithIsNotDefineText(List list, bool addIsN catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -216,7 +216,7 @@ public void PopulateDatabaseFilter() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -231,7 +231,7 @@ private void PopulateTreeViewFolderFilterAdd(Metadata metadata) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -252,7 +252,7 @@ private void PopulateTreeViewFolderFilterUpdatedTreeViewFilterInvoke() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion diff --git a/PhotoTags Synchronizer/MainForm_Workspace.cs b/PhotoTags Synchronizer/MainForm_Workspace.cs index 4e61c26c..72ac3d13 100644 --- a/PhotoTags Synchronizer/MainForm_Workspace.cs +++ b/PhotoTags Synchronizer/MainForm_Workspace.cs @@ -28,7 +28,7 @@ private Krypton.Workspace.KryptonWorkspaceCell FindWorkspaceCell(Krypton.Workspa catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } return null; } @@ -44,7 +44,7 @@ private void ActionMaximumWorkspaceCell(Krypton.Workspace.KryptonWorkspace krypt catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -77,7 +77,7 @@ private void WorkspaceCellToolboxTagsMaximizeOrRestore() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -92,7 +92,7 @@ private void ActionMaximizeRestoreWorkspaceCellToolboxTags() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -125,7 +125,7 @@ private void MaximizeOrRestoreWorkspaceMainCellAndChilds() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -141,7 +141,7 @@ private void ActionMaximizeRestoreWorkspaceMain() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -183,7 +183,7 @@ private void kryptonWorkspaceCellToolboxTagsDetails_Click(object sender, EventAr catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } @@ -196,7 +196,7 @@ private void kryptonWorkspaceCellToolboxTagsKeywords_Click(object sender, EventA catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -211,7 +211,7 @@ private void kryptonWorkspaceCellFolderSearchFilter_Click(object sender, EventAr catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -231,7 +231,7 @@ private void kryptonWorkspaceMain_ActivePageChanged(object sender, Krypton.Works catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -265,7 +265,7 @@ private void kryptonWorkspaceCellToolbox_SelectedPageChanged(object sender, Even } catch (Exception ex) { - KryptonMessageBox.Show(ex.Message, "Was not able to to populate data grid view", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Was not able to to populate data grid view", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); Logger.Error(ex); } } @@ -545,7 +545,7 @@ private void kryptonContextMenuGenericBase_Opening(object sender, System.Compone catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error starting kryptonContextMenuGenericBase_Opening...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error starting kryptonContextMenuGenericBase_Opening...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -578,7 +578,7 @@ private void RibbonsQTAVisiable(bool saveVisible = true, bool mediaSelectVisible catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } @@ -596,7 +596,7 @@ private void RibbonGroupButtonHomeClipboard(bool enabledCopy = false, bool enabl catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } @@ -624,7 +624,7 @@ private void RibbonGroupButtonHomeFileSystem(bool enabledDelete = false, bool en catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } @@ -640,7 +640,7 @@ private void RibbonGroupButtonHomeFastCopytext(bool enabledFastCopyPathText = fa catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } @@ -654,7 +654,7 @@ private void RibbonGroupButtonHomeFineAndReplace(bool enabledFind = false, bool catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } @@ -669,7 +669,7 @@ private void RibbonGroupButtonHomeRotate(bool enabled = false) catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } @@ -695,7 +695,7 @@ private void RibbonGroupButtonHomeMetadata(bool enabledAutoCorrect = false, bool catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -1265,7 +1265,7 @@ private void UpdateRibbonsWhenWorkspaceChanged() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -1281,7 +1281,7 @@ private void ActionUpdateDataGridViewDirtyFlagsWhenPageActivated() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } @@ -1324,7 +1324,7 @@ private void UpdateDataGridViewDirtyFlagsWhenPageActivated() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion @@ -1363,7 +1363,7 @@ private void UpdateFromsAcceptButtonWhenPageActivated() catch (Exception ex) { Logger.Error(ex); - KryptonMessageBox.Show(ex.Message, "Syntax error...", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Syntax error...", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); } } #endregion diff --git a/PhotoTags Synchronizer/PhotoTags Synchronizer.csproj b/PhotoTags Synchronizer/PhotoTags Synchronizer.csproj index afaf4bea..7bc6f478 100644 --- a/PhotoTags Synchronizer/PhotoTags Synchronizer.csproj +++ b/PhotoTags Synchronizer/PhotoTags Synchronizer.csproj @@ -162,15 +162,15 @@ 1.3.1 - - - - - + + + + + - 5.2.4 + 5.2.8 diff --git a/PhotoTags Synchronizer/Program.cs b/PhotoTags Synchronizer/Program.cs index 85ef4acc..dc87a275 100644 --- a/PhotoTags Synchronizer/Program.cs +++ b/PhotoTags Synchronizer/Program.cs @@ -108,7 +108,7 @@ static void Main() } catch (Exception ex) { - KryptonMessageBox.Show(ex.Message, "Was not able to load VLC player", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); + KryptonMessageBox.Show(ex.Message, "Was not able to load VLC player", (KryptonMessageBoxButtons)MessageBoxButtons.OK, KryptonMessageBoxIcon.Error, showCtrlCopy: true); return; } Application.Run(mainForm); diff --git a/PhotoTags Synchronizer/Properties/Settings.Designer.cs b/PhotoTags Synchronizer/Properties/Settings.Designer.cs index dc388bd5..2673e7ee 100644 --- a/PhotoTags Synchronizer/Properties/Settings.Designer.cs +++ b/PhotoTags Synchronizer/Properties/Settings.Designer.cs @@ -2285,36 +2285,36 @@ public int PreviewSlideshowInterval { [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("True")] - public bool KryptonPaletteDropShadow { + public bool KryptonCustomPaletteBaseDropShadow { get { - return ((bool)(this["KryptonPaletteDropShadow"])); + return ((bool)(this["KryptonCustomPaletteBaseDropShadow"])); } set { - this["KryptonPaletteDropShadow"] = value; + this["KryptonCustomPaletteBaseDropShadow"] = value; } } [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("")] - public string KryptonPaletteFullFilename { + public string KryptonCustomPaletteBaseFullFilename { get { - return ((string)(this["KryptonPaletteFullFilename"])); + return ((string)(this["KryptonCustomPaletteBaseFullFilename"])); } set { - this["KryptonPaletteFullFilename"] = value; + this["KryptonCustomPaletteBaseFullFilename"] = value; } } [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("")] - public string KryptonPaletteName { + public string KryptonCustomPaletteBaseName { get { - return ((string)(this["KryptonPaletteName"])); + return ((string)(this["KryptonCustomPaletteBaseName"])); } set { - this["KryptonPaletteName"] = value; + this["KryptonCustomPaletteBaseName"] = value; } } diff --git a/PhotoTags Synchronizer/Properties/Settings.settings b/PhotoTags Synchronizer/Properties/Settings.settings index 7565caff..8d7613ec 100644 --- a/PhotoTags Synchronizer/Properties/Settings.settings +++ b/PhotoTags Synchronizer/Properties/Settings.settings @@ -1077,13 +1077,13 @@ Dimensions 2000 - + True - + - + diff --git a/PhotoTags Synchronizer/Themes/PhotoTags Synchronizer Dark mode.xml b/PhotoTags Synchronizer/Themes/PhotoTags Synchronizer Dark mode.xml index f0b8346f..5bcfba4a 100644 --- a/PhotoTags Synchronizer/Themes/PhotoTags Synchronizer Dark mode.xml +++ b/PhotoTags Synchronizer/Themes/PhotoTags Synchronizer Dark mode.xml @@ -1,8 +1,8 @@ - + - + @@ -892,8 +892,8 @@ - + - \ No newline at end of file + \ No newline at end of file diff --git a/PhotoTags Synchronizer/app.config b/PhotoTags Synchronizer/app.config index 1c5e6be9..38b70f78 100644 --- a/PhotoTags Synchronizer/app.config +++ b/PhotoTags Synchronizer/app.config @@ -1081,13 +1081,13 @@ Dimensions 2000 - + True - + - + diff --git a/PhotoTagsCommonComponets/PhotoTagsCommonComponets.csproj b/PhotoTagsCommonComponets/PhotoTagsCommonComponets.csproj index 326eac3e..46c637e5 100644 --- a/PhotoTagsCommonComponets/PhotoTagsCommonComponets.csproj +++ b/PhotoTagsCommonComponets/PhotoTagsCommonComponets.csproj @@ -55,11 +55,11 @@ - - - - - + + + + + diff --git a/PipeMessage/PipeMessage.csproj b/PipeMessage/PipeMessage.csproj index 92e2e5aa..b9103e87 100644 --- a/PipeMessage/PipeMessage.csproj +++ b/PipeMessage/PipeMessage.csproj @@ -58,7 +58,7 @@ - + diff --git a/Raccoom.TreeViewFolderBrowser.DataProviders/Raccoom.TreeViewFolderBrowser.DataProviders.csproj b/Raccoom.TreeViewFolderBrowser.DataProviders/Raccoom.TreeViewFolderBrowser.DataProviders.csproj index 64e458e9..78db40af 100644 --- a/Raccoom.TreeViewFolderBrowser.DataProviders/Raccoom.TreeViewFolderBrowser.DataProviders.csproj +++ b/Raccoom.TreeViewFolderBrowser.DataProviders/Raccoom.TreeViewFolderBrowser.DataProviders.csproj @@ -54,7 +54,7 @@ - + diff --git a/Raccoom.TreeViewFolderBrowser/Raccoom.TreeViewFolderBrowser.csproj b/Raccoom.TreeViewFolderBrowser/Raccoom.TreeViewFolderBrowser.csproj index 0f6e346a..dc05b3a0 100644 --- a/Raccoom.TreeViewFolderBrowser/Raccoom.TreeViewFolderBrowser.csproj +++ b/Raccoom.TreeViewFolderBrowser/Raccoom.TreeViewFolderBrowser.csproj @@ -55,7 +55,7 @@ - + diff --git a/SqlCeDatabase/SqlCeDatabase.csproj b/SqlCeDatabase/SqlCeDatabase.csproj index 5afe0a81..330bf443 100644 --- a/SqlCeDatabase/SqlCeDatabase.csproj +++ b/SqlCeDatabase/SqlCeDatabase.csproj @@ -55,9 +55,9 @@ - + - + \ No newline at end of file diff --git a/SqlCeDatabase31/SqlCeDatabase31.csproj b/SqlCeDatabase31/SqlCeDatabase31.csproj index 07a52eb4..5f283f9b 100644 --- a/SqlCeDatabase31/SqlCeDatabase31.csproj +++ b/SqlCeDatabase31/SqlCeDatabase31.csproj @@ -83,7 +83,7 @@ - + diff --git a/SqliteDatabase/SqliteDatabase.csproj b/SqliteDatabase/SqliteDatabase.csproj index 13ceef8d..4dd74825 100644 --- a/SqliteDatabase/SqliteDatabase.csproj +++ b/SqliteDatabase/SqliteDatabase.csproj @@ -55,7 +55,7 @@ - + diff --git a/WapPhotoTags-Synchronizer/WapPhotoTags-Synchronizer.wapproj b/WapPhotoTags-Synchronizer/WapPhotoTags-Synchronizer.wapproj index 6dfe77c2..379e1811 100644 --- a/WapPhotoTags-Synchronizer/WapPhotoTags-Synchronizer.wapproj +++ b/WapPhotoTags-Synchronizer/WapPhotoTags-Synchronizer.wapproj @@ -160,7 +160,7 @@ - + diff --git a/WindowsProperty/WindowsProperty.csproj b/WindowsProperty/WindowsProperty.csproj index 021f0973..f9e65b89 100644 --- a/WindowsProperty/WindowsProperty.csproj +++ b/WindowsProperty/WindowsProperty.csproj @@ -60,7 +60,7 @@ - +