コード例 #1
0
 ScratchPageBase GetPhantomImpl()
 {
     if (_realImpl != null)
     {
         return(_realImpl);
     }
     if (_phantomImpl == null)
     {
         _phantomImpl = new PhantomScratchPage(this);
     }
     return(_phantomImpl);
 }
コード例 #2
0
 internal RealScratchPage GetRealImpl()
 {
     if (_realImpl == null)
     {
         _realImpl    = LoadRealImpl();
         _phantomImpl = null;
     }
     else if (UnderlyingChanged())
     {
         RealScratchPage result = LoadRealImpl();
         if (result.Text != _realImpl.Text)
         {
             result.Text = _realImpl.Text;
         }
         _realImpl = result;
     }
     return(_realImpl);
 }