/// <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> /// 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(); }