本文整理汇总了C#中Globals.GetChildObjects方法的典型用法代码示例。如果您正苦于以下问题:C# Globals.GetChildObjects方法的具体用法?C# Globals.GetChildObjects怎么用?C# Globals.GetChildObjects使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Globals
的用法示例。
在下文中一共展示了Globals.GetChildObjects方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: timer_Tick
private void timer_Tick(object sender, EventArgs e)
{
SLWCFRIAClient client = ServerManager.GetPox();
//bool registerResult = WebRequest.RegisterPrefix("http://", WebRequestCreator.ClientHttp);
//bool httpsResult = WebRequest.RegisterPrefix("https://", WebRequestCreator.ClientHttp);
//调用GetData方法并加载事件
client.GetDataAsync(a);
client.GetDataCompleted += new EventHandler<GetDataCompletedEventArgs>(client_GetDataCompleted);
Globals VTHelper = new Globals();
List<TextBox> textblock = VTHelper.GetChildObjects<TextBox>(this.LayoutRoot, "");
}
示例2: MainPage
public MainPage()
{
InitializeComponent();
SLWCFRIAClient client = ServerManager.GetPox();
//bool registerResult = WebRequest.RegisterPrefix("http://", WebRequestCreator.ClientHttp);
//bool httpsResult = WebRequest.RegisterPrefix("https://", WebRequestCreator.ClientHttp);
//调用GetData方法并加载事件
client.GetDataAsync(a);
client.GetDataCompleted += new EventHandler<GetDataCompletedEventArgs>(client_GetDataCompleted);
Globals VTHelper = new Globals();
List<TextBox> textblock = VTHelper.GetChildObjects<TextBox>(this.LayoutRoot, "");
_MessageControler = new System.Windows.Threading.DispatcherTimer();
_MessageControler.Interval = new TimeSpan(0, 0, 20);
_MessageControler.Tick += new EventHandler(timer_Tick);
_MessageControler.Start();
}