Ejemplo n.º 1
0
        private void fpSpread1_CellDoubleClick(object sender, CellClickEventArgs e)
        {
            QualifySetting item = null;

            if (module != null)
            {
                if (module.QualifySettings != null)
                {
                    foreach (QualifySetting ms in module.QualifySettings)
                    {
                        if (ms.CellName == this.fpSpread1.ActiveSheet.Cells[e.Row, 0].Value.ToString())
                        {
                            item = ms;
                        }
                    }
                }
            }
            CellSelector cs = new CellSelector(moduleID, "", Guid.Empty);

            if (cs.ShowDialog() == DialogResult.OK)
            {
                item.CellName = cs.CellName;
                item.SheetID  = cs.SheetID;
                BindQualifySetting();
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 添加显示项
        /// </summary>
        private void AppendItem()
        {
            CellSelector cs = new CellSelector(moduleID, "", Guid.Empty);

            if (cs.ShowDialog() == DialogResult.OK)
            {
                QualifySetting qs = new QualifySetting();
                qs.CellName = cs.CellName;
                qs.SheetID  = cs.SheetID;
                if (module.QualifySettings == null)
                {
                    module.QualifySettings = new List <QualifySetting>();
                }
                module.QualifySettings.Add(qs);
                BindQualifySetting();
            }
        }