树形视图控件对象的创建[需要紧急帮助] [英] Tree View Control Object Creation [ Urgent Help Needed ]

查看:84
本文介绍了树形视图控件对象的创建[需要紧急帮助]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的树形视图中,每个节点都在调用一个新表单.之后,当我离开该表单并返回时,将创建一个新对象,这会占用大量内存.
我想使用第一次单击节点时创建的对象

我关注的建筑是CSLA



我单击一个节点[Node A],然后调用新表单[form A],并创建一个对象[obj A].

当我单击下一个节点[节点B]时,将发生相同的过程.

但是一旦我回到[form A],就会创建一个新对象[obj A2].在这里我要使用[obj A]本身.

我该如何实现?

我是新秀.请帮忙.

In my tree view in each node am calling a new form . After that when I am navigating away from that form and come back a new object is created, that is consuming a lot of memory.
I want to use the object created when I first clicked the node

Architecture I am following is CSLA

Say

I click a Node [Node A] then new form gets invoked [form A] and also an object [obj A] created .

When I click the next node [Node B] the same process happens.

But once if I went back to [form A] a new object [obj A2]gets created . here I want use [obj A] itself.

How can I achieve this?

I am a rookie. Please Help.

推荐答案



请参考此链接.

如何仅打开类的一个实例不超过那个?
Hi,

Please refer this link.

how to open only one instance of class not more than that ?


这篇关于树形视图控件对象的创建[需要紧急帮助]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆