예제 #1
0
        /// <summary>
        /// 添加显示项
        /// </summary>
        private void AppendItem()
        {
            ModelFieldAppendDialog ModelFieldAppendDialog = new ModelFieldAppendDialog(moduleID, null);

            if (DialogResult.OK == ModelFieldAppendDialog.ShowDialog())
            {
                if (ModelFieldAppendDialog.view != null)
                {
                    views.Add(ModelFieldAppendDialog.view);
                    LoadCustomView();
                }
            }
        }
예제 #2
0
        private void fpSpread1_CellDoubleClick(object sender, CellClickEventArgs e)
        {
            Row row = this.fpSpread1.ActiveSheet.ActiveRow;

            if (row.Tag != null)
            {
                JZCustomView view = row.Tag as JZCustomView;
                if (view != null)
                {
                    ModelFieldAppendDialog ModelFieldAppendDialog = new ModelFieldAppendDialog(moduleID, view);
                    if (DialogResult.OK == ModelFieldAppendDialog.ShowDialog())
                    {
                        LoadCustomView();
                    }
                }
            }
        }