Esempio n. 1
0
 protected override void InitializeFields()
 {
     base.InitializeFields();
     this.value = (string)null;
     this.browseEditorDialogType   = BrowseEditorDialogType.OpenFileDialog;
     this.ShouldHandleMouseInput   = true;
     this.NotifyParentOnMouseInput = true;
 }
Esempio n. 2
0
        protected virtual void ChangeDialogType(BrowseEditorDialogType dialogType)
        {
            switch (dialogType)
            {
            case BrowseEditorDialogType.OpenFileDialog:
                this.dialog = (CommonDialog)this.CreateOpenFileDialog();
                break;

            case BrowseEditorDialogType.FolderBrowseDialog:
                this.dialog = (CommonDialog)this.CreateFolderBrowserDialog();
                break;

            case BrowseEditorDialogType.SaveFileDialog:
                this.dialog = (CommonDialog)this.CreateSaveFileDialog();
                break;

            case BrowseEditorDialogType.FontDialog:
                this.dialog = (CommonDialog)this.CreateFontDialog();
                break;
            }
        }