예제 #1
0
 private void tileItem2_ItemClick(object sender, TileItemEventArgs e)
 {
     if (e.Item.Elements[1].Text == "默认设置")
     {
         System.Diagnostics.Process.Start("notepad.exe", Application.StartupPath + "\\" + "延迟线收发组件-十六通道测试软件.exe.config");
     }
     else
     {
         dockPanel_数据采集模块.Controls.Clear();
         //展示初始化窗体
         _DataModule.TopLevel        = false;
         _DataModule.Dock            = DockStyle.Fill;
         _DataModule.FormBorderStyle = FormBorderStyle.None;
         ControlContainer controlContainer = new ControlContainer();
         controlContainer.Controls.Add(_DataModule);
         dockPanel_数据采集模块.FloatVertical = true;
         dockPanel_数据采集模块.Controls.Add(controlContainer);
         _DataModule.Show();
         dockPanel_数据采集模块.Show();
     }
 }