Beispiel #1
0
        /// <summary>
        /// 新增
        /// </summary>
        private void DoCreateBrands()
        {
            FrmContainerEdit frmcontainerEdit = new FrmContainerEdit();

            frmcontainerEdit.DataSourceChanged += OnCreateChanage;
            frmcontainerEdit.ShowDialog();
            LoadDataAndBindGrid();
        }
Beispiel #2
0
        /// <summary>
        /// 编辑
        /// </summary>
        private void ShowEditBrands()
        {
            ContainerEntity editEntity = SelectedBrandsRow;

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

            FrmContainerEdit frmcontainerEdit = new FrmContainerEdit(editEntity);

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