public NewVariableDialog(ApplicationJob.UrlVariableCollection variables) { InitializeComponent(); m_ExistingVariables = variables; AcceptButton = bOK; CancelButton = bCancel; }
/// <summary> /// Creates a new variable for a given application. /// </summary> internal UrlVariable(string name, ApplicationJob.UrlVariableCollection collection) { m_Name = name; m_Parent = collection; if (collection != null && collection.Parent != null) { m_JobGuid = collection.Parent.Guid; } }
public EditVariablesDialog(ApplicationJob job) : base() { InitializeComponent(); AcceptButton = bOK; CancelButton = bCancel; m_Job = job; m_Variables = new ApplicationJob.UrlVariableCollection(job); // Get a copy of all variables foreach (KeyValuePair <string, UrlVariable> pair in job.Variables) { UrlVariable clonedVariable = pair.Value.Clone() as UrlVariable; m_Variables.Add(pair.Key, clonedVariable); clonedVariable.Parent = m_Variables; } }
/// <summary> /// Creates a new variable for a given application. /// </summary> public UrlVariable(string name, ApplicationJob.UrlVariableCollection collection) { m_Name = name; m_Parent = collection; }
/// <summary> /// When loading variables for a given application job, /// this constructor can be used to prepare a variable for Hydrate(). /// </summary> internal UrlVariable(ApplicationJob.UrlVariableCollection job) : this(null, job) { }
/// <summary> /// Creates a new variable for a given application. /// </summary> public UrlVariable(string name, ApplicationJob.UrlVariableCollection collection) { this.Name = name; this.Parent = collection; }
public EditVariablesDialog(ApplicationJob job) : base() { InitializeComponent(); AcceptButton = bOK; CancelButton = bCancel; m_Job = job; m_Variables = new ApplicationJob.UrlVariableCollection(job); // Get a copy of all variables foreach (KeyValuePair<string, UrlVariable> pair in job.Variables) { UrlVariable clonedVariable = pair.Value.Clone() as UrlVariable; m_Variables.Add(pair.Key, clonedVariable); clonedVariable.Parent = m_Variables; } }