Пример #1
0
        void ViewerPage_Loaded(object sender, RoutedEventArgs rea)
        {
            Loaded -= ViewerPage_Loaded;

            ExportPage.ExtractC1NWind();
            LoadReportList();
        }
Пример #2
0
        async void ViewerPage_Loaded(object sender, RoutedEventArgs e)
        {
            _asm = typeof(ViewerPage).GetTypeInfo().Assembly;
            await ExportPage.CopyC1NWind();

            string[] reports = null;

            // get list of reports from resource using stream
            using (Stream stream = _asm.GetManifestResourceStream("FlexReportSamples.Resources.FlexCommonTasks_UWP.flxr"))
                reports = C1FlexReport.GetReportList(stream);

            cbReport.Items.Clear();
            cbReport.SelectionChanged += CbReport_SelectionChanged;

            if (reports != null && reports.Length > 0)
            {
                foreach (string s in reports)
                {
                    cbReport.Items.Add(s);
                }
            }

            foreach (string s in _pdfs)
            {
                cbReport.Items.Add(s);
            }

            cbReport.SelectedIndex = 0;
        }
Пример #3
0
        private async void Page_Loaded(object sender, RoutedEventArgs e)
        {
            //
            await ExportPage.CopyC1NWind();

            //
            UpdateReportsList();
        }
Пример #4
0
 private void UserControl_Loaded(object sender, RoutedEventArgs e)
 {
     ExportPage.ExtractC1NWind();
 }