public DataWindow()
 {
     stockInformation = new Dictionary<string, Dictionary<DataMiner.Util.TimeType, StockInfo>>();
     currentTime = Util.Domain.ONE_YEAR;
     strikePrice = NOTSET;
     optionPrice = NOTSET;
     daysToExperation = NOTSET;
     hasEvents = new List<UIElement>();
     InitializeComponent();
 }
 private void TimePeriodClick(object sender, RoutedEventArgs e)
 {
     TabItem clicked = sender as TabItem;
     Util.TimeType time = Util.Domain.getTime(clicked);
     if (currentTime != time)
     {
         currentTime = time;
         updateTab(this.StockSymbolTabs.SelectedItem as TabItem, currentTime);
     }
 }