示例#1
0
文件: Tools.cs 项目: Times-0/Times
        public static void AddEventHandler(this object @obj, string tohadle, string handler)
        {
            Delegate dlg = Events.EventDelegate.create(@obj, handler);

            net.Airtower @o = net.Airtower.getCurrentAirtower();
            @o.addEventListener(tohadle, dlg, null);
        }
示例#2
0
文件: Tools.cs 项目: Times-0/Times
        public static void AddXTHandler(this object @obj, string handle, string handle1, string @handler)
        {
            Delegate dlg = Events.EventDelegate.create(@obj, @handler);

            net.Airtower @o = net.Airtower.getCurrentAirtower();
            @o.addEventListener(String.Format("#xt{0}-{1}/", handle, handle1), dlg, null);
        }