Exemple #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);
 }
Exemple #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);
        }