예제 #1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            if (LoadUnusedSummaries)
            {
                Thread thread = new Thread(() =>
                {
                    us = new UnusedSummaries(InternalSummaries, ExternalSummaries);
                    us.Show();

                    us.Closed += (sender2, e2) =>
                                 us.Dispatcher.InvokeShutdown();

                    System.Windows.Threading.Dispatcher.Run();
                });
                thread.SetApartmentState(ApartmentState.STA);
                thread.Start();

                //piggybacking LoadUnusedSummaries trigger
                WriteComments(CommentsExt, ReportAreasExt);
                WriteComments(CommentsInternal, ReportAreasInt);
                WriteComments(CommentsGeneral, ReportAreasGen);
                AddInternalAndExternalToGeneral();
            }
        }
예제 #2
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            if(LoadUnusedSummaries){
                Thread thread = new Thread(() =>
                {
                    us = new UnusedSummaries(InternalSummaries, ExternalSummaries);
                    us.Show();

                    us.Closed += (sender2, e2) =>
                        us.Dispatcher.InvokeShutdown();

                    System.Windows.Threading.Dispatcher.Run();

                });
                thread.SetApartmentState(ApartmentState.STA);
                thread.Start();

                //piggybacking LoadUnusedSummaries trigger
                WriteComments(CommentsExt, ReportAreasExt);
                WriteComments(CommentsInternal, ReportAreasInt);
                WriteComments(CommentsGeneral, ReportAreasGen);
                AddInternalAndExternalToGeneral();
            }
        }