Exemplo n.º 1
0
 private void UpdateParameters(BuildProfile prof)
 {
     RunCsgCheckbox.Checked = prof.RunCsg;
     RunBspCheckbox.Checked = prof.RunBsp;
     RunVisCheckbox.Checked = prof.RunVis;
     RunRadCheckbox.Checked = prof.RunRad;
     CsgParameters.SetCommands(prof.GeneratedCsgParameters ?? "", prof.AdditionalCsgParameters ?? "");
     BspParameters.SetCommands(prof.GeneratedBspParameters ?? "", prof.AdditionalBspParameters ?? "");
     VisParameters.SetCommands(prof.GeneratedVisParameters ?? "", prof.AdditionalVisParameters ?? "");
     RadParameters.SetCommands(prof.GeneratedRadParameters ?? "", prof.AdditionalRadParameters ?? "");
     SharedParameters.SetCommands(prof.GeneratedSharedParameters ?? "", prof.AdditionalSharedParameters ?? "");
 }
Exemplo n.º 2
0
        private void AddParameters()
        {
            var csg = _specification.GetTool("csg");

            if (csg != null)
            {
                CsgParameters.AddParameters(csg.Parameters);
                CsgParameters.SetDescription(csg.Description);
            }

            var bsp = _specification.GetTool("bsp");

            if (bsp != null)
            {
                BspParameters.AddParameters(bsp.Parameters);
                BspParameters.SetDescription(bsp.Description);
            }

            var vis = _specification.GetTool("vis");

            if (vis != null)
            {
                VisParameters.AddParameters(vis.Parameters);
                VisParameters.SetDescription(vis.Description);
            }

            var rad = _specification.GetTool("rad");

            if (rad != null)
            {
                RadParameters.AddParameters(rad.Parameters);
                RadParameters.SetDescription(rad.Description);
            }

            var shared = _specification.GetTool("shared");

            if (shared != null)
            {
                SharedParameters.AddParameters(shared.Parameters);
                SharedParameters.SetDescription(shared.Description);
            }
        }