public FrmGraduationPlanConfiguration()
        {
            InitializeComponent();

            _BKWChecker                            = new BackgroundWorker();
            _BKWChecker.DoWork                    += new DoWorkEventHandler(_BKWChecker_DoWork);
            _BKWChecker.ProgressChanged           += new ProgressChangedEventHandler(_BKWChecker_ProgressChanged);
            _BKWChecker.RunWorkerCompleted        += new RunWorkerCompletedEventHandler(_BKWChecker_RunWorkerCompleted);
            _BKWChecker.WorkerSupportsCancellation = true;
            _BKWChecker.WorkerReportsProgress      = true;

            _GraduationPlanEditor = graduationPlanEditor1;
            _GraduationPlanEditor.IsDirtyChanged        += new EventHandler(_GraduationPlanEditor_IsDirtyChanged);
            _BKWGraduationPlanLoader                     = new BackgroundWorker();
            _BKWGraduationPlanLoader.RunWorkerCompleted += new RunWorkerCompletedEventHandler(_BKWGraduationPlanLoader_RunWorkerCompleted);
            _BKWGraduationPlanLoader.DoWork             += new DoWorkEventHandler(_BKWGraduationPlanLoader_DoWork);

            // itemPanel1_SizeChanged(null, null);

            EventHub.Instance.GraduationPlanDeleted  += new EventHandler <DeleteGraduationPlanEventArgs>(Instance_GraduationPlanDeleted);
            EventHub.Instance.GraduationPlanInserted += new EventHandler(Instance_GraduationPlanInserted);
            EventHub.Instance.GraduationPlanUpdated  += new EventHandler <UpdateGraduationPlanEventArgs>(Instance_GraduationPlanUpdated);

            _AdvTreeExpandStatus.Clear();

            this.imageList1.Images.Clear();
            this.imageList1.Images.Add("0", Properties.Resources.classroom_64);
            this.imageList1.Images.Add("1", Properties.Resources.elementary_school_64);
        }
        public CommonPlanConfiguration()
        {
            InitializeComponent();

            _CommonPlanEditor = commonPlanEditor1;
            _CommonPlanEditor.IsDirtyChanged        += new EventHandler(_CommonPlanEditor_IsDirtyChanged);
            _BKWCommonPlanLoader                     = new BackgroundWorker();
            _BKWCommonPlanLoader.RunWorkerCompleted += new RunWorkerCompletedEventHandler(_BKWCommonPlanLoader_RunWorkerCompleted);
            _BKWCommonPlanLoader.DoWork             += new DoWorkEventHandler(_BKWCommonPlanLoader_DoWork);
        }
        protected override void OnActive()
        {
            _BKWChecker                            = new BackgroundWorker();
            _BKWChecker.DoWork                    += new DoWorkEventHandler(_BKWChecker_DoWork);
            _BKWChecker.ProgressChanged           += new ProgressChangedEventHandler(_BKWChecker_ProgressChanged);
            _BKWChecker.RunWorkerCompleted        += new RunWorkerCompletedEventHandler(_BKWChecker_RunWorkerCompleted);
            _BKWChecker.WorkerSupportsCancellation = true;
            _BKWChecker.WorkerReportsProgress      = true;

            _GraduationPlanEditor = graduationPlanEditor1;
            _GraduationPlanEditor.IsDirtyChanged        += new EventHandler(_GraduationPlanEditor_IsDirtyChanged);
            _BKWGraduationPlanLoader                     = new BackgroundWorker();
            _BKWGraduationPlanLoader.RunWorkerCompleted += new RunWorkerCompletedEventHandler(_BKWGraduationPlanLoader_RunWorkerCompleted);
            _BKWGraduationPlanLoader.DoWork             += new DoWorkEventHandler(_BKWGraduationPlanLoader_DoWork);

            LoadGraduationPlan(false);
            itemPanel1_SizeChanged(null, null);

            EventHub.Instance.GraduationPlanDeleted  += new EventHandler <DeleteGraduationPlanEventArgs>(Instance_GraduationPlanDeleted);
            EventHub.Instance.GraduationPlanInserted += new EventHandler(Instance_GraduationPlanInserted);
            EventHub.Instance.GraduationPlanUpdated  += new EventHandler <UpdateGraduationPlanEventArgs>(Instance_GraduationPlanUpdated);
        }