//消息弹窗 public void popMsg(string msg, int msec = 1500) { popMsg obj = new popMsg(); GridMain.Children.Add(obj); obj.show(msg, msec); }