protected override void PushFormData() { ClsServiceActivity lcActivity = (ClsServiceActivity)_LcActivity; lcActivity.ServiceBrief = richTextBoxServiceBrief.Text; lcActivity.ActivityCost = numericUpDownCharge.Value; base.PushFormData(); }
protected override void UpdateFormData() { base.UpdateFormData(); ClsServiceActivity lcActivity = (ClsServiceActivity)_LcActivity; if (string.IsNullOrWhiteSpace(lcActivity.ActivityName)) { richTextBoxServiceBrief.Text = string.Empty; } else { richTextBoxServiceBrief.Text = lcActivity.ServiceBrief; } numericUpDownCharge.Value = Convert.ToDecimal(_LcActivity.ActivityCost); }