Esempio n. 1
0
 public bool Equals(InitialEvent e)
 {
     if ( (this.sender == e.sender) && (this.source == e.source) &&
          (this.name == e.name)     && (this.raw == e.raw) ) {
         return true;
     } else {
         return false;
     }
 }
Esempio n. 2
0
        public AssignActionDialog(Gtk.Window wnd_main, InitialEvent initial_event)
        {
            Glade.XML ui = Glade.XML.FromAssembly ("initial.glade", "dlg_assign_action", "initial");
            ui.Autoconnect (this);

            dlg_assign_action.TransientFor = wnd_main;
            dlg_assign_action.WindowPosition = Gtk.WindowPosition.CenterOnParent;
        }
Esempio n. 3
0
        static void OnInputEvent(string sender, string source, string name, int raw)
        {
            InitialEvent e = new InitialEvent (sender, source, name, raw);

            foreach (EventAction ea in Initial.Config.EventActions) {
                if (ea.initial_event.Equals (e))
                    ea.initial_action.Trigger ();
            }
        }
Esempio n. 4
0
 public EventAction()
 {
     this.initial_action = null;
     this.initial_event  = null;
 }
Esempio n. 5
0
 public EventAction(InitialEvent e, InitialAction a)
 {
     this.initial_action = a;
     this.initial_event  = e;
 }
Esempio n. 6
0
 public EventAction(InitialAction a)
 {
     this.initial_action = a;
     this.initial_event  = null;
 }
Esempio n. 7
0
 public EventAction(InitialEvent e)
 {
     this.initial_action = null;
     this.initial_event  = e;
 }