private void AddInKindItem(object sender, RoutedEventArgs e) { if (Application.Current.Windows.Count <= 2) { AddInKindItem iki = new AddInKindItem(true, EventID); iki.ShowDialog(); iki.Organization.IsEnabled = false; } }