Example #1
0
        /// <summary>
        /// 新增
        /// </summary>
        private void DoCreateSupplier()
        {
            FrmSupplierEdit frmSupplierEdit = new FrmSupplierEdit();

            frmSupplierEdit.DataSourceChanged += OnCreateChanage;
            frmSupplierEdit.ShowDialog();
        }
Example #2
0
        /// <summary>
        /// 编辑
        /// </summary>
        private void ShowEditSupplier()
        {
            SupplierEntity editEntity = SelectedSupplierRow;

            if (editEntity == null)
            {
                MsgBox.Warn("没有要修改的数据。");
                return;
            }

            FrmSupplierEdit frmSupplierEdit = new FrmSupplierEdit(editEntity);

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