using System; using System.ComponentModel; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Collections.Specialized; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Threading; using System.Windows.Input; using System.Windows.Forms; using System.Xml.Serialization; using System.Windows.Media; using MarketData; using MarketData.Utils; using MarketData.MarketDataModel; using MarketData.Generator; using MarketData.DataAccess; using MarketData.Helper; using MarketData.Numerical; using TradeBlotter.DataAccess; using TradeBlotter.Command; using TradeBlotter.Model; using TradeBlotter.Cache; using Microsoft.Research.DynamicDataDisplay.DataSources; using System.IO; namespace TradeBlotter.ViewModels { public class OptionsViewModel : WorkspaceViewModel { private enum Tasks{SelectedSymbol,SelectedItem,CheckBoxFullHistory,CheckBoxCallPutRatio,SelectedExpirationDate,SelectedOptionType,SelectedWatchList,SelectedRiskFreeRateType,SelectedVolatilityDays}; private Dictionary semaphorePool=new Dictionary(); private RelayCommand launchOptionsWorksheetCommand = null; private BollingerBands bollingerBands; private Prices prices; private String symbol; private double volatility; private List symbols; private List watchLists; private String selectedWatchList; private RelayCommand updateCommand; private List optionTypes; private String selectedOptionType; private ObservableCollection