EgtWPFLib5 1.9j1 :

- Aggiunto dialogo di scelta nome con funzione di analisi del nome impostabile.
- Correzzione analisi caratteri speciali in SaveFileDialog.
This commit is contained in:
Emmanuele Sassi
2018-10-08 13:47:18 +00:00
parent bb374bc915
commit 8448caec5a
7 changed files with 148 additions and 138 deletions
+7 -2
View File
@@ -67,11 +67,16 @@ Public Class SaveFileDialogVM
Return m_WriteFileName
End Get
Set(value As String)
Dim TempName As String = value.Trim(Path.GetInvalidFileNameChars)
Dim TempName As String = value
For Each cInvalid In Path.GetInvalidFileNameChars()
TempName = TempName.Replace(cInvalid, "")
Next
If TempName.Length = value.Length Then
m_WriteFileName = value
Else
MessageBox.Show(EgtMsg(MSG_EGTSAVEFILEDIALOG + 10), EgtMsg(MSG_EGTSAVEFILEDIALOG + 7), MessageBoxButton.OK, MessageBoxImage.Error)
MessageBox.Show(EgtMsg(MSG_MACHININGDBERRORS + 4),
EgtMsg(MSG_EGTSAVEFILEDIALOG + 7),
MessageBoxButton.OK, MessageBoxImage.Error)
End If
NotifyPropertyChanged("WriteFileName")
End Set