public void Initialize(MemberData member) { List<PropertyItem> list = new List<PropertyItem>(); if (member != null) { foreach (PropertyData pair in member.MemberProperties) { PropertyItem item = new PropertyItem(); String caption = pair.Name; if (caption.StartsWith("-") && caption.EndsWith("-")) caption = caption.Trim('-'); item.Property = caption; if (pair.Value != null) { item.Value = pair.Value.ToString(); } else { item.Value = String.Empty; } list.Add(item); } } PropertiesCtrl.Initialize(list); }
public void Initialize(MemberInfo member) { m_PropertiesOwnerControl.Visibility = Visibility.Visible; m_PropertiesOwnerControl.Content = new MemberInfoItemControl(member); List<PropertyItem> list = new List<PropertyItem>(); if (member != null && member.PropertiesDictionary != null) { foreach (KeyValuePair<String, object> pair in member.PropertiesDictionary) { PropertyItem item = new PropertyItem(); item.Property = pair.Key; if (item.Property == "DrilledDown") { // Элементы на оси объединяются если идут подряд одинаковые. При этом значение данного свойства формируется по ИЛИ item.Value = member.DrilledDown.ToString(); } else { if (pair.Value != null) { item.Value = pair.Value.ToString(); } else { item.Value = String.Empty; } } list.Add(item); } } m_PropertiesList.Initialize(list); }
public void Initialize(MemberData member) { m_PropertiesOwnerControl.Visibility = Visibility.Visible; m_PropertiesOwnerControl.Content = new MemberItemControl(member); List<PropertyItem> list = new List<PropertyItem>(); if (member != null) { foreach (PropertyData pair in member.MemberProperties) { PropertyItem item = new PropertyItem(); String caption = pair.Name; if (caption.StartsWith("-") && caption.EndsWith("-")) caption = caption.Trim('-'); item.Property = caption; if (pair.Value != null) { item.Value = pair.Value.ToString(); } else { item.Value = String.Empty; } list.Add(item); } } m_PropertiesList.Initialize(list); }
public void Initialize(CellInfo cell) { m_Cell = cell; List<PropertyItem> properties_list = new List<PropertyItem>(); List<PropertyItem> tuple_list = new List<PropertyItem>(); if (cell != null) { if (cell.CellDescr != null && cell.CellDescr.Value != null) { foreach (PropertyData pair in cell.CellDescr.Value.Properties) { PropertyItem item = new PropertyItem(); item.Property = pair.Name; if (pair.Value != null) { item.Value = pair.Value.ToString(); } else { item.Value = String.Empty; } properties_list.Add(item); } } } PropertiesCtrl.Initialize(properties_list); TupleCtrl.Initialize(cell); }