Esempio n. 1
0
        /// <summary>
        /// 新增
        /// </summary>
        private void DoCreateWarehouse()
        {
            FrmWarehouseEdit frmWarehouseEdit = new FrmWarehouseEdit();

            frmWarehouseEdit.DataSourceChanged += OnCreateChanage;
            frmWarehouseEdit.ShowDialog();
        }
Esempio n. 2
0
        /// <summary>
        /// 编辑
        /// </summary>
        private void ShowEditWarehouse()
        {
            WarehouseEntity editEntity = SelectedWarehouseRow;

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

            FrmWarehouseEdit frmWarehouseEdit = new FrmWarehouseEdit(editEntity);

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