Exemplo n.º 1
0
        /// <summary>
        /// コンストラクタ
        /// </summary>
        /// <param name="ccu"></param>
        /// <param name="grid"></param>
        public BaseColConfDialog(MultiLangUtil mlu, ColumnConfigUtil ccu, FlexGridEx grid)
        {
            MultiLangUtil = mlu;
            ColConfUtil   = ccu;
            Grid          = grid;

            _viZeroToIntMax.UseMinValue = true;
            _viZeroToIntMax.UseMaxValue = true;

            InitializeComponent();
        }
Exemplo n.º 2
0
        /// <summary>
        /// 列状態を保存
        /// </summary>
        public void Save(FlexGridEx grid)
        {
            //グリッドの状態を設定
            foreach (Column c in grid.Cols)
            {
                ColumnInfo ci = _dicByName[c.Name];
                ci.Visible = c.Visible;
                ci.Width   = c.WidthDisplay;
            }

            //XMLファイルに保存
            XmlSerializer serializer = new XmlSerializer(typeof(ColumnConfig));

            //書き込むファイルを開く(UTF-8 BOM無し)
            using (StreamWriter sw = new StreamWriter(@".\ColumnConfigXML\" + WindowName + "_" + GridName + ".xml", false, new UTF8Encoding(false))) {
                //シリアル化し、XMLファイルに保存する
                serializer.Serialize(sw, ColConf);
            }
        }
Exemplo n.º 3
0
 /// <summary>
 /// フィルタ設定
 /// </summary>
 /// <param name="condition"></param>
 /// <param name="msg"></param>
 public void SetGridFilter(Cursor cur, FlexGridEx grid, string condition, string msg)
 {
     SetGridFilter(cur, (C1FlexGrid)grid, condition, msg);
 }