public Visio.Event DisableEvent(Visio.EventList ovEventList, DrawingEvents iEvent, bool bRemove) { Visio.Event ovEvent = null; string sKey = iEvent.ToString(); if (m_ovEvents.ContainsKey(sKey) == true) { ovEvent = m_ovEvents[sKey] as Visio.Event; if (bRemove) { m_ovEvents.Remove(sKey); } try { ovEvent.Enabled = (short)visTF.FALSE; } catch { } } return(ovEvent); }
public Visio.Event EnableEvent(Visio.EventList ovEventList, DrawingEvents iEvent) { Visio.Event ovEvent = null; string sKey = iEvent.ToString(); if (m_ovEvents.ContainsKey(sKey) == true) { ovEvent = m_ovEvents[sKey] as Visio.Event; } else { ovEvent = CreateEvent(ovEventList, iEvent); if (ovEvent == null) { return(null); } m_ovEvents.Add(sKey, ovEvent); } ovEvent.Enabled = (short)visTF.TRUE; return(ovEvent); }