* FileDialog.cs: Accept any FilterIndex value, and store it
authorGert Driesen <drieseng@users.sourceforge.net>
Sun, 29 Jul 2007 15:20:25 +0000 (15:20 -0000)
committerGert Driesen <drieseng@users.sourceforge.net>
Sun, 29 Jul 2007 15:20:25 +0000 (15:20 -0000)
commit667be1d1350e231316d8f388ebf41934178d0d38
treea3e36b53c2ca60a259265f80291ec1534bd520af
parent0f549e6bd65c4bfc8965dd029fd56108e916fc16
* FileDialog.cs: Accept any FilterIndex value, and store it
unmodified. When FilterIndex is less than 1, or greater than number
of filters, then default to first filter. Only add filter extension to
file if user did not specifiy an extension. When type of dialog is
OpenFileDialog and DefaultExt is set, then only use filter extension
if: CheckFileExists is true and no file wih the default extension
exists, or CheckFileExists is false, and user specified file does not
exist. When CheckFileExists is true, then add first extension of
selected filter that matches existing file. Perform checks for
existing file, overwrite and create after extension has been added to
file name. When CheckFileExists is true and type is SaveFileDialog,
then only consider first filter extension if DefaultExt is set.
When CheckFileExists is true, then ignore DefaultExt if file with that
extension does not exist. Also perform check for existing file when
type is SaveFileDialog. Changed some field to constants.

svn path=/trunk/mcs/; revision=82935
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/FileDialog.cs