public bool SaveFileDialog(out string PathName, out string FileName) { PathName = null; FileName = null; try { //show browser CloudStorageBrowser dlg = new CloudStorageBrowser(false, this); var ret = dlg.ShowDialog(); //check for cancel return if (!ret.HasValue || ret.Value == false) { return(false); } //get the selected info PathName = dlg.SelectedBucket; FileName = dlg.SelectedFile; return(true); } catch (Exception ex) { Trace.WriteLine(ex.ToString()); } return(false); }
public bool SaveFileDialog(out string PathName, out string FileName) { PathName = null; FileName = null; try { //show browser CloudStorageBrowser dlg = new CloudStorageBrowser(false, this); var ret = dlg.ShowDialog(); //check for cancel return if (!ret.HasValue || ret.Value == false) { return false; } //get the selected info PathName = dlg.SelectedBucket; FileName = dlg.SelectedFile; return true; } catch (Exception ex) { Trace.WriteLine(ex.ToString()); } return false; }