private void ReportItem_Click(object sender, RoutedEventArgs e)
        {
            WirelessReport rpt = ((MenuItem)sender).DataContext as WirelessReport;

            if (rpt != null && Simulation != null)
            {
                WirelessUnitTestInstance instance = WirelessUnitTestInstance.InstanceFromSimulation(Simulation);
                string output = instance.RunReport(rpt);
                System.Diagnostics.Debug.WriteLine(output);
            }
        }
示例#2
0
 public string RunReport(WirelessReport report)
 {
     try
     {
         ReportDelegate d = (ReportDelegate)Delegate.CreateDelegate(typeof(ReportDelegate), report.ReportMethod);
         return(d(this));
     }
     catch (Exception ex)
     {
         throw;
     }
 }