Esempio n. 1
0
 /// <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);
 }
Esempio n. 2
0
 /// <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());
 }
Esempio n. 3
0
 /// <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);
 }
Esempio n. 4
0
 /// <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();
 }