Exemple #1
0
        private void addScene_Click(object sender, EventArgs e)
        {
            StringWindow strWindow = new StringWindow();

            if (strWindow.ShowDialog() == DialogResult.OK)
            {
                FDGH.Scene scene = new FDGH.Scene();
                scene.Name        = strWindow.input;
                scene.AssetGroup1 = new List <string>();
                scene.AssetGroup2 = new List <string>();
                archive.SceneList.Add(scene);
                sceneList.Items.Add(strWindow.input);
            }
        }
Exemple #2
0
        private void ag2Add_Click(object sender, EventArgs e)
        {
            DropDownWindow ddWindow = new DropDownWindow();

            ddWindow.options = archive.StringList.ToArray();
            if (ddWindow.ShowDialog() == DialogResult.OK)
            {
                FDGH.Scene    scene = archive.SceneList[sceneList.SelectedIndex];
                List <string> ag    = scene.AssetGroup2;
                ag.Add(ddWindow.input);
                scene.AssetGroup2 = ag;
                archive.SceneList[sceneList.SelectedIndex] = scene;
                ag2List.Items.Add(ddWindow.input);
            }
        }