public void UnregisterEvent(int msg, WndMsgCommEventHandler action)
 {
     if (DelegatesDict.ContainsKey(msg))
     {
         DelegatesDict[msg] -= action;
     }
 }
 public void UnregisterEvent(string msg, WndMsgCommEventHandler action) => UnregisterEvent(GetMsgId(msg), action);