void addUser() { FormUsersEdit FUserEdit = new FormUsersEdit(); FUserEdit.MdiParent = DataForms.FClient; FUserEdit.ID = null; FUserEdit.Show(); }
void editUser() { if (listView1.SelectedIndices.Count > 0) { FormUsersEdit FUserEdit = new FormUsersEdit(); FUserEdit.MdiParent = DataForms.FClient; FUserEdit.ID = listView1.Items[listView1.SelectedIndices[0]].SubItems[3].Text.ToString(); FUserEdit.Show(); } }