コード例 #1
0
        public DialogResult ShowPreImportDialogs()
        {
            if (BeginWork != null)
            {
                BeginWork(this, new EventArgs());
            }

            DialogResult result;

            using (var dlg = new GlobalSatGH615MTrackSelector {
                DeviceReader = _gsGH615MReader
            })
            {
                result = dlg.ShowDialog();
                if (result == DialogResult.OK)
                {
                    _trackToImport = dlg.SelectedTrack;
                }
                dlg.Dispose();
            }

            if (EndWork != null)
            {
                EndWork(this, new EventArgs());
            }

            return(result);
        }
コード例 #2
0
        public DialogResult ShowPreImportDialogs()
        {
            if (BeginWork != null) BeginWork(this, new EventArgs());

            DialogResult result;

            using (var dlg = new GlobalSatGH615MTrackSelector { DeviceReader = _gsGH615MReader })
            {
                result = dlg.ShowDialog();
                if (result == DialogResult.OK)
                {
                    _trackToImport = dlg.SelectedTrack;
                }
                dlg.Dispose();
            }

            if (EndWork != null) EndWork(this, new EventArgs());

            return result;
        }
コード例 #3
0
ファイル: GH615M.cs プロジェクト: romanbdev/quickroute-gps
 public GH615MTrack(IGH615MTrackInfo info, IGH615MTrackPoint[] points)
 {
     _info = info;
     _points = points;
 }
コード例 #4
0
 public ReadTrackWorker(GlobalSatGH615MReader reader, IGH615MTrackInfo info)
 {
     _reader = reader;
     _info = info;
 }
コード例 #5
0
 public void StartReadTrackThread(IGH615MTrackInfo info)
 {
     var worker = new ReadTrackWorker(this, info);
     StartReadThread(worker.ReadTrack);
 }
コード例 #6
0
 public IGH615MTrack[] GetTracks(IGH615MTrackInfo[] infos)
 {
     var ids = new Int16[infos.Length];
     for (Int16 i = 0; i < infos.Length; i++)
     {
         ids[i] = infos[i].Id;
     }
     return GetTracks(ids);
 }
コード例 #7
0
 public IGH615MTrack GetTrack(IGH615MTrackInfo info)
 {
     return GetTrack(info.Id);
 }
コード例 #8
0
 public IGH615MTrack GetTrack(IGH615MTrackInfo info)
 {
     return(GetTrack(info.Id));
 }
コード例 #9
0
 public ReadTrackWorker(GlobalSatGH615MReader reader, IGH615MTrackInfo info)
 {
     _reader = reader;
     _info   = info;
 }
コード例 #10
0
        public void StartReadTrackThread(IGH615MTrackInfo info)
        {
            var worker = new ReadTrackWorker(this, info);

            StartReadThread(worker.ReadTrack);
        }
コード例 #11
0
 public GH615MTrack(IGH615MTrackInfo info, IGH615MTrackPoint[] points)
 {
     _info   = info;
     _points = points;
 }