Example #1
0
        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();
        }
Example #2
0
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     Shubharealtime.datadownload s = new datadownload();
     Task.Factory.StartNew(s.serverintitilization);
 }