protected override void OnOpen(object userData) { base.OnOpen(userData); m_ProcedureMenu = (ProcedureMenu)userData; if (m_ProcedureMenu == null) { Log.Warning("ProcedureMenu is invalid when open MenuForm."); return; } }
protected override void OnClose(bool isShutdown, object userData) { m_ProcedureMenu = null; base.OnClose(isShutdown, userData); }