//private void listVProjects_SelectedIndexChanged(object sender, EventArgs e) //{ //} private void tBtnAddProj_Click(object sender, EventArgs e) { FrmManageAG addprojForm = new FrmManageAG(null); addprojForm.ShowDialog(); ReloadAGs(); }
private void listVAGs_DoubleClick(object sender, EventArgs e) { if (listVAGs.SelectedItems.Count > 0) { var a = listVAGs.SelectedItems[0]; HA_ArgGroup ha_ag = new HA_ArgGroup { ag_code = a.SubItems[0].Text, ag_name = a.SubItems[1].Text, ag_paras = a.SubItems[2].Text, ag_note = a.SubItems[3].Text }; FrmManageAG agForm = new FrmManageAG(ha_ag); agForm.ShowDialog(); ReloadAGs(); } }