Beispiel #1
0
        public PostReplyForm(string defaultIdentity, IdentityNewsServerManager identityManager) :
            this()
        {
            this.NoInfo          = SR.PostReplySentIdentityInfoTextEmptyValue;
            this.identityManager = identityManager;
            this.RefreshUserIdentities(defaultIdentity);
            this.OnIdentitySelectionChangeCommitted(this, EventArgs.Empty);
            this.richTextBox1.Text = this.UserSignature;

            this.txtTitle.TextChanged     += this.OnTxtTitleTextChanged;
            this.richTextBox1.TextChanged += this.OnTxtRichTextTextChanged;
            this.Activated += PostReplyForm_Activated;
        }
Beispiel #2
0
        public NewsgroupsConfiguration(IdentityNewsServerManager app, NewsgroupSettingsView initialSettingsDisplay)
        {
            if (null == app)
            {
                throw new ArgumentNullException("app");
            }

            this.application    = app;
            this.userIdentities = new ListDictionary();
            this.nntpServers    = new ListDictionary();

            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            this.wheelSupport = new WheelSupport(this);

            this.treeServers.AfterSelect           += this.OnTreeServersAfterSelect;
            this.listAccounts.SelectedIndexChanged += this.OnListAccountsSelectedIndexChanged;

            this.BackColor                    = SystemColors.Window;
            this.splitter1.BackColor          = FontColorHelper.UiColorScheme.ToolbarGradientLight;
            this.accountSettingsPane.Location = this.subscriptionsViewPane.Location = new Point(0, 0);
            this.generalViewPane.Location     = this.serverViewPane.Location = this.advancedViewPane.Location = new Point(0, 0);
            this.accountSettingsPane.Dock     = this.subscriptionsViewPane.Dock = DockStyle.Fill;
            this.generalViewPane.Dock         = this.serverViewPane.Dock = this.advancedViewPane.Dock = DockStyle.Fill;

            EnableView(subscriptionsViewPane, false);
            EnableView(generalViewPane, false);
            EnableView(advancedViewPane, false);
            EnableView(serverViewPane, false);
            EnableView(accountSettingsPane, false);

            if (!RssBanditApplication.AutomaticColorSchemes)
            {
                Office2003Renderer sdRenderer = new Office2003Renderer();
                sdRenderer.ColorScheme = Office2003Renderer.Office2003ColorScheme.Automatic;
                if (!RssBanditApplication.AutomaticColorSchemes)
                {
                    sdRenderer.ColorScheme = Office2003Renderer.Office2003ColorScheme.Standard;
                }
                navigationBar.SetActiveRenderer(sdRenderer);
            }

            this.currentView = initialSettingsDisplay;
        }
Beispiel #3
0
        private void DoSubscribe()
        {
            if (listOfGroups.SelectedItems.Count > 0)
            {
                ListViewItem         lv = listOfGroups.SelectedItems[0];
                NntpServerDefinition sd = GetSelectedNntpServerDefinition();
                if (sd != null)
                {
                    ICoreApplication coreApp = IoC.Resolve <ICoreApplication>();

                    if (coreApp != null)
                    {
                        if (coreApp.SubscribeToFeed(
                                IdentityNewsServerManager.BuildNntpRequestUri(sd, lv.Text).ToString(),
                                null, lv.Text))
                        {
                            //TODO set icon
                        }
                    }
                }
            }
        }