private void CycleAnalyzer_Click(object sender, RoutedEventArgs e)
        {
            CycleAnalyzerDialog analyzer = new CycleAnalyzerDialog(Character);

#if SILVERLIGHT
            analyzer.Show();
#else
            ((Window)analyzer).Show();
#endif
        }
        private void CycleAnalyzer_Click(object sender, RoutedEventArgs e)
        {
            CycleAnalyzerDialog analyzer = new CycleAnalyzerDialog(Character);
#if SILVERLIGHT
            analyzer.Show();
#else
            ((Window)analyzer).Show();
#endif
        }