public OptionsForm(Game1 gameref)
 {
     this.gameref = gameref;
     InitializeComponent();
     foreach (String textureDir in gameref.getOptions().getTextureDirectories())
     {
         pathsTextBox.Text += textureDir + ",";
     }
     if (gameref.getOptions().getTextureDirectories().Count > 0)
     {
         pathsTextBox.Text = pathsTextBox.Text.Substring(0, pathsTextBox.Text.Length - 1);
     }
 }
 public TextureManager(Game1 gameref, ContentManager content)
 {
     this.gameref = gameref;
     this.content = content;
     foreach (String textureDirectory in gameref.getOptions().getTextureDirectories())
         addTextureDirectory(textureDirectory);
 }
 public TextureManager(Game1 gameref, ContentManager content)
 {
     this.gameref = gameref;
     this.content = content;
     foreach (String textureDirectory in gameref.getOptions().getTextureDirectories())
     {
         addTextureDirectory(textureDirectory);
     }
 }
        private void applyButton_Click(object sender, EventArgs e)
        {
            List <String> paths = null;

            if (pathsTextBox.Text.Contains(','))
            {
                paths = new List <string>(pathsTextBox.Text.Split(','));
            }
            else
            {
                paths = new List <string>(new String[] { pathsTextBox.Text });
            }
            if (!pathsTextBox.Text.Trim().Equals(""))
            {
                gameref.getOptions().setTextureDirectories(paths);
            }
        }