private void EndRT_Click(object sender, RoutedEventArgs e) { Shubharealtime.datadownload s = new datadownload(); s.stopdata(); this.Close(); Shubharealtime.Window1 w = new Window1(); w.Close(); string filepath = System.Reflection.Assembly.GetExecutingAssembly().Location.ToString(); System.Diagnostics.Process.Start(filepath); Application.Current.Shutdown(); }
private void Window_Loaded(object sender, RoutedEventArgs e) { Shubharealtime.datadownload s = new datadownload(); Task.Factory.StartNew(s.serverintitilization); }