Esempio n. 1
0
 void _container_Recover(object sender, RecoverEventArgs e)
 {
     if (!this.IsInitialized)
     {
         if (null == base.RequestInitialization)
         {
             e.Cancel = true;
             return;
         }
         base.RequestInitialization(this);
     }
 }
Esempio n. 2
0
        protected virtual void OnRecover()
        {
            RecoverEventArgs rea = new RecoverEventArgs();
            if (null != this.Recover)
                Recover(this, rea);

            if (rea.Cancel)
                return;

            this._paginater.IsFrozen = (this.Operation != OperationType.Viewing);

            this.OnBindControls();
            this.OnExtract();
            this.IsRecovered = true;
        }