Ejemplo n.º 1
0
        /// <summary>
        /// Saves the cube of the specified <see cref="TOLAPAnalysis"/> as
        /// </summary>
        /// <param name="tolapAnalysis">The <see cref="TOLAPAnalysis"/> whose cube to save as</param>
        private void DoSaveCubeAs(TOLAPAnalysis tolapAnalysis)
        {
            var dlg = new SaveFileDialog
            {
                FileName   = "CubeConfig",
                DefaultExt = ".xml",
                Filter     = "XML documents (.xml)|*.xml"
            };

            if (dlg.ShowDialog() != true)
            {
                return;
            }

            _currentCubeConfig = new CubeConfigurationFile("New cube config", dlg.FileName);

            _currentDataSetConfig.CubeFiles.Add(_currentCubeConfig);

            UiAction(() =>
            {
                // TODO: request display name
                tolapAnalysis.SaveUncompressed(_currentCubeConfig.FilePath, TStreamContent.GridState);
            });

            _userConfiguration.Save(Settings.Default.UserConfigurationFile);

            DoLoadDataSetMenu();
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Saves the cube of the specified <see cref="TOLAPAnalysis"/>
 /// </summary>
 /// <param name="tolapAnalysis">The <see cref="TOLAPAnalysis"/> whose cube to save</param>
 private void DoSaveCube(TOLAPAnalysis tolapAnalysis)
 {
     UiAction(() =>
     {
         tolapAnalysis.SaveUncompressed(_currentCubeConfig.FilePath, TStreamContent.GridState);
     });
 }