Ejemplo n.º 1
0
        /// <summary>
        /// See interface docs.
        /// </summary>
        public void ShowWinFormsOptionsUI()
        {
            using (var dialog = new WinForms.OptionsView()) {
                dialog.Options           = OptionsStorage.Load(this);
                dialog.FilterSettingsUrl = FilterSettingsUrl;

                if (dialog.ShowDialog() == DialogResult.OK)
                {
                    OptionsStorage.Save(this, dialog.Options);
                    ApplyOptions(dialog.Options);
                }
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// See interface docs.
        /// </summary>
        public void ShowWinFormsOptionsUI()
        {
            using(var dialog = new WinForms.OptionsView()) {
                var webServer = Factory.ResolveSingleton<IAutoConfigWebServer>().WebServer;

                dialog.Options = OptionsStorage.Load(this);
                dialog.FilterSettingsUrl = String.Format("{0}/FeedFilter/index.html", webServer.LocalAddress);

                if(dialog.ShowDialog() == DialogResult.OK) {
                    OptionsStorage.Save(this, dialog.Options);
                    ApplyOptions(dialog.Options);
                }
            }
        }