private void Button_Click(object sender, RoutedEventArgs e) { Window win = new tasks(); win.Show(); }