private void Button_Click_OK(object sender, RoutedEventArgs e)
{
var bulb = new MockLightingServiceHandler(bulbName.Text, Guid.NewGuid().ToString(),
switchDimming.IsOn, switchColor.IsOn, switchTemperature.IsOn, this.Dispatcher);
bulb.LampState_Hue = (UInt32)(new Random().NextDouble() * (uint.MaxValue - 1));
bulb.LampState_Brightness = UInt32.MaxValue - 1;
bulb.LampState_Saturation = UInt32.MaxValue - 1;
bulb.LampState_OnOff = true;
AllJoynDsbServiceManager.Current.AddDevice(new MockBulbDevice(bulb));
SaveDevices();
Button_Click_Cancel(sender, e);
}