Code cleanup.

This commit is contained in:
2026-02-24 12:20:56 -05:00
parent 3bbd539af4
commit 4d84c5e63c
14 changed files with 2 additions and 1977 deletions

View File

@@ -100,7 +100,6 @@ namespace TradeBlotter.ViewModels
}
try{LocalPriceCache.GetInstance().Dispose();}catch(Exception){;}
try{GBPriceCache.GetInstance().Dispose();}catch(Exception){;}
try{PriceCache.GetInstance().Dispose();}catch(Exception){;}
try{SymbolCache.GetInstance().Dispose();}catch(Exception){;}
base.OnDispose();
}
@@ -237,7 +236,6 @@ namespace TradeBlotter.ViewModels
new CommandViewModel("MGSHMomentum Model",new RelayCommand(ParamArrayAttribute=>this.ViewMGSHMomentumGenerator())),
new CommandViewModel("CMMomentum Model",new RelayCommand(ParamArrayAttribute=>this.ViewCMMomentumGenerator())),
new CommandViewModel("CMTTrend Model",new RelayCommand(ParamArrayAttribute=>this.ViewCMTTrendGenerator())),
new CommandViewModel("Options",new RelayCommand(ParamArrayAttribute=>this.ViewOptions())),
new CommandViewModel("Watch Lists",new RelayCommand(ParamArrayAttribute=>this.ViewWatchLists())),
new CommandViewModel("Feed Statistics",new RelayCommand(ParamArrayAttribute=>this.ViewFeedStatistics()))
};
@@ -432,18 +430,6 @@ namespace TradeBlotter.ViewModels
}
this.SetActiveWorkspace(workspace);
}
private void ViewOptions()
{
OptionsViewModel workspace = this.Workspaces.FirstOrDefault(vm => vm is OptionsViewModel) as OptionsViewModel;
if (null == workspace)
{
workspace = new OptionsViewModel();
workspace.WorkspaceInstantiator = InstantiateWorkspace;
AddMenuItem(workspace);
this.Workspaces.Add(workspace);
}
this.SetActiveWorkspace(workspace);
}
private void ViewEarningsAnnouncements()
{
EarningsAnnouncementViewModel workspace = this.Workspaces.FirstOrDefault(vm => vm is EarningsAnnouncementViewModel) as EarningsAnnouncementViewModel;