diff --git a/Application.xaml.vb b/Application.xaml.vb index 9a9a772..b12c40d 100644 --- a/Application.xaml.vb +++ b/Application.xaml.vb @@ -210,7 +210,8 @@ Class Application Friend Const GUNSTOCKMODIF As String = "GunStockModif" Private Sub Application_DispatcherUnhandledException(ByVal sender As System.Object, ByVal e As System.Windows.Threading.DispatcherUnhandledExceptionEventArgs) - MessageBox.Show(e.Exception.Message) + 'MessageBox.Show(e.Exception.Message) + EgtMessageBoxV.Show(Application.Current.MainWindow, e.Exception.Message) e.Handled = True End Sub diff --git a/CurrSetUp/CurrSetUpVM.vb b/CurrSetUp/CurrSetUpVM.vb index 7570fc5..6267704 100644 --- a/CurrSetUp/CurrSetUpVM.vb +++ b/CurrSetUp/CurrSetUpVM.vb @@ -161,7 +161,8 @@ Public Class CurrSetUpVM sFilePath = SaveFileDialogViewVM.FileName If Not m_SetUpVM.Save(sFilePath) Then EgtOutLog("Error in setup saving: can't find the directory") - MessageBox.Show("Error in saving Setup.", "Error", MessageBoxButton.OK, MessageBoxImage.Error) + 'MessageBox.Show("Error in saving Setup.", "Error", MessageBoxButton.OK, MessageBoxImage.Error) + EgtMessageBoxV.Show(Application.Current.MainWindow, "Error in saving Setup.", "Error", MessageBoxButton.OK, MessageBoxImage.Error) End If End Sub @@ -256,14 +257,15 @@ Public Class CurrSetUpVM ' Verifico se l'attrezzaggio è stato modificato If m_SetUpVM.IsAppliedSetUp() Then ' se modificato chiedo se salvarlo prima di uscire - If MessageBox.Show(EgtMsg(MSG_SETUP + 6), EgtMsg(MSG_SETUP + 2), MessageBoxButton.YesNo, MessageBoxImage.Question) = MessageBoxResult.Yes Then + 'If MessageBox.Show(EgtMsg(MSG_SETUP + 6), EgtMsg(MSG_SETUP + 2), MessageBoxButton.YesNo, MessageBoxImage.Question) = MessageBoxResult.Yes Then + If EgtMessageBoxV.Show(Application.Current.MainWindow, EgtMsg(MSG_SETUP + 6), EgtMsg(MSG_SETUP + 2), MessageBoxButton.YesNo, MessageBoxImage.Question) = MessageBoxResult.Yes Then ' lo salvo Apply() End If End If - ' Resetto tutti i delegate usati - ExitToolAssociation.m_delIsModifiedSetUp = Nothing + ' Resetto tutti i delegate usati + ExitToolAssociation.m_delIsModifiedSetUp = Nothing ' Reset lua EgtLuaResetGlobVar("STU") diff --git a/EgtCAM5.vbproj b/EgtCAM5.vbproj index 2da8add..e089165 100644 --- a/EgtCAM5.vbproj +++ b/EgtCAM5.vbproj @@ -161,6 +161,12 @@ CurrSetUpV.xaml + + EgtColorPickerV.xaml + + + EgtMessageBoxV.xaml + LeftTrayV.xaml @@ -455,6 +461,14 @@ MSBuild:Compile Designer + + Designer + MSBuild:Compile + + + Designer + MSBuild:Compile + Designer MSBuild:Compile @@ -1034,6 +1048,18 @@ + + + + + + + + + + + + IF "$(PlatformName)"=="x86" IF "$(ConfigurationName)" == "Release" copy $(TargetPath) c:\EgtProg\EgtCAM5\EgtCAM5R32.exe diff --git a/EgtColorPicker/EgtColorPickerV.xaml b/EgtColorPicker/EgtColorPickerV.xaml new file mode 100644 index 0000000..0ba6f8c --- /dev/null +++ b/EgtColorPicker/EgtColorPickerV.xaml @@ -0,0 +1,266 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +