Пример #1
0
        public void ShowDialog(IWin32Window owner, NewsgroupSettingsView view)
        {
            NewsgroupsConfiguration cfg = new NewsgroupsConfiguration(this, view);

            cfg.DefinitionsModified += OnCfgDefinitionsModified;
            try {
                if (DialogResult.OK == cfg.ShowDialog(owner))
                {
                    //TODO: we should differ between the two kinds of general modifications
                    RaiseNewsServerDefinitionsModified();
                    RaiseIdentityDefinitionsModified();
                    // notify backend about NNTP server defs changes:
                    app.SubscriptionModified(app.BanditFeedSourceEntry, NewsFeedProperty.General);
                }
            } catch (Exception ex) {
                Trace.WriteLine("Exception in NewsGroupsConfiguration dialog: " + ex.Message);
            }
        }