| | |
| | | using DevExpress.XtraEditors; |
| | | using DevExpress.XtraLayout; |
| | | using DevExpress.XtraPrinting.Export; |
| | | using DevExpress.XtraRichEdit.Model; |
| | | using Gs.DevApp.ToolBox; |
| | | using System; |
| | |
| | | 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 |
| | | { |
| | | private Gs.DevApp.ToolBox.DragResizeHelp _drapHelp; |
| | | |
| | | public XtraForm1() |
| | | { |
| | | InitializeComponent(); |
| | | |
| | | _drapHelp = new DragResizeHelp(this, splitContainerControl1.Panel1); |
| | | this.xtraTabControl1.CustomHeaderButtonClick += XtraTabControl1_CustomHeaderButtonClick; |
| | | |
| | | } |
| | | |
| | | private void XtraTabControl1_CustomHeaderButtonClick(object sender, DevExpress.XtraTab.ViewInfo.CustomHeaderButtonEventArgs e) |
| | | private void button1_Click(object sender, EventArgs e) |
| | | { |
| | | _drapHelp.Show(); |
| | | 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. |
| | | } |
| | | } |
| | | |
| | | |
| | | } |