partial void SendOutcomeWithValue(UIButton sender) { string name = OutcomeValueKey.Text; float value = float.Parse(OutcomeValue.Text); SharedPush.SendOutcomeWithValue(name, value); }
partial void SendOutcomeWithValue(UIButton sender) { if (string.IsNullOrWhiteSpace(OutcomeValueKey.Text) || string.IsNullOrWhiteSpace(OutcomeValue.Text)) { return; } string name = OutcomeValueKey.Text; float value = float.Parse(OutcomeValue.Text); SharedPush.SendOutcomeWithValue(name, value); }