public bool Remove(Method item) { lock (syncRoot) { bool b = overloads.Remove(item); RuntimeCore.RemoveAssemblyObject(item); syntax = null; return(b); } }
public void Clear() { lock (syncRoot) { foreach (Method m in overloads) { RuntimeCore.RemoveAssemblyObject(m); } overloads.Clear(); syntax = null; } }
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(); } }
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; } } }
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; } } } } }
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(); } }
internal void RemoveCategory(CategoryData data) { categoryControl.RemoveCategory(data); RuntimeCore.RemoveAssemblyObject(data); }
public void RemoveHandler(THandler handler) { handlers = Delegate.Remove(handlers, (Delegate)(object)handler); RuntimeCore.RemoveAssemblyObject(new EventObject(handler)); }