private Hashtable settings = new Hashtable(); //Hashtable for our loaded settings.

        #endregion Fields

        #region Constructors

        public frmLogin()
        {
            InitializeComponent();

            //Try to load the login settings.
            prefs = new PrefsManager();
            prefs.LoadProfiles();
            //Load the profiles to our combobox.
            string[] profiles = new string[100];
            profiles = prefs.profiles;
            for(int i=0;i<profiles.Length;i++)
            {
                if(profiles[i]!=null)
                {
                    cbxProfiles.Items.Add(profiles[i].ToString());
                }else{
                    //Exit when we hit a null profile.
                    break;
                }
            }

            netcom = new SLNetCom();
            MainForm = new frmMain(this,netcom,prefs);
            this.AddNetcomEvents();
        }
Esempio n. 2
0
        private Hashtable settings = new Hashtable(); //Hashtable for our loaded settings.

        public frmLogin()
        {
            InitializeComponent();

            //Try to load the login settings.
            prefs = new PrefsManager();
            prefs.LoadProfiles();
            //Load the profiles to our combobox.
            string[] profiles = new string[100];
            profiles = prefs.profiles;
            for (int i = 0; i < profiles.Length; i++)
            {
                if (profiles[i] != null)
                {
                    cbxProfiles.Items.Add(profiles[i].ToString());
                }
                else
                {
                    //Exit when we hit a null profile.
                    break;
                }
            }

            netcom   = new SLNetCom();
            MainForm = new frmMain(this, netcom, prefs);
            this.AddNetcomEvents();
        }
        public ChatTextManager(ITextPrinter textPrinter, SLNetCom netcom, PrefsManager preferences)
        {
            this.textPrinter = textPrinter;
            this.netcom      = netcom;
            this.prefs       = preferences;

            this.AddNetcomEvents();
        }
        public IMTextManager(ITextPrinter textPrinter, SLNetCom netcom, PrefsManager preferences)
        {
            this.textPrinter = textPrinter;
            this.netcom = netcom;
            this.prefs = preferences;

            this.AddNetcomEvents();
        }
        public frmIMs(SLNetCom netcom, PrefsManager preferences)
        {
            InitializeComponent();

            this.netcom = netcom;
            IMTabs = new Dictionary<string, IMTabWindow>();
            prefs = preferences;

            this.AddNetcomEvents();
        }
        public frmIMs(SLNetCom netcom, PrefsManager preferences)
        {
            InitializeComponent();

            this.netcom = netcom;
            IMTabs      = new Dictionary <string, IMTabWindow>();
            prefs       = preferences;

            this.AddNetcomEvents();
        }
        public IMTabWindow(SLNetCom netcom, LLUUID target, LLUUID session, string toName, PrefsManager preferences)
        {
            InitializeComponent();

            this.netcom = netcom;
            this.target = target;
            this.session = session;
            this.toName = toName;
            this.prefs = preferences;

            textManager = new IMTextManager(new RichTextBoxPrinter(rtbIMText), this.netcom, prefs);
        }
Esempio n. 8
0
        public IMTabWindow(SLNetCom netcom, LLUUID target, LLUUID session, string toName, PrefsManager preferences)
        {
            InitializeComponent();

            this.netcom  = netcom;
            this.target  = target;
            this.session = session;
            this.toName  = toName;
            this.prefs   = preferences;

            textManager = new IMTextManager(new RichTextBoxPrinter(rtbIMText), this.netcom, prefs);
        }
        public frmPrefs(frmMain main, string username, PrefsManager preferences)
        {
            //
            // The InitializeComponent() call is required for Windows Forms designer support.
            //
            InitializeComponent();

            lbxChoices.SelectedIndex = lbxChoices.FindString("General");
            user = username;
            prefs = preferences;
            MainForm = main;
            LoadDefaults();
            //our private load settings to handle how they turn out
            //LoadSettings("GeneralSettings");
            LoadSettings("ChatSettings");
            LoadSettings("TimestampSettings");
            //
            // TODO: Add constructor code after the InitializeComponent() call.
            //
        }
Esempio n. 10
0
        public frmPrefs(frmMain main, string username, PrefsManager preferences)
        {
            //
            // The InitializeComponent() call is required for Windows Forms designer support.
            //
            InitializeComponent();

            lbxChoices.SelectedIndex = lbxChoices.FindString("General");
            user     = username;
            prefs    = preferences;
            MainForm = main;
            LoadDefaults();
            //our private load settings to handle how they turn out
            //LoadSettings("GeneralSettings");
            LoadSettings("ChatSettings");
            LoadSettings("TimestampSettings");
            //
            // TODO: Add constructor code after the InitializeComponent() call.
            //
        }
        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. 12
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);
        }