/// <summary> /// Called to initialize the session summary view. /// </summary> /// <param name="context">A standard interface to the hosting environment for the view, specific to the repository where the view was activated</param> /// <remarks> /// If any exception is thrown during this call this view will not be loaded. /// </remarks> public void Initialize(IRepositoryContext context) { m_Context = context; m_Controller = (RepositoryController)m_Context.RepositoryController; m_Initialized = true; }
/// <summary> /// Called to initialize the add in. /// </summary> /// <remarks> /// If any exception is thrown during this call the add-in will not be loaded. /// </remarks> public void Initialize(ISessionContext context) { m_Context = context; m_Controller = (RepositoryController)m_Context.RepositoryController; //load up our baseline configuration ConfigurationChanged(); }
/// <summary> /// Called to initialize the session summary view. /// </summary> /// <param name="context">A standard interface to the hosting environment for the view, specific to the repository where the view was activated</param> /// <remarks> /// If any exception is thrown during this call this view will not be loaded. /// </remarks> public void Initialize(IRepositoryContext context) { m_Context = context; m_Controller = (RepositoryController)context.RepositoryController; m_Initialized = true; SetDisplayCase(null); ThreadSafeDisplayCaseList(); PerformSearch(); }
/// <summary> /// Called to initialize the session analyzer. /// </summary> /// <param name="context">A standard interface to the hosting environment for the analyzer</param> /// <remarks> /// If any exception is thrown during this call this add in will not be loaded. /// The analyzer can keep the context object for its entire lifespan /// </remarks> public void Initialize(IRepositoryContext context) { if (m_Initialized) throw new InvalidOperationException("The add-in has already been initialized and shouldn't be re-initialized"); m_Context = context; m_Controller = (RepositoryController)m_Context.RepositoryController; //load up our baseline configuration ConfigurationChanged(); m_Initialized = true; }
/// <summary> /// Called to initialize the session analyzer. /// </summary> /// <param name="context">A standard interface to the hosting environment for the analyzer</param> /// <remarks> /// If any exception is thrown during this call this add in will not be loaded. /// The analyzer can keep the context object for its entire lifespan /// </remarks> public void Initialize(IRepositoryContext context) { if (m_Initialized) { throw new InvalidOperationException("The add-in has already been initialized and shouldn't be re-initialized"); } m_Context = context; m_Controller = (RepositoryController)m_Context.RepositoryController; //load up our baseline configuration ConfigurationChanged(); m_Initialized = true; }
/// <summary> /// Called to initialize the command. /// </summary> /// <param name="context">A standard interface to the hosting environment for the command</param> /// <remarks> /// If any exception is thrown during this call this command will not be loaded. /// </remarks> public void Initialize(IRepositoryContext context) { m_Context = context; m_Controller = (RepositoryController)m_Context.RepositoryController; }