private void ABM(IntelliTrack.Client.Application.CRUD.ABM type, IntelliTrack.Client.Application.CRUD.CRUDDataSet.CATEGORIASRow row) { IntelliTrack.Client.Application.CRUD.dlgABMCategoria dlg = new IntelliTrack.Client.Application.CRUD.dlgABMCategoria(type, row); if (dlg.ShowDialog() == DialogResult.OK) { IntelliTrack.Client.Application.CRUD.CRUDDataSetTableAdapters.CATEGORIASTableAdapter da = new IntelliTrack.Client.Application.CRUD.CRUDDataSetTableAdapters.CATEGORIASTableAdapter(); //da.Update(ds); switch (type) { case IntelliTrack.Client.Application.CRUD.ABM.ALTA: ds.CATEGORIAS.AddCATEGORIASRow(row); da.Update(row); break; case IntelliTrack.Client.Application.CRUD.ABM.MODIFICACION: da.Update(row); break; case IntelliTrack.Client.Application.CRUD.ABM.BAJA: { da.Delete(row.CAT_ID); row.Delete(); //ds.CATEGORIAS.RemoveCATEGORIASRow(row); } break; default: break; } try { //IntelliTrack.Client.Application.CRUD.CRUDDataSetTableAdapters.CATEGORIASTableAdapter da = new IntelliTrack.Client.Application.CRUD.CRUDDataSetTableAdapters.CATEGORIASTableAdapter(); //da.Update(ds); //da.Delete( ds.AcceptChanges(); this.cATEGORIASTableAdapter.Fill(this.cRUDDataSet.CATEGORIAS); dataGridView1.Refresh(); } catch (Exception ex) { System.Diagnostics.Debug.WriteLine(ex.Message); } } }
private void FireQueryStatus(IntelliTrack.Client.Application.Dataset.DataRetriever.QUERYSTATUS CurrentStatus) { if (OnQueryStatus != null) OnQueryStatus(CurrentStatus); }
public dlgABMCategoria(IntelliTrack.Client.Application.CRUD.ABM ABMType, IntelliTrack.Client.Application.CRUD.CRUDDataSet.CATEGORIASRow row) : base(ABMType, row) { InitializeComponent(); groupBox1.Enabled = false; }
public dlgABMTransponder(IntelliTrack.Client.Application.CRUD.ABM ABMType, IntelliTrack.Client.Application.CRUD.CRUDDataSet.TRANSPONDERSRow row) : base(ABMType, row) { InitializeComponent(); groupBox1.Enabled = false; }
private void HistoricDataHandler_OnQueryStatus(IntelliTrack.Client.Application.Dataset.DataRetriever.QUERYSTATUS CurrentStatus) { if (OnHistoryQueryStatus != null) OnHistoryQueryStatus(CurrentStatus); }
public void SetHistoricDataHandlerRawDataForm(IntelliTrack.Client.Application.frmRawData rawdataform) { HistoricDataHandler.RawDataForm = rawdataform; }
public void SetHistoricDataHandlerReporteRegadoresForm(IntelliTrack.Client.Application.ReportForm rpt) { HistoricDataHandler.ReporteRegadores = rpt; }
private string Status2String(IntelliTrack.Client.Application.Dataset.DataRetriever.QUERYSTATUS Status) { string s = ""; switch (Status) { case IntelliTrack.Client.Application.Dataset.DataRetriever.QUERYSTATUS.QUERYING: s = "Consultando"; break; case IntelliTrack.Client.Application.Dataset.DataRetriever.QUERYSTATUS.RUNNING: s = "Reproduciendo"; break; case IntelliTrack.Client.Application.Dataset.DataRetriever.QUERYSTATUS.STOPPED: s = "Detenido"; break; default: s = ""; break; } return s; }
private void OnHistoryQueryStatus(IntelliTrack.Client.Application.Dataset.DataRetriever.QUERYSTATUS CurrentStatus) { udRegistrosPorSegundo.Value = 1000 / Singleton<ComplexMap>.Instance.GetMuestrasPorSegundo(); QueryStatus = CurrentStatus; lblEstado.Text = Status2String(CurrentStatus); if (CurrentStatus == IntelliTrack.Client.Application.Dataset.DataRetriever.QUERYSTATUS.RUNNING) trackPosicion.SetRange(0, Singleton<ComplexMap>.Instance.GetHistoryRecordCount()); }