private void OnRecv_Login(ICD.HEADER obj) { ICD.ERRORCODE curErr = (ICD.ERRORCODE)obj.error; switch (curErr) { case ICD.ERRORCODE.NOERROR: MessageBox.Show(MSG_SUCCESS_LOGIN); { this.Visible = false; Home home = new Home(); home.ShowDialog(); } break; case ICD.ERRORCODE.NoID: MessageBox.Show(MSG_UNREGIST_ID); break; case ICD.ERRORCODE.WorngPW: MessageBox.Show(MSG_WRONG_PW); break; default: break; } }
private void OnRecv_NewUser(ICD.HEADER obj) { ICD.ERRORCODE curErr = (ICD.ERRORCODE)obj.error; switch (curErr) { case ICD.ERRORCODE.NOERROR: MessageBox.Show(MSG_SUCCESS_NEWID); break; case ICD.ERRORCODE.HaveID: MessageBox.Show(MSG_ALREADY_ID); break; default: break; } }