private void Button_Click_1(object sender, RoutedEventArgs e) { frm_Login ba = new frm_Login(); this.Close(); ba.Show(); }
private void worker_KillWorker() { Application.Current.Dispatcher.Invoke((Action) delegate { //replace this login page with the finished login page frm_Login frm = new frm_Login(); frm.Show(); this.Close(); }); }