예제 #1
0
 public bool Remove(Method item)
 {
     lock (syncRoot)
     {
         bool b = overloads.Remove(item);
         RuntimeCore.RemoveAssemblyObject(item);
         syntax = null;
         return(b);
     }
 }
예제 #2
0
        public void Clear()
        {
            lock (syncRoot)
            {
                foreach (Method m in overloads)
                {
                    RuntimeCore.RemoveAssemblyObject(m);
                }

                overloads.Clear();
                syntax = null;
            }
        }
예제 #3
0
        void IAssemblyObjectList.Remove(IAssemblyObject obj)
        {
            TabPageInfo info = obj as TabPageInfo;

            if (info != null)
            {
                info.IndexChanged -= tabInfo_IndexChanged;
                tabList.Remove(info);
                RuntimeCore.RemoveAssemblyObject(info);

                Debug.WriteLine("TabPage \"" + info.TabPage.Title + "\" removed.", "Gui");

                UpdateTabs();
            }
        }
예제 #4
0
        public void RemoveTab(Crownwood.Magic.Controls.TabPage page)
        {
            foreach (TabPageInfo info in tabList)
            {
                if (info.TabPage == page)
                {
                    info.IndexChanged -= tabInfo_IndexChanged;
                    tabList.Remove(info);
                    RuntimeCore.RemoveAssemblyObject(info);

                    Debug.WriteLine("TabPage \"" + page.Title + "\" removed.", "Gui");

                    UpdateTabs();
                    return;
                }
            }
        }
예제 #5
0
        public void Remove(byte id, MessageCallback callback)
        {
            lock (syncRoot) {
                if (list[id] != null)
                {
                    foreach (CallbackObject obj in list[id])
                    {
                        if (obj.Callback == callback)
                        {
                            list[id].Remove(obj);
                            RuntimeCore.RemoveAssemblyObject(obj);

                            Debug.WriteLine(callbacksName + " callback removed (0x" + id.ToString("X2") + ")", "Phoenix");
                            return;
                        }
                    }
                }
            }
        }
예제 #6
0
        public void RemoveGroup(Control control)
        {
            Group group = null;

            foreach (Group g in groups)
            {
                if (g.Control == control)
                {
                    group = g;
                    break;
                }
            }

            if (group != null)
            {
                groupsPanel.Controls.Remove(group.GroupControl);
                groups.Remove(group);
                RuntimeCore.RemoveAssemblyObject(group);

                SortGroups();
            }
        }
예제 #7
0
 internal void RemoveCategory(CategoryData data)
 {
     categoryControl.RemoveCategory(data);
     RuntimeCore.RemoveAssemblyObject(data);
 }
예제 #8
0
 public void RemoveHandler(THandler handler)
 {
     handlers = Delegate.Remove(handlers, (Delegate)(object)handler);
     RuntimeCore.RemoveAssemblyObject(new EventObject(handler));
 }