Beispiel #1
0
 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));
 }
Beispiel #2
0
        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
 }
Beispiel #4
0
 public object Clone()
 {
     EventMapping mapping = new EventMapping
     {
         EventType = EventType,
         ScriptName = ScriptName,
         MethodName = MethodName,
         Enabled = Enabled,
         Phase = Phase
     };
     return mapping;
 }
Beispiel #5
0
 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);
 }