Permalink
Browse files

small cleanup

  • Loading branch information...
1 parent c093e04 commit 60e4311f144a22736dd38be0648df67ff9bfe3bf @PeterForstmeier PeterForstmeier committed Mar 25, 2011
@@ -288,27 +288,26 @@ public override object CurrentFromPosition (int pos)
public override CurrentItemsCollection FillDataRow(int pos)
{
CurrentItemsCollection ci = new CurrentItemsCollection();
- var current = CurrentFromPosition(pos);
- if (current != null)
+ var obj = CurrentFromPosition(pos);
+ if (obj != null)
{
- CurrentItem c = null;
+ CurrentItem currentItem = null;
foreach (PropertyDescriptor pd in this.listProperties)
{
- c = new CurrentItem();
- c.ColumnName = pd.Name;
- c.DataType = pd.PropertyType;
+ currentItem = new CurrentItem();
+ currentItem.ColumnName = pd.Name;
+ currentItem.DataType = pd.PropertyType;
- //var s = pd.GetValue(current);
- var s = FollowPropertyPath(current,pd.Name);
- if (s != null)
+ var propValue = FollowPropertyPath(obj,pd.Name);
+ if (propValue != null)
{
- c.Value = s.ToString();
+ currentItem.Value = propValue.ToString();
}
else
{
- c.Value = String.Empty;
+ currentItem.Value = String.Empty;
}
- ci.Add(c);
+ ci.Add(currentItem);
}
}
return ci;
@@ -118,7 +118,7 @@ private List<object> SetupDataSource (object data,IDataNavigator navigator)
if (currentItem != null) {
object s1 = Convert.ToString(currentItem.Value.ToString(),CultureInfo.CurrentCulture);
- Console.WriteLine("\tvalue = {0}", s1.ToString());
+ Console.WriteLine("\tSetup DataSource value = {0}", s1.ToString());
if (IsNumeric(s1)) {
list.Add(Convert.ToDouble(s1,System.Globalization.CultureInfo.CurrentCulture));
} else {
@@ -105,8 +105,7 @@ public static string[] AggregateFunctions ()
#endregion
- /// </summary>
- ///
+
#region Zoom
public static string[] ZoomValues ()
@@ -128,7 +127,6 @@ public static string[] ZoomValues ()
"50%",
"25%"};
-
#endregion

0 comments on commit 60e4311

Please sign in to comment.