public static CompileSpecification Parse(GenericStructure gs) { var spec = new CompileSpecification { ID = gs["ID"] ?? "", Name = gs["Name"] ?? ""}; var tools = gs.GetChildren("Tool"); spec.Tools.AddRange(tools.Select(CompileTool.Parse)); var presets = gs.GetChildren("Preset"); spec.Presets.AddRange(presets.Select(CompilePreset.Parse)); return spec; }
public static CompileSpecification Parse(GenericStructure gs) { var spec = new CompileSpecification { ID = gs["ID"] ?? "", Name = gs["Name"] ?? "" }; var tools = gs.GetChildren("Tool"); spec.Tools.AddRange(tools.Select(CompileTool.Parse)); var presets = gs.GetChildren("Preset"); spec.Presets.AddRange(presets.Select(CompilePreset.Parse)); return(spec); }
public CompileDialog(Build build) { InitializeComponent(); // Hide the panels AdvancedPanel.Size = Size.Empty; SimplePanel.Size = Size.Empty; // Open the default mode (Sledge.Settings.View.CompileDefaultAdvanced ? AdvancedPanel : SimplePanel).Dock = DockStyle.Fill; Size = (Sledge.Settings.View.CompileDefaultAdvanced ? _advancedSize : _simpleSize); _build = build; _specification = CompileSpecification.Specifications.FirstOrDefault(x => x.ID == build.Specification) ?? CompileSpecification.Specifications.FirstOrDefault() ?? new CompileSpecification {ID = "", Name = "No Specification Found"}; Text = "Compile Map - " + _specification.Name; AddParameters(); UpdateProfiles(); }
public CompileDialog(Build build) { InitializeComponent(); // Hide the panels AdvancedPanel.Size = Size.Empty; SimplePanel.Size = Size.Empty; // Open the default mode (Sledge.Settings.View.CompileDefaultAdvanced ? AdvancedPanel : SimplePanel).Dock = DockStyle.Fill; Size = (Sledge.Settings.View.CompileDefaultAdvanced ? _advancedSize : _simpleSize); _build = build; _specification = CompileSpecification.Specifications.FirstOrDefault(x => x.ID == build.Specification) ?? CompileSpecification.Specifications.FirstOrDefault() ?? new CompileSpecification { ID = "", Name = "No Specification Found" }; Text = "Compile Map - " + _specification.Name; AddParameters(); UpdateProfiles(); }