private void SaveButton_Click(object sender, RoutedEventArgs e) { double als = AmbientLightScalar.Value; double dls = DiffuseLightScalar.Value; double slr = SpecularLightRadius.Value; double slp = SpecularLightPow.Value; double x = PositionX.Value; double y = PositionY.Value; double z = PositionZ.Value; ClientSend.SendLightData(als, dls, slr, slp, x, y, z); FormManager.CreatedLight(); }