private ArgumentList GetResult() { var AL = new ArgumentList(); if (InternalOption != null) { var O = InternalOption; if (O.GetType() == typeof(OptionText)) { var OT = O as OptionText; AL.Set(OT.ParamName, (EditControl as TextBox).Text); } if (O.GetType() == typeof(OptionInput)) { var OI = O as OptionInput; AL.Set(OI.ParamName, OI.Type.Convert((EditControl as TextBox).Text)); } else if (O.GetType() == typeof(OptionList)) { var OL = O as OptionList; var CB = (EditControl as ComboBox); int Index = CB.SelectedIndex; AL.Append(OL.Items[Index].Values); } } return(AL); }
public void ResetArguments() { CompiledArgs = new ArgumentList(); if (Tool != null) { CompiledArgs.Append(Tool.GetDefaultOptionsValues()); } if (Project != null) { CompiledArgs.Append(Project.GetDefaultOptionsValues()); } if (Script != null) { CompiledArgs.Append(Script.GetDefaultOptionsValues()); } }
public ArgumentList GetDefaultOptionsValues() { var A = new ArgumentList(); foreach (var O in GetOptions()) { A.Append(O.GetDefault()); } return(A); }