Ejemplo n.º 1
0
        public virtual void LoadState(String header, TConfig state)
        {
            int    nCols;
            int    i;
            int    w;
            String buff;

            if (!state.FindSection(header))
            {
                return;
            }
            state.GetInt(wxPorting.T("nCols"), out nCols);
            for (i = 0; i < nCols; ++i)
            {
                buff = String.Format(wxPorting.T("width%d"), i);
                if (state.GetInt(buff, out w))
                {
                    SetColumnWidth(i, w);
                }
            }
        }