private void button_Click(object sender, RoutedEventArgs e) { AddEventGCalendar df = new AddEventGCalendar(); df.Owner = this.Owner; df.Show(); this.Close(); }