Пример #1
0
        public override IEnumerator <object> OnStatusWindowShown(IStatusWindow statusWindow)
        {
            var panel = new DroneHelperConfig(this);

            yield return(panel.LoadConfiguration());

            statusWindow.ShowConfigurationPanel("Drone Helper", panel);
        }
Пример #2
0
 public override IEnumerator<object> Initialize()
 {
     // Hack to initialize prefs to defaults
     using (var configWindow = new DroneHelperConfig(this)) {
         yield return configWindow.LoadConfiguration();
         yield return configWindow.SaveConfiguration();
     }
 }
Пример #3
0
        public override IEnumerator <object> Initialize()
        {
            // Hack to initialize prefs to defaults
            using (var configWindow = new DroneHelperConfig(this)) {
                yield return(configWindow.LoadConfiguration());

                yield return(configWindow.SaveConfiguration());
            }
        }
Пример #4
0
 public override IEnumerator<object> OnStatusWindowShown(IStatusWindow statusWindow)
 {
     var panel = new DroneHelperConfig(this);
     yield return panel.LoadConfiguration();
     statusWindow.ShowConfigurationPanel("Drone Helper", panel);
 }