コード例 #1
0
        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();
        }
コード例 #2
0
 public frmAbout(frmMain main)
 {
     InitializeComponent();
     MainForm = main;
     rtbCredits.SelectionFont = new Font(rtbCredits.Font, FontStyle.Bold);
     rtbCredits.AppendText("SLChat v0.0.0.3");
     rtbCredits.SelectionFont = new Font(rtbCredits.Font, FontStyle.Regular);
        	rtbCredits.AppendText("\nhttp://www.libsecondlife.org/content/view/16/32/"+
                           "\n\nUsing the libsecondlife library (http://libsecondlife.org)"+
                           "\n\nDeveloped by: Oz Spade, Delta Czukor, Baba Yamamoto"+
                           "\n\nBuilt off of Delta Czukor's SLeek"+
                           "\n\n\n\nA nark posing as someone who poses as a nark.");
 }
コード例 #3
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.
            //
        }