Exemplo n.º 1
0
        private void showSettings()
        {
            MainSettings ms = new MainSettings();

            ms.ShowDialog();

            ThreadStart ts = new ThreadStart(userSwitchIT);
            Thread      t  = new Thread(ts);

            t.Start();


            updateRichMessageBoxes();
            refreshTasks();
        }
Exemplo n.º 2
0
        public UserMessages()
        {
            if (Settings.Default.LogsFolder == "")
            {
                string docs = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);

                Settings.Default.LogsFolder = docs + @"\NetworkChat\messages";
                MainSettings.saveSettings();
            }

            string path = Settings.Default.LogsFolder;

            if (!Directory.Exists(path))
            {
                Directory.CreateDirectory(path);
            }
        }
Exemplo n.º 3
0
        void tsi_Click(object sender, EventArgs e)
        {
            ToolStripItem tsi = (ToolStripItem)sender;

            Settings.Default.CurrentPresence = tsi.Tag.ToString();

            MainSettings.saveSettings();

            ResourceManager rm = Resources.ResourceManager;
            Bitmap          img;//

            img = (Bitmap)rm.GetObject(Settings.Default.CurrentPresence.ToLower());
            toolStripDropDownButtonStatus.Image = img;

            statusToolStripMenuItemStatus.Image = img;

            startBroadcast((Lan.Presence)Enum.Parse(typeof(Lan.Presence), Settings.Default.CurrentPresence));
        }
Exemplo n.º 4
0
 private void checkBoxAcceptTransfers_CheckedChanged(object sender, EventArgs e)
 {
     Settings.Default.AcceptTransfers = checkBoxAcceptTransfers.Checked;
     MainSettings.saveSettings();
 }