| 123456789101112131415161718192021222324252627282930313233343536373839404142 | using OTS.WinFormsUI.Docking;using System;namespace SpectrumSTDEditor{    public partial class SubMidWindow : DockContent    {        public Form_Main m_MainForm = null;        public STDEditor m_STDEditor = null;        public ReferenceLibrary m_ComparativeLibrary = null;        public SubMidWindow(Form_Main mainForm)        {            InitializeComponent();            m_MainForm = mainForm;            m_STDEditor = new STDEditor(this, m_MainForm.STDDBAddress);            m_ComparativeLibrary = new ReferenceLibrary(this);        }        private void SubMidWindow_Load(object sender, EventArgs e)        {            m_MainForm.lan = new Language(this);            CreateSubMidWindow();        }        public void CreateSubMidWindow()        {            dockPanel1.DockTopPortion = 700;            dockPanel1.DockBottomPortion = 550;            m_STDEditor.DockAreas = DockAreas.DockTop;            m_STDEditor.Show(dockPanel1, DockState.DockTop);            m_ComparativeLibrary.DockAreas = DockAreas.DockBottom;            m_ComparativeLibrary.Show(dockPanel1, DockState.DockBottom);            m_STDEditor.AutoHidePortion = 0.75;            m_ComparativeLibrary.AutoHidePortion = 0.25;        }        public void SelSTDXray(int Key, STDdata sT)        {            m_STDEditor.ShowEditContent(Key.ToString());            m_STDEditor.SelSTDXray(Key, sT);        }    }}
 |