示例#1
0
文件: Options.cs 项目: elnomade/hathi
 private void on_btnBrowseIncoming_clicked(object sender, EventArgs args)
 {
     SelectFolder dlgSelectFolder = new SelectFolder();
     ResponseType result = (ResponseType)dlgSelectFolder.dlgSelectFolder.Run();
     if (result==ResponseType.Ok)
     {
     string folder = dlgSelectFolder.dlgSelectFolder.SelectionText.Text;
     int delimitador = folder.IndexOf (":")+2;
     folder = folder.Substring(delimitador);
     txtIncomingFolder.Text = folder;
     }
     dlgSelectFolder.dlgSelectFolder.Destroy();
 }
示例#2
0
文件: Options.cs 项目: elnomade/hathi
 private void on_btnAddTempFolder_clicked(object sender, EventArgs args)
 {
     SelectFolder dlgSelectFolder = new SelectFolder();
     ResponseType result = (ResponseType)dlgSelectFolder.dlgSelectFolder.Run();
     if (result==ResponseType.Ok)
     {
     string folder = dlgSelectFolder.dlgSelectFolder.SelectionText.Text;
     int delimitador = folder.IndexOf (":")+2;
     folder = folder.Substring(delimitador);
     stTempFolders.AppendValues(folder);
     }
     dlgSelectFolder.dlgSelectFolder.Destroy();
 }