private void bttOpen_Click(object sender, EventArgs e) { FDLog_AddEdit dae = new FDLog_AddEdit(); int currID = Convert.ToInt32(lvwItems.SelectedItems[0].Text); dae.ProjectID = currID; dae.ShowDialog(); dae.Close(); }
private void lvwProjects_DoubleClick(object sender, EventArgs e) { FDLog_AddEdit dae = new FDLog_AddEdit(); if (lvwItems.SelectedItems.Count > 0) { int currID = Convert.ToInt32(lvwItems.SelectedItems[0].Text); dae.ProjectID = currID; dae.ShowDialog(); dae.Close(); } }