Example #1
0
 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;
     }
 }
Example #2
0
 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;
         }
     }
 }