private void dataGridView1_DoubleClick(object sender, EventArgs e)
 {
     var f = new FrmAdd();
     f.MemberId = _members.Rows[dataGridView1.SelectedRows[0].Index]["MemberId"].ToString();
     f.OpState = OpStateEnum.Edit;
     f.ShowDialog();
 }
 private void btnAdd_Click(object sender, EventArgs e)
 {
     var f=new FrmAdd();
     f.OpState= OpStateEnum.Add;
     f.Show(this);
 }