Esempio n. 1
0
 // Handle when a constant is selected in ConstantViewController and also refresh the section
 void ConstantViewController_ConstantSelected(object sender, ConstantEventArgs e)
 {
     if (e.Type == LogEventConstantNameType.Event)
     {
         (eventKeySection.Elements [0] as StringElement).Value = e.Value;
         Root.Reload(eventKeySection, UITableViewRowAnimation.None);
     }
     else
     {
         (parametersSections [e.SectionIndex] [0] as StringElement).Value = e.Value;
         Root.Reload(parametersSections [e.SectionIndex], UITableViewRowAnimation.None);
     }
 }
        public void ReturnValueOfSelectedConstant(PropertyInfo property)
        {
            if (ConstantSelected == null)
            {
                return;
            }

            var constantArgs = new ConstantEventArgs {
                Key          = new NSString(property.Name),
                Value        = property.GetValue(null) as NSString,
                SectionIndex = sectionIndex,
                Type         = type
            };

            ConstantSelected(this, constantArgs);
        }