Example #1
0
 public override void Deactivate()
 {
     SaveRecord();
     base.Deactivate();
     if (_missingInfoControl != null)
     {
         _missingInfoControl.TimeToSaveRecord -= OnSaveRecord;
         _missingInfoControl.Dispose();
     }
     _missingInfoControl = null;
 }
Example #2
0
        public override void Activate()
        {
            base.Activate();

            _missingInfoControl = new MissingInfoControl(GetFilteredData(),
                                                         ViewTemplate,
                                                         GetQuery().FilteringPredicate,
                                                         LexEntryRepository,
                                                         _taskMemory.CreateNewSection("view"));
            _missingInfoControl.TimeToSaveRecord += OnSaveRecord;
        }