Пример #1
0
 public static void NavigationFormCollectionActivated(object sender, CollectionActivatedEventArgs e)
 {
     if (e.NavigatorCollection?.Id is int id)
     {
         if (Globals.Forms.DockPanel.Documents.FirstOrDefault(x => (x as CollectionViewForm).Collection.Id == id) is CollectionViewForm document)
         {
             document.Activate();
         }
         else
         {
             CardManager.LoadCollection(e.NavigatorCollection.CardCollection);
         }
     }
 }
 private void OnCollectionActivated(CollectionActivatedEventArgs args)
 {
     CollectionActivated?.Invoke(this, args);
 }