Yaircc.MainForm.MarshalRegistered C# (CSharp) Method

MarshalRegistered() public method

Indicates that a marshal has successfully registered on a network.
public MarshalRegistered ( IRCMarshal marshal ) : void
marshal IRCMarshal The marshal that has registered.
return void
        public void MarshalRegistered(IRCMarshal marshal)
        {
            if (this.CurrentTab != null && this.CurrentTab.Marshal == marshal)
            {
                this.channelBrowserToolStripButton.Enabled = true;
                this.channelBrowserToolStripMenuItem.Enabled = true;

                if (this.CurrentTab.TabType == IRCTabType.Channel)
                {
                    IRCChannel channel = this.CurrentTab.Marshal.GetChannelByTab(this.CurrentTab);
                    if (channel != null)
                    {
                        this.inputTextBox.MaxLength = this.CurrentTab.Marshal.GetChannelByTab(this.CurrentTab).MaximumMessageSize;
                    }
                }

                this.UpdateStatusBarText();
            }
        }
MainForm