Example #1
0
 protected virtual void RequestLoad(DesignBuffer buffer)
 {
     if (OnRequestLoad != null)
     {
         OnRequestLoad(this, buffer);
     }
 }
Example #2
0
        // I/O

        public void Open(DesignBuffer buffer)
        {
            ValidateBuffer(buffer);
            CheckModified();
            RequestLoad(buffer);
            SetBuffer(buffer);
            SetModified(false);
            if (buffer.Locator != null)
            {
                RequestLocate(buffer.Locator);
            }
        }
Example #3
0
        protected virtual void RequestSave(DesignBuffer buffer)
        {
            foreach (IDesignService dependant in _dependants)
            {
                dependant.Save();
            }

            if (OnRequestSave != null)
            {
                OnRequestSave(this, buffer);
            }
        }
Example #4
0
 public void SetBuffer(DesignBuffer buffer)
 {
     if (buffer != _buffer)
     {
         if (_buffer != null)
         {
             UnregisterDesigner(_buffer);
         }
         _buffer = buffer;
         if (_buffer != null)
         {
             RegisterDesigner(_buffer);
         }
         NameChanged();
     }
 }
Example #5
0
 private void Save(DesignBuffer buffer)
 {
     RequestSave(buffer);
     SetBuffer(buffer);
     SetModified(false);
 }
Example #6
0
 public void ValidateBuffer(DesignBuffer buffer)
 {
     Dataphoria.CheckNotRegistered(buffer);
 }
Example #7
0
 public void UnregisterDesigner(DesignBuffer buffer)
 {
     Dataphoria.UnregisterDesigner(buffer);
 }
Example #8
0
 public void RegisterDesigner(DesignBuffer buffer)
 {
     Dataphoria.RegisterDesigner(buffer, _designer);
 }