mirror of
https://git.femboyfinancial.jp/james/lipsync.git
synced 2024-11-22 10:42:03 -08:00
9de5d2e51e
git-svn-id: http://svn.sourceforge.jp/svnroot/lipsync@18 b1f601f4-4f45-0410-8980-aecacb008692
65 lines
1.7 KiB
C#
65 lines
1.7 KiB
C#
/*
|
|
* BFolderBrowser.cs
|
|
* Copyright (c) 2009 kbinani
|
|
*
|
|
* This file is part of bocoree.
|
|
*
|
|
* bocoree is free software; you can redistribute it and/or
|
|
* modify it under the terms of the BSD License.
|
|
*
|
|
* bocoree is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
*/
|
|
#if JAVA
|
|
//INCLUDE ..\BuildJavaUI\src\org\kbinani\windows\forms\BFolderBrowser.java
|
|
#else
|
|
using System;
|
|
using System.Windows.Forms;
|
|
|
|
namespace bocoree.windows.forms {
|
|
|
|
public class BFolderBrowser {
|
|
public FolderBrowserDialog dialog;
|
|
|
|
public BFolderBrowser() {
|
|
dialog = new FolderBrowserDialog();
|
|
dialog.RootFolder = Environment.SpecialFolder.Desktop;
|
|
}
|
|
|
|
public bool isNewFolderButtonVisible() {
|
|
return dialog.ShowNewFolderButton;
|
|
}
|
|
|
|
public void setNewFolderButtonVisible( bool value ) {
|
|
dialog.ShowNewFolderButton = value;
|
|
}
|
|
|
|
public string getDescription() {
|
|
return dialog.Description;
|
|
}
|
|
|
|
public void setDescription( string value ) {
|
|
dialog.Description = value;
|
|
}
|
|
|
|
public string getSelectedPath() {
|
|
return dialog.SelectedPath;
|
|
}
|
|
|
|
public void setSelectedPath( string value ) {
|
|
dialog.SelectedPath = value;
|
|
}
|
|
|
|
public BDialogResult showDialog() {
|
|
if ( dialog.ShowDialog() == DialogResult.OK ) {
|
|
return BDialogResult.OK;
|
|
} else {
|
|
return BDialogResult.CANCEL;
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
#endif
|