Inheritance: IPersistentApplicationStateObject
        private void OnApplicationStateRequested(ApplicationStateRequestedMessage message)
        {
            var shellPersistentStateV1 = new ShellPersistentState
            {
                Size    = WindowSize,
                TopLeft = WindowTopLeft
            };

            message.PersistThisModel(shellPersistentStateV1);

            var dataFileState = this.persistenceOperations.PreparePersistentStateData();

            message.PersistThisModel(dataFileState);
        }
Example #2
0
        private void OnApplicationStateRequested(ApplicationStateRequestedMessage message)
        {
            var shellPersistentStateV1 = new ShellPersistentState
            {
                Size = WindowSize,
                TopLeft = WindowTopLeft
            };
            message.PersistThisModel(shellPersistentStateV1);

            var dataFileState = this.persistenceOperations.PreparePersistentStateData();
            message.PersistThisModel(dataFileState);
        }