Ejemplo n.º 1
0
 internal static void RemoveObject (IDrawable obj)
 {
     var client = CallContext.Client;
     if (!objects.ContainsKey (client) || !objects [client].Contains (obj))
         throw new ArgumentException ("Drawing object not found");
     obj.Destroy ();
     objects [client].Remove (obj);
 }
Ejemplo n.º 2
0
        internal static void RemoveObject(IDrawable obj)
        {
            var client = CallContext.Client;

            if (!objects.ContainsKey(client) || !objects [client].Contains(obj))
            {
                throw new ArgumentException("Drawing object not found");
            }
            obj.Destroy();
            objects [client].Remove(obj);
        }