Activate zaaReloaded tab after loading demo document.
This commit is contained in:
		| @@ -15,11 +15,7 @@ | ||||
|  * See the License for the specific language governing permissions and | ||||
|  * limitations under the License. | ||||
|  */ | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.IO; | ||||
| using System.Linq; | ||||
| using System.Text; | ||||
| using Microsoft.Office.Interop.Word; | ||||
|  | ||||
| namespace zaaReloaded2.Demo | ||||
| @@ -43,6 +39,7 @@ namespace zaaReloaded2.Demo | ||||
|             Document demoDoc = Globals.ThisAddIn.Application.Documents | ||||
|                 .Add(Template: tempFile); | ||||
|             File.Delete(tempFile); | ||||
|             Globals.ThisAddIn.Ribbon.ActivateZaaTab(); | ||||
|         } | ||||
|  | ||||
|         #endregion | ||||
|   | ||||
| @@ -152,16 +152,24 @@ namespace zaaReloaded2 | ||||
|  | ||||
|         #endregion | ||||
|  | ||||
|         #region Private methods | ||||
|         #region Public methods | ||||
|  | ||||
|         public void Application_WindowSelectionChange(Microsoft.Office.Interop.Word.Selection Sel) | ||||
|         /// <summary> | ||||
|         /// Activates the add-in's tab. | ||||
|         /// </summary> | ||||
|         public void ActivateZaaTab() | ||||
|         { | ||||
|             _ribbon.Invalidate(); | ||||
|             _ribbon.ActivateTab("zaaReloaded2"); | ||||
|         } | ||||
|  | ||||
|         #endregion | ||||
|  | ||||
|         #region Helpers | ||||
|         #region Private methods | ||||
|  | ||||
|         private void Application_WindowSelectionChange(Microsoft.Office.Interop.Word.Selection Sel) | ||||
|         { | ||||
|             _ribbon.Invalidate(); | ||||
|         } | ||||
|  | ||||
|         private static string GetResourceText(string resourceName) | ||||
|         { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user