Example #1
0
    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));
    }
Example #2
0
 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;
     }
 }
Example #3
0
 public UIMessage(UIMsgType Msgtype, List <object> Content = null)
 {
     type    = Msgtype;
     content = Content;
 }
Example #4
0
 public virtual bool OnMessage(UIMsgType type, params object[] param)
 {
     return(true);
 }