Tinkr2/4.2/AphelionCore/AphelionCore/Core/Core.cs
/// <summary>
/// Sets focus to an application, restoring its last active container
/// </summary>
/// <param name="app">Guid of application to activate</param>
/// <returns>True if successful; else false</returns>
Sets focus to an application, restoring its last active container
Sets focus to an application restoring its last active container
public static bool ActivateApplication(Guid app)
      {
         for (int i = 0; i < _instance._appRefs.Length; i++)
         {
            if (_instance._appRefs[i].ThreadId.Equals(app))
            {
               ActiveContainer = _instance._appRefs[i].LastActive;
               return true;
            }
         }
         return false;
      }
public static bool ActivateApplication ( Guid app ) { for ( int i = 0 ; i < _instance . _appRefs . Length ; i ++ ) { if ( _instance . _appRefs [ i ] . ThreadId . Equals ( app ) ) { ActiveContainer = _instance . _appRefs [ i ] . LastActive ; return true ; } } return false ; }
Sets focus to an application, restoring its last active container
Sets focus to an application restoring its last active container
True if successful; else false
True if successful ; else false
app
Guid
Guid of application to activate
Guid of application to activate