本文介绍了儿童父母问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好...
我需要MDI父母的帮助.
我可以有一个父母和5个mdi子女吗?
我知道如何从mdichild访问父级.
但是我可以从父级访问子级中的控件吗?
thx All.

Hi All...
I need some help in mdi parents .
will i have a parent and 5 mdi childs.
i know how to access the parent from mdichild.
but can i access the controls in child from parent and how ??
thx All.

推荐答案



public bool HasTakenWarranty
{
  get { return chkWarranty.Checked; }
  set { chkWarranty.Checked = value; }
}

如您所见,您已经包装了对选中状态的访问权限,因此您不必提供对所有属性的公共访问权限控制.这也意味着您可以提供一种属性/方法,该属性/方法一次可以作用于多个控件.

As you can see from this, you have wrapped up the access to the checked state so that you don''t have to provide public access to all the properties on the control. This also means that you can provide one property/method that acts on more than control at a time.


这篇关于儿童父母问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-31 02:55