private void btn_alterAddr_Click(object sender, EventArgs e) { if (dgv_addrInfo.SelectedRows.Count > 0) { if (list_addrInfo.Exists(q => q.addrModel.guid.ToString() == dgv_addrInfo.SelectedRows[0].Cells[GVARS.addrKey].Value.ToString())) { addAddr loc_addF = new adsClicke.addAddr(list_addrInfo.First(q => q.addrModel.guid.ToString() == dgv_addrInfo.SelectedRows[0].Cells[GVARS.addrKey].Value.ToString())); loc_addF.ShowDialog(this); } else { MessageBox.Show("Not find this addrss Info.", "Notice"); } } }
private void btn_addAddr_Click(object sender, EventArgs e) { addAddr loc_addF = new adsClicke.addAddr(); loc_addF.ShowDialog(this); }