private void do显示对象_Click(object sender, EventArgs e) { var __tv = out对象菜单.SourceControl as TreeView; var __node = __tv.GetNodeAt(_鼠标位置); if (__node == null || __node.Tag == null) { return; } var __绑定 = __node.Tag as Tuple <string, M方法>; if (__绑定 == null) { return; } var __对象窗口 = new F对象窗口(__绑定.Item1, _当前设备.访问入口.查询对象明细(__绑定.Item1), _当前设备.访问入口, _当前设备.视图); __对象窗口.StartPosition = FormStartPosition.CenterParent; __对象窗口.Text = __绑定.Item1; __对象窗口.ShowDialog(); }
private void do显示对象_Click(object sender, EventArgs e) { var __tv = out对象菜单.SourceControl as TreeView; var __node = __tv.GetNodeAt(_鼠标位置); if (__node == null || __node.Tag == null) { return; } var __绑定 = __node.Tag as Tuple<string, M方法>; if (__绑定 == null) { return; } var __对象窗口 = new F对象窗口(__绑定.Item1, _当前设备.访问入口.查询对象明细(__绑定.Item1), _当前设备.访问入口, _当前设备.视图); __对象窗口.StartPosition = FormStartPosition.CenterParent; __对象窗口.Text = __绑定.Item1; __对象窗口.ShowDialog(); }