Author: rolf
Date: 2007-05-04 07:29:35 -0400 (Fri, 04 May 2007)
New Revision: 76667
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/FileDialog.cs
Log:
2007-05-04 Randolph Chung <[EMAIL PROTECTED]>
* FileDialog.cs: Implement the SupportMultiDottedExtensions property.
[Fixes bug #81499]
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-05-04 10:59:10 UTC (rev 76666)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-05-04 11:29:35 UTC (rev 76667)
@@ -1,3 +1,8 @@
+2007-05-04 Randolph Chung <[EMAIL PROTECTED]>
+
+ * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
+ [Fixes bug #81499]
+
2007-05-04 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
* XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/FileDialog.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/FileDialog.cs
2007-05-04 10:59:10 UTC (rev 76666)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/FileDialog.cs
2007-05-04 11:29:35 UTC (rev 76667)
@@ -70,6 +70,7 @@
private string title;
private bool validateNames = true;
#if NET_2_0
+ private bool supportMultiDottedExtensions;
private bool checkForIllegalChars = true;
#endif
@@ -595,6 +596,19 @@
}
}
+#if NET_2_0
+ [DefaultValue(false)]
+ public bool SupportMultiDottedExtensions {
+ get {
+ return supportMultiDottedExtensions;
+ }
+
+ set {
+ supportMultiDottedExtensions = value;
+ }
+ }
+#endif
+
[DefaultValue("")]
[Localizable(true)]
public string Title {
@@ -642,6 +656,9 @@
FilterIndex = 1;
InitialDirectory = null;
restoreDirectory = false;
+#if NET_2_0
+ SupportMultiDottedExtensions = false;
+#endif
ShowHelp = false;
Title = null;
validateNames = true;
@@ -915,6 +932,17 @@
if
(extension.IndexOf ('*') != -1)
continue;
+#if NET_2_0
+ if
(!supportMultiDottedExtensions) {
+ int
lastdot = extension.LastIndexOf('.');
+ if
(lastdot > 0) {
+
if (extension.LastIndexOf('.', lastdot - 1) != -1) {
+
extension = extension.Remove(0, lastdot);
+
}
+ }
+ }
+#endif
+
filter_exentsion = extension;
break;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches