private void tBtnAddConn_Click(object sender, EventArgs e) { HA_ConnectionDAL dal = new HA_ConnectionDAL(); FrmManageConn methodForm = new FrmManageConn(null, ""); methodForm.ShowDialog(); ReloadConnection(); }
private void skinLVConns_DoubleClick(object sender, EventArgs e) { if (skinLVConns.SelectedItems.Count > 0) { var a = skinLVConns.SelectedItems[0]; HA_Connection ha_conn = new HA_Connection { conn_name = a.SubItems[1].Text, conn_IP = a.SubItems[2].Text, conn_Account = a.SubItems[3].Text, conn_Password = a.SubItems[4].Text, conn_DBType = a.SubItems[5].Text, conn_Alias = a.SubItems[6].Text, conn_CType = a.SubItems[7].Text, conn_String = a.SubItems[8].Text, conn_note = a.SubItems[9].Text }; FrmManageConn connForm = new FrmManageConn(ha_conn, a.SubItems[1].Text); connForm.ShowDialog(); ReloadConnection(); } }