Exemplo n.º 1
0
        private void btnRegi_Click(object sender, EventArgs e)
        {
            Register       a        = new Register();
            PeopleListForm fromList = new PeopleListForm();

            if (textName.Text != string.Empty & textId.Text != string.Empty & textPw.Text != string.Empty)
            {
                a.Name  = textName.Text.Trim();
                a.Phone = textPhone.Text.Trim();


                a.Birth  = $"{dateBirth.Value.Year} 년 {dateBirth.Value.Month}월 {dateBirth.Value.Day}일";
                a.ID     = textId.Text.Trim();
                a.Gender = rbtnFemale.Checked ? "female" : "male";

                fromList.Passvalue = a;
                MessageBox.Show("등록되었습니다.");
                this.Close();
                fromList.ShowDialog();
            }
            else
            {
                MessageBox.Show("모든 항목을 입력해 주세요.");
            }
        }
Exemplo n.º 2
0
 private void 회원목록ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Example.PeopleListForm plForm = new Example.PeopleListForm();
     plForm.Show();
 }