예제 #1
0
        protected override void ShowItemInGridViewRow(DataGridViewRow row, object item)
        {
            PriceTerm ct = item as PriceTerm;

            row.Cells["colName"].Value = ct.Name;
            row.Cells["colMemo"].Value = ct.Memo;
        }
        protected override void ItemShowing()
        {
            PriceTerm ct = UpdatingItem as PriceTerm;

            txtName.Text = ct.Name;
            txtMemo.Text = ct.Memo;
        }
        protected override Object GetItemFromInput()
        {
            PriceTerm ct = UpdatingItem as PriceTerm;

            if (IsAdding)
            {
                ct    = new PriceTerm();
                ct.ID = txtName.Text;
            }
            ct.Name = txtName.Text;
            ct.Memo = txtMemo.Text;
            return(ct);
        }