async void htmlRep_Loaded(object sender, RoutedEventArgs e) { if (_selected.Count <= 0) { return; } await Nuts4SelFoo.fetch(_selected); if (Nuts4SelFoo.ReportData().Count > 0) { try { htmlReport htmrep = new htmlReport(); string rep = htmrep.TransformText(); //MessageBox.Show(rep); Clipboard.SetText(rep); web.NavigateToString(rep); } catch (System.Exception a) { MessageBox.Show(a.Message); } } }
async void flowDoc_Loaded(object sender, RoutedEventArgs e) { await Nuts4SelFoo.fetch(_selected); if (Nuts4SelFoo.ReportData().Count > 0) { try { repList = Nuts4SelFoo.repList; } catch (System.Exception a) { MessageBox.Show(a.Message); } } Makedoc(); cfoods = _selected.Count; hlab.Content = string.Format("< Comparing ({0}) Foods. >", cfoods); }