void m_genDataViewer_MyFormClosed(object sender, EventArgs e) { if (m_genDataViewer != null) { Program.MainForm.AppInfo.SetBoolean("detailform", "gen_auto_run", m_genDataViewer.AutoRun); { // 保存列宽度 string strWidths = DpTable.GetColumnWidthListString(m_genDataViewer.ActionTable); Program.MainForm.AppInfo.SetString( "gen_data_dlg", "column_width", strWidths); } Program.MainForm.AppInfo.UnlinkFormState(m_genDataViewer); // this.m_genDataViewer = null; CloseGenDataViewer(); } }
static string GetDpTableState(DpTable table) { return(table.GetType().ToString() + ":" + DpTable.GetColumnWidthListString(table)); }