Exemplo n.º 1
0
        public static TreeNode UObjectTotreeNode(UObject obj)
        {
            TreeNode node = new TreeNode();
            node.Name = obj.Object_ID.ToString();

            string Type = ORM.DB_University.GetClassById(obj.Object_ID);
            node.Text = Type + ": " + obj.Name;

            int iconIndex = IconsLoader.GetIconImalistIndex(Type);
            node.ImageIndex = iconIndex;
            node.SelectedImageIndex = iconIndex;

            if (Type == "Link")
            {
                node.Tag = new KeyValuePair<string, int>((obj as Link).ConnectionString, (obj as Link).OtherDbObject_ID);
            }
            return node;
        }
Exemplo n.º 2
0
 public UObjectForm()
 {
     FormObject = new UObject();
     InitializeComponent();
 }