void ViewerPage_Loaded(object sender, RoutedEventArgs rea) { Loaded -= ViewerPage_Loaded; ExportPage.ExtractC1NWind(); LoadReportList(); }
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; }
private async void Page_Loaded(object sender, RoutedEventArgs e) { // await ExportPage.CopyC1NWind(); // UpdateReportsList(); }
private void UserControl_Loaded(object sender, RoutedEventArgs e) { ExportPage.ExtractC1NWind(); }