zoukankan      html  css  js  c++  java
  • devgridContral

      #region 加载gridControl布局项
            /// <summary>
            /// 加载gridControl布局项
            /// </summary>
            private void LoadLayoutFile()
            {
                string strLayOutFilePath = GdkyConstant.RootDirectory + "config\Layout\conInstLayout.xml";
                if (File.Exists(strLayOutFilePath))
                {
                    grdConData.ForceInitialize();
                    OptionsLayoutBase optionLayout = new OptionsLayoutBase();
                    grdConData.MainView.RestoreLayoutFromXml(strLayOutFilePath, optionLayout);
                }
            }

       #region 保存gridControl布局项
            /// <summary>
            /// 保存gridControl布局项
            /// </summary>
            private void SaveLayoutFile()
            {
                string strLayOutTmp = GdkyConstant.RootDirectory + "config\Layout";
                if (!Directory.Exists(strLayOutTmp))
                {
                    Directory.CreateDirectory(strLayOutTmp);
                }
                string strLayOutFilePath = string.Format("{0}\{1}.xml", strLayOutTmp, "conInstLayout");
                OptionsLayoutBase optionLayout = new OptionsLayoutBase();
                grdConData.MainView.SaveLayoutToXml(strLayOutFilePath, optionLayout);
            }
            #endregion

               

               /////----获取配置文件

               string strLayOutTmp =Environment.CurrentDirectory+ "config\Layout";
                if (!File.Exists(strLayOutTmp))
                {
                    Directory.CreateDirectory(strLayOutTmp);
                }
                string strLayOutFilePath = string.Format("{0}\{1}.xml", strLayOutTmp, "MsInstLayout");
            

                DataTable dt = new DataTable();
                dt = this.testDataSet1.Table_1;
                if (dt.Rows.Count > 0)
                {
                string xmlContent=dt.Rows[0][0].ToString();
                CreatXmlToSave(xmlContent, strLayOutFilePath);
                }

                ////---

  • 相关阅读:
    hdu2604 矩阵快速幂
    自己对有上下界的网络流的理解
    自己对有上下界的网络流的理解
    POJ 2396 构造矩阵(上下流)
    POJ 2396 构造矩阵(上下流)
    hdu4940 有上下界的无源可行流判断
    hdu4940 有上下界的无源可行流判断
    hdu4515 小模拟
    hdu4515 小模拟
    hdu4901 枚举状态(找集合对S(xor) ==T(and))
  • 原文地址:https://www.cnblogs.com/lvlaozf/p/8880446.html
Copyright © 2011-2022 走看看