I need a Method to restart my Program. I try to make a loop but in the partial class no Loop is allowed. How can i make a Method with a Loop that includes the Button?
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
public void button_Click(object sender, RoutedEventArgs e)
{
I am open for every comment and help. Thanks Morwoi.