Пример #1
0
        /// <summary>
        /// This method is triggered through the plugin manager and will show the
        /// XoapWeather configuration dialog. If the dialogue is closed normally
        /// the configuration will be reloaded and new weather data requested.
        /// </summary>
        public void ShowDialog()
        {
            ConfigurationForm cfg = new ConfigurationForm(xHelper);

            cfg.TopMost = true;
            if (cfg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                // Reload the configuration and forecast data
                if (ReadConfiguration())
                {
                    ForceWeatherUpdate();
                    this.xStatus = "Active";
                }
                else
                {
                    this.xStatus = "Error";
                }
            }
        }
Пример #2
0
 /// <summary>
 /// This method is triggered through the plugin manager and will show the
 /// XoapWeather configuration dialog. If the dialogue is closed normally
 /// the configuration will be reloaded and new weather data requested.
 /// </summary>
 public void ShowDialog()
 {
     ConfigurationForm cfg = new ConfigurationForm(xHelper);
     cfg.TopMost = true;
     if (cfg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         // Reload the configuration and forecast data
         if (ReadConfiguration())
         {
             ForceWeatherUpdate();
             this.xStatus = "Active";
         }
         else
             this.xStatus = "Error";
     }
 }