Stetic.WidgetEditSession.SaveState C# (CSharp) Méthode

SaveState() public méthode

public SaveState ( ) : object
Résultat object
        public object SaveState()
        {
            return null;
        }

Usage Example

Exemple #1
0
        void OnProjectBackendChanged(ApplicationBackend oldBackend)
        {
            if (++reloadCount == 2)
            {
                object sessionData = null;

                if (oldBackend != null && !autoCommitChanges)
                {
                    sessionData = session.SaveState();
                    session.DestroyWrapperWidgetPlug();
                }

                // Don't dispose the session here, since it will dispose
                // the underlying project, and we can't do it because
                // it may need to process the OnBackendChanging event
                // as well.

                CreateSession();

                if (sessionData != null && session != null)
                {
                    session.RestoreState(sessionData);
                }

                base.OnBackendChanged(oldBackend);
                NotifyRootWidgetChanged();
            }
        }
All Usage Examples Of Stetic.WidgetEditSession::SaveState