Beispiel #1
0
 void Root_ResourceRemoved(object sender, SNAP.Util.ChildEventArgs <Resource> args)
 {
     System.Diagnostics.Debug.Assert(args.Child.MyParent != null);
     RemoveResource(args.Child);
 }
Beispiel #2
0
 /// <summary>
 /// Handles the ResourceAdded event of the Root control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="args">The <see cref="T:SNAP.Resources.CompositeResourceEventArgs"/> instance containing the event data.</param>
 void Root_ResourceAdded(object sender, SNAP.Util.ChildEventArgs <Resource> args)
 {
     _resourceList.Add(args.Child.QualifiedName, args.Child);
     SaveResources();
 }