public Win_incorrect1() { InitializeComponent(); var timer6 = new DispatcherTimer { Interval = TimeSpan.FromSeconds(1.2) }; timer6.Start(); timer6.Tick += (sender, args) => { timer6.Stop(); Window2 window2 = new Window2(); window2.Show(); this.Close(); }; }