private void btnAdd_Click(object sender, EventArgs e) { FormAddUpdate formaddupdate = new FormAddUpdate(); formaddupdate.ShowDialog(); employee yeni = formaddupdate.Staff; formaddupdate.Dispose(); string[] isciozellik = new string[5]; if (yeni != null) { isciozellik[0] = yeni._id.ToString(); isciozellik[1] = yeni._isim; isciozellik[2] = yeni._soyisim; isciozellik[3] = yeni._maas.ToString(); isciozellik[4] = yeni.Bmoo.ToString(); ListViewItem isci = new ListViewItem(isciozellik); lstviewİsci.Items.Add(isci); employees.Add(yeni); } }