Example #1
0
        void AddProperty(object sender, EventArgs e)
        {
            var addPage = new AddPropertyContentPage();

            addPage.PropertyAdded += (Property property) => {
                EventProperties.Add(property);
                RefreshPropCount();
            };
            Navigation.PushModalAsync(addPage);
        }
        async void AddProperty(object sender, EventArgs e)
        {
            var addPage = new AddPropertyContentPage();

            addPage.PropertyAdded += (Property property) =>
            {
                if (property.Name == null || Properties.Any(i => i.Name == property.Name))
                {
                    return;
                }
                Properties.Add(property);
                RefreshPropCount();
            };
            await Navigation.PushModalAsync(addPage);
        }