namespace SSTW
{
public partial class FormGameType : Form
{
public FormGameType()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
InitVariables.GameType = 1; //Regular game
}
}
}
The other relevant code snippets are:
namespace SSTW
{
class InitVars
{
public int GameType{ get; set; }
}
}
namespace SSTW
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
InitVars InitVariables = new InitVars();
Any help would be appreciated.
MOD EDIT: When posting code...USE CODE TAGS!!!
This post has been edited by JackOfAllTrades: 13 December 2010 - 10:14 AM

New Topic/Question
Reply




MultiQuote





|