private void EditIntervention()
        {
            this.SelectedIntervention.NomMateriel = "Edited Name";

            //this.SelectedIntervention.Mode = emMode4.none;
            ServiceAgentI.Flush(this.Intervs, (error) => InterventionsFlushed(error));
        }
 private void DeleteIntervention()
 {
     if (SelectedIntervention != null)
     {
         //this.SelectedIntervention.Mode = emMode4.delete;
         ServiceAgentI.Flush(this.Intervs, (error) => InterventionsFlushed(error));
         ServiceAgentI.GetInterventions((intervlist, error) => InterventionLoaded(intervlist, error));
     }
 }
 private void AddIntervention()
 {
     IdClient    = this.SelectedClient.Id;
     NomClient   = this.SelectedClient.NomClient;
     IdMateriel  = this.SelectedMateriel.Idm;
     NomMateriel = this.SelectedMateriel.NomMateriel;
     IdSite      = this.SelectedSite.Id;
     NomSite     = this.selectedSite.NomSite;
     this.Intervs.Insert(0, new Interv {
         Dateplan = Dateplan.Value, NomMateriel = NomMateriel, Numero = Numero.Value, NomSite = NomSite, NomClient = NomClient, IdClient = IdClient, IdSite = IdSite, IdBatiment = IdBat, IdEtage = IdEt, IdSalle = IdSal, Mode = emMode4.add
     });
     ServiceAgentI.Flush(this.Intervs, (error) => InterventionsFlushed(error));
     ServiceAgentI.GetInterventions((intervs, error) => InterventionLoaded(intervs, error));
     ReinitField();
 }
 public void LoadInterventions()
 {
     ServiceAgentI.GetInterventions((intervs, error) => InterventionLoaded(intervs, error));
 }