Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions MaxLifx/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
<appSettings>
<add key="subnet" value="255.255.255.255"/>
</appSettings>
</configuration>
3 changes: 2 additions & 1 deletion MaxLifx/MainForm.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Diagnostics;
using System.Drawing;
using System.Globalization;
Expand Down Expand Up @@ -699,7 +700,7 @@ private void button5_Click(object sender, EventArgs e)

private void advancedDiscoverToolStripMenuItem_Click(object sender, EventArgs e)
{
_bulbController.DiscoverBulbs("255.255.255.255");
_bulbController.DiscoverBulbs(ConfigurationManager.AppSettings["subnet"]);

if (_bulbController.Bulbs.Count == 0)
{
Expand Down
7 changes: 6 additions & 1 deletion MaxLifx/MaxLifx.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@
</Reference>
<Reference Include="PresentationCore" />
<Reference Include="System" />
<Reference Include="System.configuration">
<HintPath>..\..\..\..\..\..\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.configuration.dll</HintPath>
</Reference>
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
Expand Down Expand Up @@ -258,7 +261,9 @@
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="App.config">
<SubType>Designer</SubType>
</None>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\MaxLifxBulbController\MaxLifxBulbController.csproj">
Expand Down