/// <summary> /// Save settings to registry /// </summary> internal void SaveSettings() { Bajotumn.registrySettings settings = new Bajotumn.registrySettings("P2P-ScreenViewer\\Senders\\" + Number); settings.saveSetting("Host", Host); settings.saveSetting("Port", PortString); settings.saveSetting("SendingEnabled", chkSendingEnabled.Checked); }
/// <summary> /// Load settings from registry /// </summary> internal void LoadSettings() { Bajotumn.registrySettings settings = new Bajotumn.registrySettings("P2P-ScreenViewer\\Senders\\" + Number); Host = settings.loadSetting("Host", "127.0.0.1").ToString(); PortString = settings.loadSetting("Port", "42069").ToString(); chkSendingEnabled.Checked = Boolean.Parse(settings.loadSetting("SendingEnabled", Boolean.TrueString).ToString()); }
/// <summary> /// Save settings to registry /// </summary> internal void SaveSettings() { Bajotumn.registrySettings settings = new Bajotumn.registrySettings("P2P-ScreenViewer\\Receiver"); settings.saveSetting("Host", cboAddressSelection.Text); settings.saveSetting("Port", txtPort.Text); }
/// <summary> /// Load settings from registry /// </summary> internal void LoadSettings() { Bajotumn.registrySettings settings = new Bajotumn.registrySettings("P2P-ScreenViewer\\Receiver"); txtPort.Text = settings.loadSetting("Port", "42069").ToString(); cboAddressSelection.Text = settings.loadSetting("Host", cboAddressSelection.Items[0]).ToString(); }