Пример #1
0
        protected internal void FireLoadRequested(LoadRequestedEventArgs e)
        {
            EventHandler <LoadRequestedEventArgs> tmp = LoadRequested;

            if (tmp != null)
            {
                tmp(this, e);
            }
        }
Пример #2
0
        // --- load, save ---
        public bool Load()
        {
            LoadRequestedEventArgs e = new LoadRequestedEventArgs();

            FireLoadRequested(e);
            if (!e.Canceled)
            {
                IsBufferDirty = false;
            }
            return(!e.Canceled);
        }