BudgetAnalyser.Engine.Services.TransactionManagerService.Close C# (CSharp) Method

Close() public method

Closes the currently loaded file. No warnings will be raised if there is unsaved data.
public Close ( ) : void
return void
        public void Close()
        {
            this.transactions = new ObservableCollection<Transaction>();
            StatementModel?.Dispose();
            StatementModel = null;
            this.budgetCollection = null;
            this.budgetHash = 0;
            var handler = Closed;
            handler?.Invoke(this, EventArgs.Empty);
        }