void ReleaseDesignerOutlets()
        {
            if (Build != null)
            {
                Build.Dispose();
                Build = null;
            }

            if (CalculateBtn != null)
            {
                CalculateBtn.Dispose();
                CalculateBtn = null;
            }

            if (ResultLabel != null)
            {
                ResultLabel.Dispose();
                ResultLabel = null;
            }

            if (TipPercentSegment != null)
            {
                TipPercentSegment.Dispose();
                TipPercentSegment = null;
            }
        }
예제 #2
0
 public void EnterProductDetails(string skuNo = null, string srialNo = null, string qty = null)
 {
     if (!string.IsNullOrEmpty(skuNo))
     {
         ProductSKUNumber.SendKeys(skuNo);
     }
     if (!string.IsNullOrEmpty(srialNo))
     {
         ProductSerialNo.SendKeys(srialNo);
     }
     if (!string.IsNullOrEmpty(qty))
     {
         Quantity.SendKeys(qty);
     }
     JavaScriptExecutorHelper.ScrollElementAndClick(AddBtn);
     GenericHelper.WaitForLoadingMask();
     Thread.Sleep(200);
     JavaScriptExecutorHelper.ScrollToElement(CalculateBtn);
     CalculateBtn.Click();
     GenericHelper.WaitForLoadingMask();
 }
예제 #3
0
 public FactorialPage CalculateFactorial(int Factorial)
 {
     TextBox.SetText($"{Factorial}");
     CalculateBtn.Click();
     return(this);
 }
예제 #4
0
 public void Calculate()
 {
     CalculateBtn.Submit();
     Thread.Sleep(500);
 }