public frmMain(frmLogin Login, SLNetCom net,PrefsManager preferences)
        {
            InitializeComponent();

            LoginForm = Login;
            netcom = net;

            prefs = preferences;

            netcom.NetcomSync = this;
            netcom.LoginOptions.UserAgent = "SLChat v0.0.0.2";
            netcom.LoginOptions.Author = "*****@*****.**";
            this.AddNetcomEvents();

            chatManager = new ChatTextManager(new RichTextBoxPrinter(rtbChat), netcom, prefs);

            this.RefreshWindowTitle();

            IMTabs = new Dictionary<string, IMTabWindow>();
            IMForm = new frmIMs(netcom, prefs);
            IMForm.VisibleChanged += new EventHandler(IMForm_VisibleChanged);
        }
Esempio n. 2
0
        public frmMain(frmLogin Login, SLNetCom net, PrefsManager preferences)
        {
            InitializeComponent();

            LoginForm = Login;
            netcom    = net;

            prefs = preferences;

            netcom.NetcomSync             = this;
            netcom.LoginOptions.UserAgent = "SLChat v0.0.0.2";
            netcom.LoginOptions.Author    = "*****@*****.**";
            this.AddNetcomEvents();

            chatManager = new ChatTextManager(new RichTextBoxPrinter(rtbChat), netcom, prefs);

            this.RefreshWindowTitle();

            IMTabs = new Dictionary <string, IMTabWindow>();
            IMForm = new frmIMs(netcom, prefs);
            IMForm.VisibleChanged += new EventHandler(IMForm_VisibleChanged);
        }