Esempio n. 1
0
        public static void OpenSampleData(ReportDefinition rd)
        {
            var fileNameToSearch = rd.SampleData + ".jsrep.json";

            var item = _dte.ActiveDocument.ProjectItem.ContainingProject.GetAllProjectItems().FirstOrDefault(p => p.Name == fileNameToSearch);

            if (item != null)
            {
                Window window = item.Open();
                window.Activate();
            }
        }
Esempio n. 2
0
        public static void OpenSampleData(ReportDefinition rd)
        {
            var fileNameToSearch = rd.SampleData + ".jsrep.json";

            var item = _dte.ActiveDocument.ProjectItem.ContainingProject.GetAllProjectItems().FirstOrDefault(p => p.Name == fileNameToSearch);

            if (item != null)
            {
                Window window = item.Open();
                window.Activate();
            }
        }
        public async Task LoadStateFromFile(string fileName)
        {
            _fileName = fileName;

            _state = SetupHelpers.ReadReportDefinition(fileName);

            await ReloadOptions();
        }