private void GoToSettings(object sender, RoutedEventArgs e) { //this.IsEnabled = false; Window w = new wnSettings(ActiveUser.UserType); w.Owner = this; w.ShowDialog(); }