protected override void InitializeFields() { base.InitializeFields(); this.value = (string)null; this.browseEditorDialogType = BrowseEditorDialogType.OpenFileDialog; this.ShouldHandleMouseInput = true; this.NotifyParentOnMouseInput = true; }
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; } }