Exemplo n.º 1
0
 /// <summary>
 /// Sets the Orientation - Portrait or Landscape
 /// </summary>
 /// <param name="orientation">Orientation type set Potrait or Landscape </param>
 public void SetOrientation(ContentOrientation orientation)
 {
     ScrollToOption("CopyContentOrientationDialogButton");
     _controlPanel.PressWait("CopyContentOrientationDialogButton", "ContentOrientationDialog", _waitTimeSpan);
     _controlPanel.Press(orientation.ToString().ToLower(CultureInfo.InvariantCulture));
     _controlPanel.PressWait("m_OKButton", "CopyAppMainForm", _waitTimeSpan);
 }
Exemplo n.º 2
0
        /// <summary>
        /// Selects the Content Orientation  for the scanned file
        /// </summary>
        /// <param name="contentOrientation">content orientation to select(case sensitive).</param>
        public void SelectContentOrientation(ContentOrientation contentOrientation)
        {
            OpenOptionsPanel();

            if (!_controlPanel.ScrollPressWait("#hpid-option-content-orientation", "#hpid-option-content-orientation-screen", TimeSpan.FromSeconds(5)))
            {
                throw new DeviceWorkflowException("Unable to select content orientation option.");
            }

            Pacekeeper.Sync();
            _controlPanel.ScrollPressWait($"#hpid-content-orientation-selection-{contentOrientation.ToString().ToLower()}", ".hp-option-list");
        }
Exemplo n.º 3
0
        /// <summary>
        /// Sets the Orientation - Portrait or Landscape
        /// </summary>
        /// <param name="orientation">Orientation type set Potrait or Landscape </param>
        public void SetOrientation(ContentOrientation orientation)
        {
            if (orientation != ContentOrientation.None)
            {
                OpenOptionsPanel();
                _device.ControlPanel.ScrollPressWait("#hpid-option-content-orientation", "#hpid-option-content-orientation-screen", _activeScreenTimeout);

                //Selecting Orientation value
                _device.ControlPanel.ScrollPress(string.Equals(orientation.ToString(), "Portrait", StringComparison.CurrentCultureIgnoreCase) ? "#hpid-content-orientation-selection-portrait" : "#hpid-content-orientation-selection-landscape");
                Pacekeeper.Pause();
            }
        }
Exemplo n.º 4
0
	/// <summary>
	/// Sets the orientationui ignite.
	/// </summary>
	/// <param name="orientation">Orientation.</param>
	public static void SetOrientationUIIgnite (ContentOrientation orientation) {
		FuelSDKCommon.Log (FuelSDKCommon.LogLevel.DEBUG, "setting the ignite UI orientation: " + orientation.ToString ());
		
		if (!Application.isEditor) {
			GetFuelSDKPlatform().SetOrientationUIIgnite (orientation);
		}
	}
Exemplo n.º 5
0
    /// <summary>
    /// Sets the orientationui ignite.
    /// </summary>
    /// <param name="orientation">Orientation.</param>
    public static void SetOrientationUIIgnite(ContentOrientation orientation)
    {
        FuelSDKCommon.Log(FuelSDKCommon.LogLevel.DEBUG, "setting the ignite UI orientation: " + orientation.ToString());

        if (!Application.isEditor)
        {
            GetFuelSDKPlatform().SetOrientationUIIgnite(orientation);
        }
    }