예제 #1
0
        /// <summary>
        /// Creates an instance of <see cref="LocalConfiguration"/> initialized by values
        /// copied from the specified instance.
        /// </summary>
        /// <param name="source"></param>
        private LocalConfiguration(LocalConfiguration source)
        {
            this.OutputControl  = source.OutputControl.DeepCopy();
            this.ErrorControl   = source.ErrorControl.DeepCopy();
            this.RequestControl = source.RequestControl.DeepCopy();
            this.FileSystem     = source.FileSystem.DeepCopy();
            this.Assertion      = source.Assertion.DeepCopy();
            this.Variables      = source.Variables.DeepCopy();
            this.Session        = source.Session.DeepCopy();
            this.Library        = source.Library.DeepCopy();

            LastConfigurationModifiedTimeUtc = source.LastConfigurationModifiedTimeUtc;
        }
        private void CreateUserVariableMenu()
        {
            List <KeyValuePair <string, string> > vars = VariablesSection.GetVariables();

            varMenu_Custom.DropDownItems.Clear();
            foreach (KeyValuePair <string, string> var in vars)
            {
                ToolStripItem mItem = varMenu_Custom.DropDownItems.Add(var.Key);
                mItem.ToolTipText = var.Value;
                mItem.Tag         = string.Format("$({0})", mItem.Text);
                mItem.Click      += VariableMenuItemClick;
            }
        }
예제 #3
0
        /// <summary>
        /// Creates an instance of <see cref="LocalConfiguration"/> initialized by default values.
        /// </summary>
        public LocalConfiguration()
        {
            OutputControl  = new OutputControlSection();
            ErrorControl   = new ErrorControlSection();
            RequestControl = new RequestControlSection();
            FileSystem     = new FileSystemSection();
            Assertion      = new AssertionSection();
            Variables      = new VariablesSection();
            Session        = new SessionSection();
            Library        = new LibraryConfigurationsSection();

            LastConfigurationModifiedTimeUtc = DateTime.MinValue;
        }
예제 #4
0
		/// <summary>
		/// Creates an instance of <see cref="LocalConfiguration"/> initialized by values 
		/// copied from the specified instance.
		/// </summary>
		/// <param name="source"></param>
		private LocalConfiguration(LocalConfiguration source)
		{
			this.OutputControl = source.OutputControl.DeepCopy();
			this.ErrorControl = source.ErrorControl.DeepCopy();
			this.RequestControl = source.RequestControl.DeepCopy();
			this.FileSystem = source.FileSystem.DeepCopy();
			this.Assertion = source.Assertion.DeepCopy();
			this.Variables = source.Variables.DeepCopy();
			this.Session = source.Session.DeepCopy();
			this.Library = source.Library.DeepCopy();

            LastConfigurationModificationTime = source.LastConfigurationModificationTime;
		}
예제 #5
0
		/// <summary>
		/// Creates an instance of <see cref="LocalConfiguration"/> initialized by default values.
		/// </summary>
		public LocalConfiguration()
		{
			OutputControl = new OutputControlSection();
			ErrorControl = new ErrorControlSection();
			RequestControl = new RequestControlSection();
			FileSystem = new FileSystemSection();
			Assertion = new AssertionSection();
			Variables = new VariablesSection();
			Session = new SessionSection();
			Library = new LibraryConfigurationsSection();

            LastConfigurationModificationTime = DateTime.MinValue;
		}