This commit is contained in:
@@ -1158,10 +1158,10 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
TreeNode dragNode = (TreeNode)e.Item;
|
||||
Type t = dragNode.GetType();
|
||||
if(_MyLog.IsInfoEnabled)_MyLog.InfoFormat("Item Drag {0} - {1}", t.FullName, t.BaseType.FullName);
|
||||
//if(_MyLog.IsInfoEnabled)_MyLog.InfoFormat("Item Drag {0} - {1}", t.FullName, t.BaseType.FullName);
|
||||
Type t2 = Type.GetType(t.FullName);
|
||||
if(t2 != null)
|
||||
if(_MyLog.IsInfoEnabled)_MyLog.InfoFormat("Item Drag {0} - {1}", t2.FullName, t2.BaseType.FullName);
|
||||
//if(t2 != null)
|
||||
// if(_MyLog.IsInfoEnabled)_MyLog.InfoFormat("Item Drag {0} - {1}", t2.FullName, t2.BaseType.FullName);
|
||||
this.SelectedNode = dragNode;
|
||||
ItemInfo iidrag = ((VETreeNode)dragNode).VEObject as ItemInfo;
|
||||
FolderInfo fdrag = ((VETreeNode)dragNode).VEObject as FolderInfo;
|
||||
@@ -1236,10 +1236,10 @@ namespace Volian.Controls.Library
|
||||
_location = string.Format("Child {0} y={1}", _dropNode.Text, OffsetY);
|
||||
_position = DropPosition.Child;
|
||||
_index = 0;
|
||||
if (_dropNode.Parent == null)
|
||||
{
|
||||
if(_MyLog.IsInfoEnabled)_MyLog.Info("Root Node");
|
||||
}
|
||||
//if (_dropNode.Parent == null)
|
||||
//{
|
||||
// if(_MyLog.IsInfoEnabled)_MyLog.Info("Root Node");
|
||||
//}
|
||||
}
|
||||
else // Last Third - After Now I need to check the X value
|
||||
{
|
||||
@@ -1332,7 +1332,7 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
return;
|
||||
}
|
||||
if(_MyLog.IsInfoEnabled)_MyLog.InfoFormat("Line at {0} Node {1}[{2}] {3}", _location, _dropNode.Text, _index, _position.ToString());
|
||||
//if(_MyLog.IsInfoEnabled)_MyLog.InfoFormat("Line at {0} Node {1}[{2}] {3}", _location, _dropNode.Text, _index, _position.ToString());
|
||||
Color lc = (_position == DropPosition.After ? Color.Red : Color.Blue);
|
||||
Brush lb = (_position == DropPosition.After ? Brushes.Red : Brushes.Blue);
|
||||
Point[] RightTriangle;
|
||||
@@ -1366,7 +1366,7 @@ namespace Volian.Controls.Library
|
||||
// {
|
||||
if (ScrollTreeView(tmp) || !ScrollOnly)
|
||||
{
|
||||
if(_MyLog.IsInfoEnabled)_MyLog.InfoFormat("ShowLocation2 {0} {1}", e.Effect.ToString(), DateTime.Now.Millisecond);
|
||||
//if(_MyLog.IsInfoEnabled)_MyLog.InfoFormat("ShowLocation2 {0} {1}", e.Effect.ToString(), DateTime.Now.Millisecond);
|
||||
tv.Refresh();
|
||||
if (e.Effect != DragDropEffects.None)
|
||||
{
|
||||
@@ -1384,7 +1384,7 @@ namespace Volian.Controls.Library
|
||||
#endregion
|
||||
public void ShowLocation()
|
||||
{
|
||||
if(_MyLog.IsInfoEnabled)_MyLog.InfoFormat("{0}[{1}] {2}", _dropNode.Text, _index, _position.ToString());
|
||||
//if(_MyLog.IsInfoEnabled)_MyLog.InfoFormat("{0}[{1}] {2}", _dropNode.Text, _index, _position.ToString());
|
||||
}
|
||||
#region AutoScroll
|
||||
private bool ScrollTreeView(TreeNode tn)
|
||||
@@ -1607,28 +1607,28 @@ namespace Volian.Controls.Library
|
||||
if(_MyLog.IsErrorEnabled)_MyLog.Error("tv_DragDrop", ex);
|
||||
}
|
||||
}
|
||||
private void DumpMembers(object o)
|
||||
{
|
||||
Type t = o.GetType();
|
||||
if(_MyLog.IsInfoEnabled)_MyLog.InfoFormat("\r\n\r\nMembers for type {0}", t.ToString());
|
||||
MemberInfo[] mis = t.GetMembers();
|
||||
int i = 0;
|
||||
foreach (MemberInfo mi in mis)
|
||||
{
|
||||
i++;
|
||||
try
|
||||
{
|
||||
if(mi.MemberType != MemberTypes.Method)
|
||||
if(_MyLog.IsInfoEnabled)_MyLog.InfoFormat("{0} {1} {2}", i, mi.Name, mi.MemberType);
|
||||
// if (fi.Name == "TreeView")
|
||||
// fi.SetValue(o, null);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
if(_MyLog.IsErrorEnabled)_MyLog.Error("DumpMembers", ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
// private void DumpMembers(object o)
|
||||
// {
|
||||
// Type t = o.GetType();
|
||||
// //if(_MyLog.IsInfoEnabled)_MyLog.InfoFormat("\r\n\r\nMembers for type {0}", t.ToString());
|
||||
// MemberInfo[] mis = t.GetMembers();
|
||||
// int i = 0;
|
||||
// foreach (MemberInfo mi in mis)
|
||||
// {
|
||||
// i++;
|
||||
// try
|
||||
// {
|
||||
// //if(mi.MemberType != MemberTypes.Method)
|
||||
// //if(_MyLog.IsInfoEnabled)_MyLog.InfoFormat("{0} {1} {2}", i, mi.Name, mi.MemberType);
|
||||
//// if (fi.Name == "TreeView")
|
||||
//// fi.SetValue(o, null);
|
||||
// }
|
||||
// catch (Exception ex)
|
||||
// {
|
||||
// if(_MyLog.IsErrorEnabled)_MyLog.Error("DumpMembers", ex);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
private TreeNode Clone(TreeNode tn)
|
||||
{
|
||||
|
||||
|
Reference in New Issue
Block a user