Esempio n. 1
0
        private void btnOk_Click(object sender, EventArgs e)
        {
            Item = bindTool.DataObject;
            if (Id == 0)
            {
                Item.CreatedDate = DateTime.Now;
                Item.CreatedBy   = StaticData.CurrentUserId;
            }
            Operation <Item> operation = OperationHandler.PostItem(Item);

            if (operation.Successful)
            {
                this.Close();
            }
            lblError.Text = operation.Fail;
        }