Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreZaytsev committed Dec 25, 2021
1 parent 42637ca commit a4425a7
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions QRCoderGUITreeData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,11 @@ public Dictionary<string, object> GetConstructors(Type param)
}).ToDictionary(k => k.name, v => (Object)v.ctor);
}

//get enum dictionary
/// <summary>
/// get enum dictionary
/// </summary>
/// <param name="param"></param>
/// <returns></returns>
private IDictionary<string, object> GetParamEnum(Type param)
{
// return param.GetEnumValues().Cast<object>().ToDictionary(k => k.ToString(), v => v);
Expand Down Expand Up @@ -203,15 +207,15 @@ private void GetParamsConstuctor(ConstructorInfo ctor, int nestingLevel, string
foreach (object Param in ctor.GetParameters().Length == 0 ? queryProp : queryParam) { } //run function from query
}

/**********************************************************************************************************
START
************************************************************************************************************/
#region //START

/// <summary>
/// Gets the GUI tree.
/// return the entire GUI tree from the Reflection payload node to create the entire payload panel
/// </summary>
/// <param name="obj">The object (payload Reflection node).</param>
/// <returns>payload GUI tree IList.</returns>

public IList GetGUITree(Object obj)
{
pointTree = rootTree;
Expand All @@ -220,6 +224,8 @@ public IList GetGUITree(Object obj)
return null;// GUITree;
}

#endregion

/// <summary>
/// Gets the GUI tree nodes.
/// return a fragment of the GUI tree from a specific constructor to recreate a fragment of the payload panel
Expand All @@ -236,21 +242,17 @@ public IList GetGUITreeNodes(ConstructorInfo obj, int nodeNestingLevel, string n
return null;// GUITreeNodes;
}


#pragma warning disable CS1572 // Комментарий XML имеет тег param для "guiTree", но параметр с таким именем отсутствует.
/// <summary>
/// Gets the GUI tree node.
/// return the GUI tree node with the parameters
/// </summary>
/// <param name="nodeName">Name of the node.</param>
/// <param name="nodeType">Type of the node (converted to Type).</param>
/// <param name="nodeDefValue">The node definition value.</param>
/// <param name="guiTree">The GUI tree.</param>
/// <param name="nodeNestingLevel">CCurrent nesting level of the node in the GUI tree.</param>
/// <param name="nodeParentName">Name of the node parent.</param>
/// <returns>System.Int32.</returns>
private int GetGUITreeNode(string nodeName, Type nodeType, object nodeDefValue, int nodeNestingLevel, string nodeParentName)
#pragma warning restore CS1572 // Комментарий XML имеет тег param для "guiTree", но параметр с таким именем отсутствует.
{
ValueNode dataNode = new ValueNode();// new GUITreeNode()
// DataNodeTree<DataNode> currentNode = rootNode;
Expand Down Expand Up @@ -450,6 +452,7 @@ public string GetInvokeMember(object initСtor, ConstructorInfo ctor, List<Invok
}
return payloadStr;
}

/// <summary>
/// Gets the invoke ctor.
/// </summary>
Expand Down

0 comments on commit a4425a7

Please sign in to comment.