private void btnJoin_Click(object sender, RoutedEventArgs e) { MemberManager memberManager = new MemberManager(); LoginData loginData = new LoginData(); if (txtPhone.Text.Trim().Length < 10 || txtPassword.Text.Trim().Equals("") || txtName.Text.Trim().Equals("") || tbWage.Text.Trim().Equals("")) { return; } loginData.Phone = txtPhone.Text.Trim(); loginData.Password = txtPassword.Text.Trim(); loginData.Name = txtName.Text.Trim(); loginData.Wage = tbWage.Text.Trim(); loginData.Authority = cbAuthority.SelectedIndex + 1; loginData.Task = cbTask.SelectedIndex; if (loginData.Phone.Equals(memberManager.Select(loginData).Phone)) { MyMessageBox.createMessageBox(1, "핸드폰번호가 중복됩니다.", ""); return; } memberManager.Insert(loginData); memberManager.Create(loginData); txtName.Clear(); txtPassword.Clear(); txtPhone.Clear(); tbWage.Clear(); TransitionPage.wageManagement.InitNameComboBox(); initCBSecession(); MessageBox.Show("가입이 완료되었습니다."); }