void ProcessRecommendCancel() { body_CG_RECOMMEND recommend = new body_CG_RECOMMEND( false, ""); byte[] data = recommend.ClassToPacketBytes(); AsNetworkMessageHandler.Instance.Send( data); goParent.BroadcastMessage( "CloseRecommendDlg", SendMessageOptions.DontRequireReceiver); }
void ProcessRecommend() { string name = m_NameEdit.Text; body_CG_RECOMMEND recommend = new body_CG_RECOMMEND( true, name); byte[] data = recommend.ClassToPacketBytes(); AsNetworkMessageHandler.Instance.Send( data); goParent.BroadcastMessage( "CloseRecommendDlg", SendMessageOptions.DontRequireReceiver); }