private void showSettings() { MainSettings ms = new MainSettings(); ms.ShowDialog(); ThreadStart ts = new ThreadStart(userSwitchIT); Thread t = new Thread(ts); t.Start(); updateRichMessageBoxes(); refreshTasks(); }
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); } }
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)); }
private void checkBoxAcceptTransfers_CheckedChanged(object sender, EventArgs e) { Settings.Default.AcceptTransfers = checkBoxAcceptTransfers.Checked; MainSettings.saveSettings(); }