/// <summary>
        /// Execute the specified command
        /// </summary>
        /// <param name="controller">The User Interface Controller for the current process</param><param name="commandName">The command that was requested.</param>
        /// <remarks>
        /// <para>
        /// If the command
        ///             was configured to provide its own user interface it will be called on the main UI thread and needs to perform
        ///             its own background processing to keep the user interface responsive.  If not, it will be called
        ///             from a background thread and the user interface will be kept responsive by the framework.
        /// </para>
        /// <para>
        /// The controller should not be persisted or accessed between calls, it may change and
        ///             the same object may get calls from multiple controllers.
        /// </para>
        /// </remarks>
        public void Process(IUserInterfaceContext controller, string commandName)
        {
            switch (commandName)
            {
            case ConfigureCommand:
                m_Context.EditConfiguration();
                break;

            case OpenSiteCommand:
                m_Controller.WebSiteOpen(null);
                break;
            }
        }
Exemplo n.º 2
0
 private void OpenCase(FogBugzCaseInfo selectedCase)
 {
     if (selectedCase != null)
     {
         if (selectedCase.CaseId != 0)
         {
             m_Controller.WebSiteOpenCase(selectedCase.CaseId);
         }
         else
         {
             m_Controller.WebSiteOpen(string.Format("default.asp?pg=pgList&search=2&searchFor={0}", HttpUtility.UrlEncode("tag:Gibraltar " + m_Controller.Filter)));
         }
     }
 }