如何在Windows应用程序c#中将Collection值从一个表单传递到另一个表单? [英] How to pass Collection values from one form to another form in windows application c#?

查看:79
本文介绍了如何在Windows应用程序c#中将Collection值从一个表单传递到另一个表单?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Windows应用程序中将集合值从一个表单传递到另一个表单c#?



public TemplateForm(object collChecked)

{

}



i像这样通过。但我想数我的收藏



ex:

If(collChecked.Count> 0)//我想要这个条件做

{



}

How to pass Collection values from one form to another form in windows application c#?

public TemplateForm(object collChecked)
{
}

i passed like this. but i want to count my Collection

ex:
If(collChecked.Count > 0) // i want this condition to do
{

}

推荐答案

问题原来是非常受欢迎,我以前的答案往往不太清楚,可能还不够清楚,我决定写一篇提示/技巧文章,详细的代码示例和解释:一次回答的许多问题 - Windows窗体或WPF Windows之间的协作



-SA
As the question turned out to be very popular, and my previous answers often were not well understood, probably were not clear enough, I decided to write a Tips/Trick article complete with detailed code samples and explanations: Many Questions Answered at Once — Collaboration between Windows Forms or WPF Windows.

—SA


这篇关于如何在Windows应用程序c#中将Collection值从一个表单传递到另一个表单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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