Beispiel #1
0
        public override IEnumerator <object> OnStatusWindowShown(IStatusWindow statusWindow)
        {
            var panel = new DroneHelperConfig(this);

            yield return(panel.LoadConfiguration());

            statusWindow.ShowConfigurationPanel("Drone Helper", panel);
        }
Beispiel #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();
     }
 }
Beispiel #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());
            }
        }
Beispiel #4
0
 public override IEnumerator<object> OnStatusWindowShown(IStatusWindow statusWindow)
 {
     var panel = new DroneHelperConfig(this);
     yield return panel.LoadConfiguration();
     statusWindow.ShowConfigurationPanel("Drone Helper", panel);
 }