12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- 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
- {
- /// <summary>
- /// SuspensionForm.xaml 的交互逻辑
- /// </summary>
- public partial class SuspensionForm : Window
- {
- /// <summary>
- /// 父级窗体
- /// </summary>
- public SeconToolLibraryPage SeconToolLibraryPage;
- /// <summary>
- /// 工具数据
- /// </summary>
- public List<ToolFunctionEntity> ToolFunctionEntities = new List<ToolFunctionEntity>();
- /// <summary>
- /// 工具栏悬浮窗
- /// </summary>
- /// <param name="toolFunctionEntities"></param>
- public SuspensionForm(SeconToolLibraryPage seconToolLibraryPage, List<ToolFunctionEntity> toolFunctionEntities)
- {
- InitializeComponent();
- SeconToolLibraryPage = seconToolLibraryPage;
- ToolFunctionEntities = toolFunctionEntities;
- }
- /// <summary>
- /// 窗体初始化
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void Window_Loaded(object sender, RoutedEventArgs e)
- {
- sv_legend.ItemsSource = null;
- sv_legend.ItemsSource = ToolFunctionEntities;
- }
- /// <summary>
- /// 点击事件
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void DockPanel_MouseDown(object sender, MouseButtonEventArgs e)
- {
- }
- /// <summary>
- /// 更新数据
- /// </summary>
- /// <param name="toolFunctionEntities"></param>
- public void SetToolEntity(List<ToolFunctionEntity> toolFunctionEntities)
- {
- sv_legend.ItemsSource = null;
- sv_legend.ItemsSource = toolFunctionEntities;
- }
- /// <summary>
- /// 窗体关闭事件
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void Window_Closed(object sender, EventArgs e)
- {
- SeconToolLibraryPage.BaseForm = null;
- }
- }
- }
|