From cd5483b6c38111f9b45cd39b8201cc1ceb847e48 Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期三, 05 三月 2025 09:22:44 +0800
Subject: [PATCH] 委外退料版面

---
 DevApp/Gs.DevApp/DevFrm/XtraForm1.cs |   29 ++++++++++++++++++++++++++++-
 1 files changed, 28 insertions(+), 1 deletions(-)

diff --git a/DevApp/Gs.DevApp/DevFrm/XtraForm1.cs b/DevApp/Gs.DevApp/DevFrm/XtraForm1.cs
index 0ecbda3..6458e38 100644
--- a/DevApp/Gs.DevApp/DevFrm/XtraForm1.cs
+++ b/DevApp/Gs.DevApp/DevFrm/XtraForm1.cs
@@ -1,23 +1,50 @@
 锘縰sing DevExpress.XtraEditors;
+using DevExpress.XtraLayout;
+using DevExpress.XtraPrinting.Export;
+using DevExpress.XtraRichEdit.Model;
+using Gs.DevApp.ToolBox;
 using System;
 using System.Collections.Generic;
 using System.ComponentModel;
 using System.Data;
 using System.Drawing;
+using System.IO;
 using System.Linq;
 using System.Text;
 using System.Threading.Tasks;
 using System.Windows.Forms;
+using System.Xml.Serialization;
+
 
 namespace Gs.DevApp.DevFrm
 {
     public partial class XtraForm1 : DevExpress.XtraEditors.XtraForm
     {
+        
         public XtraForm1()
         {
             InitializeComponent();
-            Gs.DevApp.ToolBox.DragResizeHelp.RegisterControl(this, panLayHead, label1);
+            
+        }
+
+        private void button1_Click(object sender, EventArgs e)
+        {
+            string ddddd = GetLayoutControlXml(layoutControl1);
 
         }
+
+        public string GetLayoutControlXml(LayoutControl layoutControl)
+        {
+            string dddd = "";
+            layoutControl.SaveLayoutToXml(dddd);
+           // layoutControl.SaveLayoutToStream(dddd);
+            layoutControl1.RestoreLayoutFromXml("layout.xml");
+            return dddd;
+
+           // gcMain.MainView.RestoreLayoutFromXml(fileName);
+         //  splitContainerControl1.
+        }
     }
+
+   
 }
\ No newline at end of file

--
Gitblit v1.9.3