Jump to content
LaunchBox Community Forums

[HELP] Setters and Getters for Selected Game


Recommended Posts

Guys,

 

I'm trying to set selectedGame details from a form or from another Class for example so i set the setters and getters:

        public static string gameNotes { get; set; }

on my OnSelected method from IGame Interface I do:

        public void OnSelected(IGame selectedGame)
        {
            gameNotes = selectedGame.Notes;
            Form1 frm = new Form1();
            frm.Show();
        }

Then on my Form I do

MyInterfaceClass.gameNotes = "Some Notes"

But it doesn't set on Launchbox, Am I doing something wrong?

If Someone could help me would be great :(

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...