Exemplo n.º 1
0
 private void JobListBindingSource_ListChanged(object sender, ListChangedEventArgs e)
 {
     if (e.ListChangedType == ListChangedType.ItemChanged)
     {
         var currentJob = (Job_List)jobListBindingSource[e.NewIndex];
         NavService.JobListPortClient().Update(ref currentJob);
         jobListBindingSource[e.NewIndex] = currentJob;
     }
 }
Exemplo n.º 2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            var jobs = NavService.JobListPortClient().ReadMultiple(null, null, 0);

            foreach (var job in jobs)
            {
                jobListBindingSource.Add(job);
            }
        }