Ejemplo n.º 1
0
    void Client_GetTimeCompleted(object sender, HydroNumerics.Time.Web.TimeSeriesService.GetTimeCompletedEventArgs e)
    {
      TheChart.DataContext = e.Result.First();
      TheGrid.DataContext = e.Result.First().items;

      foreach (var v in e.Result)
      {
        Pushpin p = new Pushpin();
        p.Location = new Location(v.Geometry.X, v.Geometry.Y);
        p.Tag = v;
        p.MouseLeftButtonUp += new MouseButtonEventHandler(p_MouseLeftButtonUp);
        TheMap.Children.Add(p);

        }
    }
 partial void DeleteCODE(HydroNumerics.JupiterTools.Linq2Sql.CODE instance);
 partial void InsertCODE(HydroNumerics.JupiterTools.Linq2Sql.CODE instance);
 partial void UpdateCASING(HydroNumerics.JupiterTools.Linq2Sql.CASING instance);
Ejemplo n.º 5
0
 public override void ConvertUnit(HydroNumerics.Core.Unit newUnit)
 {
   foreach (TimespanValue timespanValue in items)
   {
     timespanValue.Value = this.unit.FromThisUnitToUnit(timespanValue.Value, newUnit);
   }
   this.unit = new Unit(newUnit);
 }
 partial void DeleteCASING1(HydroNumerics.JupiterTools.Linq2Sql.CASING1 instance);
 partial void DeleteLITHSAMP(HydroNumerics.JupiterTools.Linq2Sql.LITHSAMP instance);
 partial void InsertINTAKE(HydroNumerics.JupiterTools.Linq2Sql.INTAKE instance);
 partial void DeleteINTAKE(HydroNumerics.JupiterTools.Linq2Sql.INTAKE instance);
 partial void DeleteGRWCHEMANALYSI(HydroNumerics.JupiterTools.Linq2Sql.GRWCHEMANALYSI instance);
 partial void DeleteGRWCHEMSAMPLE(HydroNumerics.JupiterTools.Linq2Sql.GRWCHEMSAMPLE instance);
 partial void UpdateDRWCHEMSAMPLE(HydroNumerics.JupiterTools.Linq2Sql.DRWCHEMSAMPLE instance);
 partial void UpdateDRWCHEMANALYSI(HydroNumerics.JupiterTools.Linq2Sql.DRWCHEMANALYSI instance);
 partial void DeleteCOMPOUNDLIST(HydroNumerics.JupiterTools.Linq2Sql.COMPOUNDLIST instance);
 partial void DeleteDRWPLANT(HydroNumerics.JupiterTools.Linq2Sql.DRWPLANT instance);
 partial void InsertSCREEN(HydroNumerics.JupiterTools.Linq2Sql.SCREEN instance);
 partial void InsertCASING1(HydroNumerics.JupiterTools.Linq2Sql.CASING1 instance);
 partial void DeleteSCREEN(HydroNumerics.JupiterTools.Linq2Sql.SCREEN instance);
 partial void DeleteWRRCATCHMENT(HydroNumerics.JupiterTools.Linq2Sql.WRRCATCHMENT instance);
 partial void InsertWATLEVEL(HydroNumerics.JupiterTools.Linq2Sql.WATLEVEL instance);
Ejemplo n.º 21
0
		/// <summary>
		/// Invokes <see cref="ILinkableComponent.GetValues">ILinkableComponent.GetValues</see>
		/// method on model linked to this trigger, if any.
		/// </summary>
		/// <param name="runToTime">Time for <see cref="ILinkableComponent.GetValues">ILinkableComponent.GetValues</see> call.</param>
		public void Run(HydroNumerics.OpenMI.Sdk.Backbone.TimeStamp runToTime)
		{
			if( _link!=null )
			{
				_earliestInputTime = runToTime;
				_link.SourceComponent.GetValues(runToTime,_link.ID);
			}
		}
 partial void DeleteWATLEVEL(HydroNumerics.JupiterTools.Linq2Sql.WATLEVEL instance);
Ejemplo n.º 23
0
 void Client_GetTimeStampSeriesCompleted(object sender, HydroNumerics.Time.Web.TimeSeriesService.GetTimeStampSeriesCompletedEventArgs e)
 {
   TheChart.DataContext = e.Result;
   TheGrid.DataContext = e.Result.items;
  
 }
 partial void UpdateDRWPLANTINTAKE(HydroNumerics.JupiterTools.Linq2Sql.DRWPLANTINTAKE instance);
Ejemplo n.º 25
0
    private Dictionary<int, TimeStampSeries> GetValuesFromGrid(HydroNumerics.MikeSheTools.DFS.DFS2 precip, List<Catchment> CatcmentsToTest, bool Accumulate, DateTime Start, DateTime End)
    {
      var polygons = XYPolygon.GetPolygons(precip);

      List<Tuple<int, int, int, TimeStampSeries>> p = new List<Tuple<int, int, int, TimeStampSeries>>();

      var precipdata = precip.GetData(0, 1);
      HydroNumerics.MikeSheTools.DFS.DFS2.MaxEntriesInBuffer = 1;


      for (int i = 0; i < precip.NumberOfColumns; i++)
        for (int j = 0; j < precip.NumberOfRows; j++)
        {
          for (int k = CatcmentsToTest.Count - 1; k >= 0; k--)
          {
            if (CatcmentsToTest[k].Geometry.OverLaps(polygons[i, j]) & precipdata[j, i] != precip.DeleteValue)
            {
              p.Add(new Tuple<int, int, int, TimeStampSeries>(CatcmentsToTest[k].ID, i, j, new TimeStampSeries()));
              CatcmentsToTest.Remove(CatcmentsToTest[k]);
            }
          }
        }

      Dictionary<int, TimeStampSeries> ToReturn = new Dictionary<int, TimeStampSeries>();

      int firsttimestep = precip.GetTimeStep(Start);
      int lasttimestep = precip.GetTimeStep(End);

        for (int i = firsttimestep; i <= lasttimestep; i++)
        {
          precipdata = precip.GetData(i, 1);
          for (int m = 0; m < p.Count; m++)
          {
            p[m].Item4.Items.Add(new TimeStampValue(precip.TimeSteps[i], precipdata[p[m].Item3, p[m].Item2]));
          }
        }

        for (int m = 0; m < p.Count; m++)
        {
          ToReturn.Add(p[m].Item1, TSTools.ChangeZoomLevel(p[m].Item4, TimeStepUnit.Month, Accumulate));
          p[m] = null;
        }

      return ToReturn;
    }
 partial void DeleteBOREHOLE(HydroNumerics.JupiterTools.Linq2Sql.BOREHOLE instance);