Exemplo n.º 1
0
    //

    //Event functions
    public void DispatchEvent <T>(Shell.Event eventId, string key, T data)
    {
        EventParam param = new EventParam();

        param.EventID = (int)eventId;
        param.Add <string>("tag", key);
        param.Add <T>(key, data);
        EventManager.Instance.RaiseEvent(eventId, param);
    }