Пример #1
0
 public void EditPlanItem(PlanItem planItem)
 {
     try
     {
         _planItemBo.EditPlanItem(planItem);
         Job = planItem;
         ShowInfo();
     }
     catch (Exception) { }
 }
Пример #2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            Job.Job = txbJob.Text;
            // Job.FromTime = new Point((int)nmFromHours.Value, (int)nmFromMinute.Value);
            // Job.ToTime = new Point((int)nmToHours.Value, (int)nmToMinute.Value);
            Job.Status = PlanItem.ListStatus[cbStatus.SelectedIndex];

            string username = context2.GetNameById(UserId);

            Client.Send(Serialize(string.Format("User,{0},{1},{2}", username, Job.Job, Job.Status)));
            context.EditPlanItem(Job);
        }