/// <summary>
 /// In the Run override of this command handler we should do any first-run initialisation our addin may require.
 ///
 /// Here we inspect the PropertyService for our api key property and then open the configuration dialog if it's
 /// missing.
 /// </summary>
 protected override void Run()
 {
     if (PropertyService.HasValue(PropertyKeys.TranslationApiPropertyKey) == false)
     {
         // Show the API key dialog.
         var dialog = new ConfigureApiKeyDialog();
         dialog.Show();
     }
 }
Exemple #2
0
        /// <summary>
        /// The Run method is used here to display the
        /// </summary>
        protected override void Run()
        {
            var dialog = new ConfigureApiKeyDialog();

            dialog.Show();
        }