public void ShowConfirmMessage(MessageWndType type, string content, string title = "", OKHandler okHandle = null, CancleHandler cancleHandle = null) { WindowFactory.instance.CreateWindow(WindowType.MessageWindow, delegate(object[] param) { EventManager.instance.NotifyUIEvent(UIEventType.TypeOpenMessageWin, type, title, content, okHandle, cancleHandle); }); }
public override void RegistEvents() { base.RegistEvents(); RegistEvent(UIEventType.TypeOpenMessageWin, delegate(object[] param) { type = (MessageWndType)param[0]; Logger.DebugFormat("type:{0}", type); m_title.text = (string)param[1]; m_context.text = (string)param[2]; okHandle = (OKHandler)param[3]; cancleHandle = (CancleHandler)param[4]; }); }