private void btnViewParty_Click(object sender, EventArgs e) { selectedParty = dbListPartiesList.CurrentRow.Index; Console.WriteLine("\nPARTY LIST FORM: Selected Party for Party View: " + selectedParty); string partyID = "", partyCreatorID = ""; try { partyID = dbListPartiesList.Rows[selectedParty].Cells[2].Value.ToString(); partyCreatorID = dbListPartiesList.Rows[selectedParty].Cells[3].Value.ToString(); ConnectVariables.SetPartyOwnerIDDP(partyCreatorID); } catch (Exception x) { Console.WriteLine(x.Message); } Console.WriteLine("\nPARTY LIST FORM: PartyID for Party View: " + partyID); ConnectVariables.SetPartyIDDP(partyID); ConnectDataBases.GetParty(selectedParty, 'P', Int32.Parse(partyID)); FormClass.parMakeF.Update('D'); FormClass.parMakeF.Update('R'); FormClass.parMakeF.Update('G'); FormClass.partyLF.Hide(); FormClass.parMakeF.Show(); }