private void Button_Click(object sender, RoutedEventArgs e) { LoadMessageBox a = new LoadMessageBox(); a.Show(); marketData = new Data(); marketData.Initialize(); FillDataGrid(); textBox1.Text = "Latest Pull: " + DateTime.Now.ToString(new CultureInfo("en-us")); a.Close(); }
public MainWindow() { LoadMessageBox LMB = new LoadMessageBox(); LMB.Show(); InitializeComponent(); marketData = new Data(); marketData.Initialize(); FillDataGrid(); textBox1.Text = "Latest Pull: " + DateTime.Now.ToString(new CultureInfo("en-us")); LMB.Close(); }