private void txtPath_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { using (Essential.OpenFolderDialogue dialogue = new Essential.OpenFolderDialogue()) { dialogue.ShowDialog(); this.txtPath.Text = dialogue.FolderLocation; } }
private void btnImageLocation_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { using (Essential.OpenFolderDialogue ofd = new Essential.OpenFolderDialogue()) { if (ofd.ShowDialog() == System.Windows.Forms.DialogResult.OK) { ((DB.CAT_Catalogue)BindingSource.DataSource).ImageDestination = ofd.FolderLocation; } } }