using CollaborativePlatformMain.DFEntity.MessageSubUtil; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Shapes; namespace CollaborativePlatformMain.Form.MessageSubPage { /// /// SuspensionForm.xaml 的交互逻辑 /// public partial class SuspensionForm : Window { /// /// 父级窗体 /// public SeconToolLibraryPage SeconToolLibraryPage; /// /// 工具数据 /// public List ToolFunctionEntities = new List(); /// /// 工具栏悬浮窗 /// /// public SuspensionForm(SeconToolLibraryPage seconToolLibraryPage, List toolFunctionEntities) { InitializeComponent(); SeconToolLibraryPage = seconToolLibraryPage; ToolFunctionEntities = toolFunctionEntities; } /// /// 窗体初始化 /// /// /// private void Window_Loaded(object sender, RoutedEventArgs e) { sv_legend.ItemsSource = null; sv_legend.ItemsSource = ToolFunctionEntities; } /// /// 点击事件 /// /// /// private void DockPanel_MouseDown(object sender, MouseButtonEventArgs e) { } /// /// 更新数据 /// /// public void SetToolEntity(List toolFunctionEntities) { sv_legend.ItemsSource = null; sv_legend.ItemsSource = toolFunctionEntities; } /// /// 窗体关闭事件 /// /// /// private void Window_Closed(object sender, EventArgs e) { SeconToolLibraryPage.BaseForm = null; } } }