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(); }
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(); }