Ejemplo n.º 1
0
        /// <summary>
        /// The handle application area.
        /// </summary>
        private void HandleApplicationArea()
        {
            this.application = new Application();
            this.application.CheckApplicationAreaForInvalidValues();
            this.AddApplicationCounterToCurrentValues(this.application);
            if (!this.isButtonNextPageInitialized)
            {
                // Get button Next Page from Application Area
                Host.Local.TryFindSingle(ApplicationPaths.strApplAreaNaviNextPage, DefaultValues.iTimeoutShort, out this.buttonNextPage);
                this.isButtonNextPageInitialized = true;
            }

            // Check if button to next page is available
            if (this.buttonNextPage != null)
            {
                // While other pages available
                while (this.buttonNextPage.Enabled)
                {
                    Mouse.Click(this.buttonNextPage);
                    Thread.Sleep(500);

                    // Check Application Area for parameter state
                    this.application = new Application();
                    this.application.CheckApplicationAreaForInvalidValues();
                    this.AddApplicationCounterToCurrentValues(this.application);
                }
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// The add application counter to current values.
 /// </summary>
 /// <param name="applicationArea">
 /// The application.
 /// </param>
 private void AddApplicationCounterToCurrentValues(Application applicationArea)
 {
     this.numberOfParameterDynamic  += applicationArea.NumberOfParameterDynamic;
     this.numberOfParameterInsecure += applicationArea.NumberOfParameterInsecure;
     this.numberOfParameterInvalid  += applicationArea.NumberOfParameterInvalid;
     this.numberOfParameterModified += applicationArea.NumberOfParameterModified;
     this.numberOfParameterValid    += applicationArea.NumberOfParameterValid;
 }