예제 #1
0
        void downloadWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            if (fgSVM != null)
            {
                fgSVM.Close();
            }

            if (e.Error != null)
            {
                MessageBox.Show(fgSVM, "Error while downloading file", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else
            {
                var name = "ReviewML" + reviewResultsCurrentProcess;

                int viewIndex = viewsManager.GetViewIndex(name);
                if (viewIndex < 0)
                {
                    //Open the new VIEW if it doesnt exist
                    viewsManager.AddViewType(name, typeof(ViewReviewMLOld), false, false, false);
                    viewsManager.CreateView(name, true, true);
                }
                else
                {
                    viewsManager.ActivateView(viewIndex);
                }
            }
        }