void GoReport_Click(object sender, RoutedEventArgs e) { MainCanvas.Children.Remove(reportControl); reportControl = null; doSelectionFutureReflection(); }
void doTimelineReflection() { reportControl = new ReportControl(); MainCanvas.Children.Add(reportControl); reportControl.doInit(); Canvas.SetLeft(reportControl, 20); Canvas.SetTop(reportControl, 20); reportControl.GoMainMenu.Click += GoReport_Click; }