Exemplo n.º 1
0
        private void SendAllItem_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (trackList == null || trackList.Count == 0)
            {
                return;
            }
            DbModel.Location.Work.InspectionTrackList TrackList2 = new DbModel.Location.Work.InspectionTrackList();
            TrackList2.ReviseTrack = trackList;

            InspectionTrackHub.SendInspectionTracks(TrackList2.ToTModel());//发送给客户端
        }
Exemplo n.º 2
0
        private void SendAddByItem_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            DbModel.Location.Work.InspectionTrack it = SendAddByItem.SelectedItem as DbModel.Location.Work.InspectionTrack;
            if (it == null)
            {
                return;
            }
            DbModel.Location.Work.InspectionTrackList TrackList2 = new DbModel.Location.Work.InspectionTrackList();
            TrackList2.AddTrack.Add(it);

            InspectionTrackHub.SendInspectionTracks(TrackList2.ToTModel());//发送给客户端
        }