Beispiel #1
0
 private void SaveJsonDocument(SaveJsonDocumentMessage msg)
 {
     var dlg = new SaveFileDialog();
     dlg.FileName = msg.FileName;
     dlg.Filter = Strings.FileDialogFilter;
     dlg.RestoreDirectory = true;
     dlg.AddExtension = true;
     if (dlg.ShowDialog() == DialogResult.OK)
     {
         msg.CallSuccessCallback(dlg.FileName);
         Telemetry.TrackEvent("FileSave");
     }
     else
         msg.CallFailCallback(null);
 }
Beispiel #2
0
        private void SaveJsonDocument(SaveJsonDocumentMessage msg)
        {
            var dlg = new SaveFileDialog();

            dlg.FileName         = msg.FileName;
            dlg.Filter           = Strings.FileDialogFilter;
            dlg.RestoreDirectory = true;
            dlg.AddExtension     = true;
            if (dlg.ShowDialog() == DialogResult.OK)
            {
                msg.CallSuccessCallback(dlg.FileName);
                Telemetry.TrackEvent("FileSave");
            }
            else
            {
                msg.CallFailCallback(null);
            }
        }