Ejemplo n.º 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));
 }
Ejemplo n.º 2
0
        public object Clone()
        {
            EventMapping mapping = new EventMapping
            {
                EventType  = EventType,
                ScriptName = ScriptName,
                MethodName = MethodName,
                Enabled    = Enabled,
                Phase      = Phase
            };

            return(mapping);
        }
Ejemplo n.º 3
0
 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
 }
Ejemplo n.º 4
0
 public object Clone()
 {
     EventMapping mapping = new EventMapping
     {
         EventType = EventType,
         ScriptName = ScriptName,
         MethodName = MethodName,
         Enabled = Enabled,
         Phase = Phase
     };
     return mapping;
 }
Ejemplo n.º 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);
 }