public bool SendMessage(string name, UIMsgType type, params object[] param) { Window window = FindWindowByName <Window>(name); if (window == null) { return(false); } return(window.OnMessage(type, param)); }
private void SendMessage(UIMsgType type) { switch (type) { case UIMsgType.UpdateManuSlot: UIManager.Instance.SendMessageToWnd(UIPath.WindowPath.BlockManu_Page, new UIMessage(UIMsgType.UpdateManuSlot, new List <object>(1) { formulaInfo })); break; } }
public UIMessage(UIMsgType Msgtype, List <object> Content = null) { type = Msgtype; content = Content; }
public virtual bool OnMessage(UIMsgType type, params object[] param) { return(true); }