private void bt_회원등록_Click(object sender, EventArgs e) { // 회원등록 창 뛰우기 var form = new Form회원등록(); if(form.ShowDialog() == DialogResult.OK) { // 회원을 등록한다. var member = new Member { Name = form.MemberName, KakaoName = form.KaKaoName, Enable = Enable.Enable, }; RegistMember(member); } }
private void RegistMember(Member member) { List<Member> members = new List<Member>(); members.Add(member); dbMgr.Save<Member>(members); }