BudgetAnalyser.ShellController.SaveApplicationState C# (CSharp) Method

SaveApplicationState() public method

This method will persist the application state. Application State is user preference settings for the application, window, and last loaded file. Any data that is used for Budgets, reconciliation, reporting belongs in the Application Database.
public SaveApplicationState ( ) : void
return void
        public void SaveApplicationState()
        {
            var gatherDataMessage = new ApplicationStateRequestedMessage();
            MessengerInstance.Send(gatherDataMessage);
            this.statePersistence.Persist(gatherDataMessage.PersistentData);
        }