Пример #1
0
        /// <summary>
        /// 新增
        /// </summary>
        private void DoCreateArea()
        {
            FrmOrgEdit frmEdit = new FrmOrgEdit();

            frmEdit.DataSourceChanged += OnCreateChanage;
            frmEdit.ShowDialog();
        }
Пример #2
0
        /// <summary>
        /// 编辑
        /// </summary>
        private void ShowEditRow()
        {
            OrgEntity editEntity = SelectedRow;

            if (editEntity == null)
            {
                MsgBox.Warn("请选中要修改的行。");
                return;
            }

            FrmOrgEdit frmEdit = new FrmOrgEdit(editEntity);

            frmEdit.DataSourceChanged += OnEditChanage;
            frmEdit.ShowDialog();
        }