C# 获取父控件容器的属性
1 BindingNavigator bindingNavigator = (sender as ToolStripButton).GetCurrentParent() as BindingNavigator; 2 ((sender as ToolStripButton).GetCurrentParent() as BindingNavigator).BindingSource 3