예제 #1
0
        void saveCFD_FileTypeChanged(object sender, EventArgs e)
        {
            CommonSaveFileDialog cfd = sender as CommonSaveFileDialog;

            if (cfd.SelectedFileTypeIndex == 1)
            {
                cfd.SetCollectedPropertyKeys(true, SystemProperties.System.Title, SystemProperties.System.Author);
                cfd.DefaultExtension = ".docx";
            }
            else if (cfd.SelectedFileTypeIndex == 2)
            {
                cfd.SetCollectedPropertyKeys(true, SystemProperties.System.Photo.DateTaken, SystemProperties.System.Photo.CameraModel);
                cfd.DefaultExtension = ".jpg";
            }
        }