示例#1
0
        public override int Add()
        {
            FormShippingRecordsedit form = new FormShippingRecordsedit("新增数据", null);

            form.ShowInTaskbar = false;
            form.RefreshEvent += form_RefreshEvent;
            form.ShowDialog();
            return(0);
        }
示例#2
0
        public override int Modify()
        {
            if (dataGridView1.CurrentCell == null)
            {
                MessageBox.Show("请选择要编辑的行");
                return(0);
            }
            FishEntity.ShippingRecordsEntity entity = dataGridView1.CurrentRow.DataBoundItem as FishEntity.ShippingRecordsEntity;
            if (entity == null)
            {
                MessageBox.Show("请选择需要编辑的行");
                return(0);
            }

            FormShippingRecordsedit inven = new FormShippingRecordsedit("编辑数据", entity);

            inven.RefreshEvent += form_RefreshEvent;
            inven.ShowDialog();

            return(0);
        }