private void tBtnAddIntf_Click(object sender, EventArgs e) { if (listVProjects.SelectedItems.Count > 0) { var a = listVProjects.SelectedItems[0]; FrmManageIntf manageIntfFomr = new FrmManageIntf(null, a.SubItems[0].Text); manageIntfFomr.ShowDialog(); ReloadInterface(a.SubItems[0].Text); } }
private void skinLVInterfaces_DoubleClick(object sender, EventArgs e) { if (listVProjects.SelectedItems.Count > 0 && skinLVInterfaces.SelectedItems.Count > 0) { var proj = listVProjects.SelectedItems[0]; var a = skinLVInterfaces.SelectedItems[0]; HA_Interface ha_intf = new HA_Interface { proj_code = proj.SubItems[0].Text, intf_name = a.SubItems[2].Text, intf_code = a.SubItems[3].Text, intf_namespace = a.SubItems[4].Text, intf_version = a.SubItems[5].Text, intf_auth = a.SubItems[6].Text, intf_dbconn = a.SubItems[7].Text, intf_note = a.SubItems[8].Text }; FrmManageIntf manageIntfFomr = new FrmManageIntf(ha_intf, proj.SubItems[0].Text); manageIntfFomr.ShowDialog(); ReloadInterface(proj.SubItems[0].Text); } }