示例#1
0
        public NewVariableDialog(ApplicationJob.UrlVariableCollection variables)
        {
            InitializeComponent();
            m_ExistingVariables = variables;

            AcceptButton = bOK;
            CancelButton = bCancel;
        }
示例#2
0
 /// <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;
     }
 }
示例#3
0
        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;
            }
        }
示例#4
0
 /// <summary>
 /// Creates a new variable for a given application.
 /// </summary>
 public UrlVariable(string name, ApplicationJob.UrlVariableCollection collection)
 {
     m_Name   = name;
     m_Parent = collection;
 }
示例#5
0
 /// <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)
 {
 }
示例#6
0
 /// <summary>
 /// Creates a new variable for a given application.
 /// </summary>
 public UrlVariable(string name, ApplicationJob.UrlVariableCollection collection)
 {
     this.Name   = name;
     this.Parent = collection;
 }
示例#7
0
 /// <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;
     }
 }
示例#8
0
        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;
            }
        }