| | |
| | | actionRefresh = () => { |
| | | btnFunctionName.Text = btnFunctionName_Out.Text = light.name; |
| | | btnFromFloor_Out.Text = btnFromFoorAndRoom.Text = light.GetRoomListName(); |
| | | light.SaveFunctionData(); |
| | | light.SaveFunctionData(true); |
| | | }; |
| | | } |
| | | /// <summary> |
| | |
| | | barFadeTime.OnProgressChangedEvent = (sender, e) => |
| | | { |
| | | light.fadeTime = e; |
| | | light.SaveFunctionData(); |
| | | light.SaveFunctionData(false); |
| | | }; |
| | | } |
| | | |
| | |
| | | { |
| | | btnCollection.MouseUpEventHandler += (sender, e) => { |
| | | btnCollection.IsSelected = light.collect = btnCollection_Out.IsSelected = !btnCollection.IsSelected; |
| | | light.SaveFunctionData(); |
| | | light.SaveFunctionData(true); |
| | | }; |
| | | } |
| | | |