Change local bindings instead of room bindings.

This commit is contained in:
DrabWeb 2018-08-24 19:27:16 -03:00
parent 90e178821a
commit c72281d0f2
1 changed files with 7 additions and 10 deletions

View File

@ -178,17 +178,14 @@ protected override void PopOut()
private void apply()
{
if (room != null)
{
room.Name.Value = NameField.Text;
room.Availability.Value = AvailabilityPicker.Current.Value;
room.Type.Value = TypePicker.Current.Value;
nameBind.Value = NameField.Text;
availabilityBind.Value = AvailabilityPicker.Current.Value;
typeBind.Value = TypePicker.Current.Value;
if (int.TryParse(MaxParticipantsField.Text, out int max))
room.MaxParticipants.Value = max;
else
room.MaxParticipants.Value = null;
}
if (int.TryParse(MaxParticipantsField.Text, out int max))
maxParticipantsBind.Value = max;
else
maxParticipantsBind.Value = null;
Hide();
}