public MainWindow() { InitializeComponent(); HistoryVolCalculator volCal = new HistoryVolCalculator(); txtBox_.DataContext = volCal; volCal.historyCalVol(); }