I figured it out.
All I needed was to create an int and a new public class. I equaled the int to the newly created
ClientLoginID and equaled the public class to the int.
First window coding:
int CQ = NewClient.ClientLoginID;
ClientDetails.ID = CQ;
I can now call that public class in the second window and select the
ClientLoginID that equals the class
ID and there I have my new client that I JUST added. :)
Here is the coding in my second window:
int CD = ClientDetails.ID;
using (DataClassesDataContext DC = new DataClassesDataContext())
{
tblClientLoginDetail tblCLD = DC.tblClientLoginDetails.Single<tblClientLoginDetail>
(i => i.ClientLoginID == CD);
lblSelectedUser.Content = tblCLD.ClientName + " - " + tblCLD.ClientSurname;
}
My class coding for anyone that might need it:
public static class ClientDetails
{
public static int ID { get; set; }
}