public void AddNewProgramFile()
    {
        GameObject newProgramFile = new GameObject();

        newProgramFile.AddComponent <ProgramFile> ();
        newProgramFile.transform.parent = transform;
        newProgramFile.GetComponent <ProgramFile> ().SetProgramName("New Program");
        GameObject graphic = ProgramGUIManager.StaticAddProgramFile(newProgramFile.GetComponent <ProgramFile> ());

        graphic.GetComponent <ProgramGUIProgramFileGraphic> ().InitializeGraphic(this, newProgramFile.GetComponent <ProgramFile>());
    }
    public void AddNewVariable()
    {
        GameObject newProgramVariable = new GameObject();

        newProgramVariable.transform.parent = transform;
        newProgramVariable.AddComponent <ProgramVariable> ();
        newProgramVariable.GetComponent <ProgramVariable> ().SetVariableName("New Variable");
        GameObject graphic = ProgramGUIManager.StaticAddVariable(newProgramVariable.GetComponent <ProgramVariable> ());

        graphic.GetComponent <ProgramGUIVariableGraphic> ().InitializeGraphic(this, newProgramVariable.GetComponent <ProgramVariable>());

        //newProgramVariable.GetComponent<ProgramVariable> ().SetVariableName (variableName);
    }
 // Use this for initialization
 void Start()
 {
     programFileGraphics     = new List <ProgramGUIProgramFileGraphic> ();
     programVariableGraphics = new List <ProgramGUIVariableGraphic> ();
     programGUIManager       = this;
 }