public void AddOneDefaultGrid(Grid2D grid)
        {
            V5DataOnGrid v5DataOnGridDefaultInstance =
                new V5DataOnGrid("Default service info", new DateTime(1970, 1, 1), grid);

            v5DataOnGridDefaultInstance.InitRandom(-100.0f, 100.0f);
            LstData.Add(v5DataOnGridDefaultInstance);
            AddChangesAfterSave = true;
        }
        public void AddPairDefaultGridAndCollection(Grid2D grid)
        {
            V5DataOnGrid v5DataOnGridDefaultInstance =
                new V5DataOnGrid("Default info", new DateTime(1970, 1, 1), grid);

            v5DataOnGridDefaultInstance.InitRandom(-100.0f, 100.0f);
            LstData.Add(v5DataOnGridDefaultInstance);
            LstData.Add((V5DataCollection)v5DataOnGridDefaultInstance);
        }
        public V5DataCollection(V5DataOnGrid v5DataOnGridInstance) :
            base(v5DataOnGridInstance.ServiceInfo, v5DataOnGridInstance.MeasurementTime)
        {
            var iterV5DataOnGrid = from lstElem in v5DataOnGridInstance
                                   select new KeyValuePair <Vector2, Vector2>
                                       (lstElem.PointCoord, lstElem.FieldValue);

            ValuesDct = new Dictionary <Vector2, Vector2>((IDictionary <Vector2, Vector2>)iterV5DataOnGrid);
        }
 public void AddOneFileGrid(string filename)
 {
     try
     {
         V5DataOnGrid v5DataOnGridDefaultInstance = new V5DataOnGrid(filename);
         LstData.Add(v5DataOnGridDefaultInstance);
         AddChangesAfterSave = true;
     }
     catch (Exception exception)
     {
         throw exception;
     }
 }