diff --git a/插件库/Lskj.PubApiSetModule/FrmMain.cs b/插件库/Lskj.PubApiSetModule/FrmMain.cs index e44771e..c6fe370 100644 --- a/插件库/Lskj.PubApiSetModule/FrmMain.cs +++ b/插件库/Lskj.PubApiSetModule/FrmMain.cs @@ -997,4 +997,36 @@ namespace Lskj.PubApiSetModule splitControlSend.SplitterPosition = Convert.ToInt32(splitControlSendWidth); } string splitControlGetWidth = IniHelper.Read("PubApiSetModule_SplitControlGetWidth");//通过Key获取Value值 - if (!string.IsNullOrEmpty(splitControlGe \ No newline at end of file + if (!string.IsNullOrEmpty(splitControlGetWidth)) + { + splitControlGet.SplitterPosition = Convert.ToInt32(splitControlGetWidth); + } + } + catch (Exception) + { + } + } + /// + /// 分隔位置改变时 + /// + /// + /// + private void OnSplitContainerPositionChanged(object sender, EventArgs e) + { + try + { + if (sender == splitControlSend) + { + IniHelper.Write("PubApiSetModule_SplitControlSendWidth", splitControlSend.SplitterPosition + ""); + } + if (sender == splitControlGet) + { + IniHelper.Write("PubApiSetModule_SplitControlGetWidth", splitControlGet.SplitterPosition + ""); + } + } + catch (Exception) + { + } + } + } +}