예제 #1
0
        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);
        }
예제 #2
0
        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;
        }