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); }
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; }
public GH615MTrack(IGH615MTrackInfo info, IGH615MTrackPoint[] points) { _info = info; _points = points; }
public ReadTrackWorker(GlobalSatGH615MReader reader, IGH615MTrackInfo info) { _reader = reader; _info = info; }
public void StartReadTrackThread(IGH615MTrackInfo info) { var worker = new ReadTrackWorker(this, info); StartReadThread(worker.ReadTrack); }
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); }
public IGH615MTrack GetTrack(IGH615MTrackInfo info) { return GetTrack(info.Id); }
public IGH615MTrack GetTrack(IGH615MTrackInfo info) { return(GetTrack(info.Id)); }
public ReadTrackWorker(GlobalSatGH615MReader reader, IGH615MTrackInfo info) { _reader = reader; _info = info; }
public void StartReadTrackThread(IGH615MTrackInfo info) { var worker = new ReadTrackWorker(this, info); StartReadThread(worker.ReadTrack); }
public GH615MTrack(IGH615MTrackInfo info, IGH615MTrackPoint[] points) { _info = info; _points = points; }