Exemplo n.º 1
0
 /// <summary>
 /// Method used to create an observation based on a list of inputs (Class Input) coming from ui each having A String Key and a value which is an object(depends on the type of the input)
 /// </summary>
 private void BuildObservation()
 {
     observation = new Observation();
     foreach (var input in inputs)
     {
         if (input is Wilaya)
         {
             observation.Wilaya = input as Wilaya;
         }
         else if (input is Parameter)
         {
             observation.AddParameter((Parameter)input);
         }
         else
         {
             /// TODO : implement other keys Code
         }
     }
 }