示例#1
0
        private void PickFolder()
        {
            IFileDialogService dialog = this.GetService <IFileDialogService>();

            if (dialog != null)
            {
                string dest = dialog.PickFolder(@"Choose a destination folder...");
                if (!string.IsNullOrEmpty(dest))
                {
                    this.Destination = dest;
                }
            }
        }
示例#2
0
		/// <summary>
		/// Button clicked to change directory.
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void ShowDirectoryBrowser() {

			IFileDialogService dialog = this.GetService<IFileDialogService>();
			if( dialog != null ) {

				string new_dir = dialog.PickFolder( @"Select Directory...", this.visitor.CurrentDirectory );
				if( !string.IsNullOrEmpty( new_dir ) ) {
					this.SetDirectory( new_dir );
				}

			}

		} //