I\'m using the following code for to open a window in a separate thread
public partial class App : Application
{
protected override void OnStartup(Startu
@d.moncada, @JPVenson, @TomTom sorry for everyone, espetially to @d.moncada, your answer made me realize my true error, indeed if run once until my code works. But my really problem is that i try to push button1_Click in two ocation, really i take a timer that called a method with the line of the
private void button1_Click(object sender, RoutedEventArgs e)
Now the solution of my problem is Detecting a Thread is already running in C# .net?