/// <summary> /// Launch the SafeQ solution. /// </summary> protected void Launch() { string _JobTitle = "SafeQ Scan"; DateTime startTime = DateTime.Now; Dictionary <string, object> parameters = new Dictionary <string, object>(); AuthenticationMode am = (_activityData.SafeQAuthentication == false) ? AuthenticationMode.Eager : AuthenticationMode.Lazy; if (am.Equals(AuthenticationMode.Eager)) { if (_activityData.AuthProvider == AuthenticationProvider.Card) { UpdateStatus("Authenticating by swiping badge on card reader first."); } else { UpdateStatus("Authenticating by pressing the Sign In button first."); } } else // AuthenticationMode.Lazy { UpdateStatus("Authenticating by pressing the SafeQScan Button first."); } _SafeQApp.ChangeAppName(_JobTitle); _SafeQApp.Launch(Authenticator, am, parameters); }
/// <summary> /// Launch the SafeQ solution. /// </summary> private void Launch() { Dictionary <string, object> parameters = new Dictionary <string, object>(); parameters.Add("PrintAll", _activityData.DocumentProcessAction == SafeQPrintPullPrintAction.PrintAll); AuthenticationMode am = (_activityData.SafeQPrintAuthentication == false) ? AuthenticationMode.Eager : AuthenticationMode.Lazy; UpdateLaunchStatus(am, _activityData.AuthProvider, "My print jobs"); _safeQApp.Launch(Authenticator, am, parameters); }