Server/MainForm.cs
changeset 204 6345461600d7
parent 202 8784c59c784e
child 206 33be8cb90c57
     1.1 --- a/Server/MainForm.cs	Sun Jul 17 19:35:29 2016 +0200
     1.2 +++ b/Server/MainForm.cs	Mon Jul 18 15:11:33 2016 +0200
     1.3 @@ -1145,6 +1145,7 @@
     1.4              checkBoxCecEnabled.Checked = Properties.Settings.Default.CecEnabled;
     1.5              checkBoxCecMonitorOn.Checked = Properties.Settings.Default.CecMonitorOn;
     1.6              checkBoxCecMonitorOff.Checked = Properties.Settings.Default.CecMonitorOff;
     1.7 +		    checkBoxCecReconnectToPowerTv.Checked = Properties.Settings.Default.CecReconnectToPowerTv;
     1.8              comboBoxHdmiPort.SelectedIndex = Properties.Settings.Default.CecHdmiPort - 1;
     1.9  
    1.10              //Mini Display settings
    1.11 @@ -2533,6 +2534,14 @@
    1.12              ResetCec();
    1.13          }
    1.14  
    1.15 +        private void checkBoxCecReconnectToPowerTv_CheckedChanged(object sender, EventArgs e)
    1.16 +        {
    1.17 +            Properties.Settings.Default.CecReconnectToPowerTv = checkBoxCecReconnectToPowerTv.Checked;
    1.18 +            Properties.Settings.Default.Save();
    1.19 +            //
    1.20 +            ResetCec();
    1.21 +        }
    1.22 +
    1.23          /// <summary>
    1.24          /// 
    1.25          /// </summary>
    1.26 @@ -2551,7 +2560,8 @@
    1.27                  iCecManager.Start(Handle, "CEC",
    1.28                  Properties.Settings.Default.CecHdmiPort,
    1.29                  Properties.Settings.Default.CecMonitorOn,
    1.30 -                Properties.Settings.Default.CecMonitorOff);
    1.31 +                Properties.Settings.Default.CecMonitorOff,
    1.32 +                Properties.Settings.Default.CecReconnectToPowerTv);
    1.33              }
    1.34          }
    1.35  
    1.36 @@ -2559,5 +2569,7 @@
    1.37          {
    1.38              StartIdleClient();
    1.39          }
    1.40 +
    1.41 +
    1.42      }
    1.43  }