public bool Equals(EventMapping other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Equals(other.EventType, EventType) && Equals(other.Phase, Phase) && Equals(other.ScriptName, ScriptName) && Equals(other.MethodName, MethodName) && other.Enabled.Equals(Enabled)); }
public object Clone() { EventMapping mapping = new EventMapping { EventType = EventType, ScriptName = ScriptName, MethodName = MethodName, Enabled = Enabled, Phase = Phase }; return(mapping); }
private static void CreateMapping(AddEventHandlerPersistedData persistedData, ComponentAdapter adapter) { EventMapping mapping = new EventMapping { EventType = persistedData.EventName, ScriptName = persistedData.ClassName, MethodName = persistedData.MethodName, Phase = (EventPhase) persistedData.EventPhases }; adapter.EventMap.Add(mapping); //EventDisplay.Instance.Refresh(); // TODO: Crashes the app }
public object Clone() { EventMapping mapping = new EventMapping { EventType = EventType, ScriptName = ScriptName, MethodName = MethodName, Enabled = Enabled, Phase = Phase }; return mapping; }
public bool Equals(EventMapping other) { if (ReferenceEquals(null, other)) return false; if (ReferenceEquals(this, other)) return true; return Equals(other.EventType, EventType) && Equals(other.Phase, Phase) && Equals(other.ScriptName, ScriptName) && Equals(other.MethodName, MethodName) && other.Enabled.Equals(Enabled); }