diff --git a/Backup/MES_Wind.sln b/Backup/MES_Wind.sln
deleted file mode 100644
index 1895143762d07ea371a685657390d02fd14055ec..0000000000000000000000000000000000000000
--- a/Backup/MES_Wind.sln
+++ /dev/null
@@ -1,22 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 10.00
-# Visual Studio 10
-VisualStudioVersion = 14.0.25420.1
-MinimumVisualStudioVersion = 10.0.40219.1
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MES_Wind", "MES_Wind\MES_Wind.csproj", "{A303A9F5-8181-46B5-876C-D1BC99C3FFFD}"
-EndProject
-Global
-	GlobalSection(SolutionConfigurationPlatforms) = preSolution
-		Debug|Any CPU = Debug|Any CPU
-		Release|Any CPU = Release|Any CPU
-	EndGlobalSection
-	GlobalSection(ProjectConfigurationPlatforms) = postSolution
-		{A303A9F5-8181-46B5-876C-D1BC99C3FFFD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
-		{A303A9F5-8181-46B5-876C-D1BC99C3FFFD}.Debug|Any CPU.Build.0 = Debug|Any CPU
-		{A303A9F5-8181-46B5-876C-D1BC99C3FFFD}.Release|Any CPU.ActiveCfg = Release|Any CPU
-		{A303A9F5-8181-46B5-876C-D1BC99C3FFFD}.Release|Any CPU.Build.0 = Release|Any CPU
-	EndGlobalSection
-	GlobalSection(SolutionProperties) = preSolution
-		HideSolutionNode = FALSE
-	EndGlobalSection
-EndGlobal
diff --git a/Backup/MES_Wind/MES_Wind.csproj b/Backup/MES_Wind/MES_Wind.csproj
deleted file mode 100644
index 270966a75fcb424970cfc13005d7e4f4f807b460..0000000000000000000000000000000000000000
--- a/Backup/MES_Wind/MES_Wind.csproj
+++ /dev/null
@@ -1,149 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
-  <PropertyGroup>
-    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
-    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
-    <ProjectGuid>{A303A9F5-8181-46B5-876C-D1BC99C3FFFD}</ProjectGuid>
-    <OutputType>WinExe</OutputType>
-    <AppDesignerFolder>Properties</AppDesignerFolder>
-    <RootNamespace>MES_Wind</RootNamespace>
-    <AssemblyName>MES_Wind</AssemblyName>
-    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
-    <FileAlignment>512</FileAlignment>
-  </PropertyGroup>
-  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
-    <PlatformTarget>AnyCPU</PlatformTarget>
-    <DebugSymbols>true</DebugSymbols>
-    <DebugType>full</DebugType>
-    <Optimize>false</Optimize>
-    <OutputPath>bin\Debug\</OutputPath>
-    <DefineConstants>DEBUG;TRACE</DefineConstants>
-    <ErrorReport>prompt</ErrorReport>
-    <WarningLevel>4</WarningLevel>
-  </PropertyGroup>
-  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
-    <PlatformTarget>AnyCPU</PlatformTarget>
-    <DebugType>pdbonly</DebugType>
-    <Optimize>true</Optimize>
-    <OutputPath>bin\Release\</OutputPath>
-    <DefineConstants>TRACE</DefineConstants>
-    <ErrorReport>prompt</ErrorReport>
-    <WarningLevel>4</WarningLevel>
-  </PropertyGroup>
-  <ItemGroup>
-    <Reference Include="DotSpatial.Analysis">
-      <HintPath>..\..\..\..\..\Downloads\DotSpatial 1.9\DotSpatial.Analysis.dll</HintPath>
-    </Reference>
-    <Reference Include="DotSpatial.Compatibility">
-      <HintPath>..\..\..\..\..\Downloads\DotSpatial 1.9\DotSpatial.Compatibility.dll</HintPath>
-    </Reference>
-    <Reference Include="DotSpatial.Controls">
-      <HintPath>..\..\..\..\..\Downloads\DotSpatial 1.9\DotSpatial.Controls.dll</HintPath>
-    </Reference>
-    <Reference Include="DotSpatial.Data">
-      <HintPath>..\..\..\..\..\Downloads\DotSpatial 1.9\DotSpatial.Data.dll</HintPath>
-    </Reference>
-    <Reference Include="DotSpatial.Data.Forms">
-      <HintPath>..\..\..\..\..\Downloads\DotSpatial 1.9\DotSpatial.Data.Forms.dll</HintPath>
-    </Reference>
-    <Reference Include="DotSpatial.Extensions">
-      <HintPath>..\..\..\..\..\Downloads\DotSpatial 1.9\DotSpatial.Extensions.dll</HintPath>
-    </Reference>
-    <Reference Include="DotSpatial.Modeling.Forms">
-      <HintPath>..\..\..\..\..\Downloads\DotSpatial 1.9\DotSpatial.Modeling.Forms.dll</HintPath>
-    </Reference>
-    <Reference Include="DotSpatial.Mono">
-      <HintPath>..\..\..\..\..\Downloads\DotSpatial 1.9\DotSpatial.Mono.dll</HintPath>
-    </Reference>
-    <Reference Include="DotSpatial.Positioning">
-      <HintPath>..\..\..\..\..\Downloads\DotSpatial 1.9\DotSpatial.Positioning.dll</HintPath>
-    </Reference>
-    <Reference Include="DotSpatial.Positioning.Design">
-      <HintPath>..\..\..\..\..\Downloads\DotSpatial 1.9\DotSpatial.Positioning.Design.dll</HintPath>
-    </Reference>
-    <Reference Include="DotSpatial.Positioning.Forms">
-      <HintPath>..\..\..\..\..\Downloads\DotSpatial 1.9\DotSpatial.Positioning.Forms.dll</HintPath>
-    </Reference>
-    <Reference Include="DotSpatial.Projections">
-      <HintPath>..\..\..\..\..\Downloads\DotSpatial 1.9\DotSpatial.Projections.dll</HintPath>
-    </Reference>
-    <Reference Include="DotSpatial.Projections.Forms">
-      <HintPath>..\..\..\..\..\Downloads\DotSpatial 1.9\DotSpatial.Projections.Forms.dll</HintPath>
-    </Reference>
-    <Reference Include="DotSpatial.Serialization">
-      <HintPath>..\..\..\..\..\Downloads\DotSpatial 1.9\DotSpatial.Serialization.dll</HintPath>
-    </Reference>
-    <Reference Include="DotSpatial.Symbology">
-      <HintPath>..\..\..\..\..\Downloads\DotSpatial 1.9\DotSpatial.Symbology.dll</HintPath>
-    </Reference>
-    <Reference Include="DotSpatial.Symbology.Forms">
-      <HintPath>..\..\..\..\..\Downloads\DotSpatial 1.9\DotSpatial.Symbology.Forms.dll</HintPath>
-    </Reference>
-    <Reference Include="DotSpatial.Topology">
-      <HintPath>..\..\..\..\..\Downloads\DotSpatial 1.9\DotSpatial.Topology.dll</HintPath>
-    </Reference>
-    <Reference Include="System" />
-    <Reference Include="System.ComponentModel.Composition" />
-    <Reference Include="System.Core" />
-    <Reference Include="System.Xml.Linq" />
-    <Reference Include="System.Data.DataSetExtensions" />
-    <Reference Include="Microsoft.CSharp" />
-    <Reference Include="System.Data" />
-    <Reference Include="System.Deployment" />
-    <Reference Include="System.Drawing" />
-    <Reference Include="System.Windows.Forms" />
-    <Reference Include="System.Xml" />
-    <Reference Include="ZedGraph">
-      <HintPath>..\..\..\..\..\Downloads\zedgraph_dll_v515\zedgraph_dll_v515\zedgraph_dll_v5.1.5\ZedGraph.dll</HintPath>
-    </Reference>
-  </ItemGroup>
-  <ItemGroup>
-    <Compile Include="frmGraph.cs">
-      <SubType>Form</SubType>
-    </Compile>
-    <Compile Include="frmGraph.Designer.cs">
-      <DependentUpon>frmGraph.cs</DependentUpon>
-    </Compile>
-    <Compile Include="frmMain.cs">
-      <SubType>Form</SubType>
-    </Compile>
-    <Compile Include="frmMain.Designer.cs">
-      <DependentUpon>frmMain.cs</DependentUpon>
-    </Compile>
-    <Compile Include="Program.cs" />
-    <Compile Include="Properties\AssemblyInfo.cs" />
-    <EmbeddedResource Include="frmGraph.resx">
-      <DependentUpon>frmGraph.cs</DependentUpon>
-    </EmbeddedResource>
-    <EmbeddedResource Include="frmMain.resx">
-      <DependentUpon>frmMain.cs</DependentUpon>
-    </EmbeddedResource>
-    <EmbeddedResource Include="Properties\Resources.resx">
-      <Generator>ResXFileCodeGenerator</Generator>
-      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
-      <SubType>Designer</SubType>
-    </EmbeddedResource>
-    <Compile Include="Properties\Resources.Designer.cs">
-      <AutoGen>True</AutoGen>
-      <DependentUpon>Resources.resx</DependentUpon>
-    </Compile>
-    <None Include="Properties\Settings.settings">
-      <Generator>SettingsSingleFileGenerator</Generator>
-      <LastGenOutput>Settings.Designer.cs</LastGenOutput>
-    </None>
-    <Compile Include="Properties\Settings.Designer.cs">
-      <AutoGen>True</AutoGen>
-      <DependentUpon>Settings.settings</DependentUpon>
-      <DesignTimeSharedInput>True</DesignTimeSharedInput>
-    </Compile>
-  </ItemGroup>
-  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
-  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
-       Other similar extension points exist, see Microsoft.Common.targets.
-  <Target Name="BeforeBuild">
-  </Target>
-  <Target Name="AfterBuild">
-  </Target>
-  -->
-</Project>
\ No newline at end of file
diff --git a/Backup/MES_Wind/Program.cs b/Backup/MES_Wind/Program.cs
deleted file mode 100644
index 7d8cb9c89eaeabee69498f6023213d86521e766e..0000000000000000000000000000000000000000
--- a/Backup/MES_Wind/Program.cs
+++ /dev/null
@@ -1,21 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Windows.Forms;
-
-namespace MES_Wind
-{
-    static class Program
-    {
-        /// <summary>
-        /// The main entry point for the application.
-        /// </summary>
-        [STAThread]
-        static void Main()
-        {
-            Application.EnableVisualStyles();
-            Application.SetCompatibleTextRenderingDefault(false);
-            Application.Run(new frmMain());
-        }
-    }
-}
diff --git a/Backup/MES_Wind/Properties/AssemblyInfo.cs b/Backup/MES_Wind/Properties/AssemblyInfo.cs
deleted file mode 100644
index a63239282fa61ac069da2a24876d55d407969833..0000000000000000000000000000000000000000
--- a/Backup/MES_Wind/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following 
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("MES_Wind")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("MES_Wind")]
-[assembly: AssemblyCopyright("Copyright ©  2016")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible 
-// to COM components.  If you need to access a type in this assembly from 
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("a303a9f5-8181-46b5-876c-d1bc99c3fffd")]
-
-// Version information for an assembly consists of the following four values:
-//
-//      Major Version
-//      Minor Version 
-//      Build Number
-//      Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers 
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/Backup/MES_Wind/Properties/Resources.Designer.cs b/Backup/MES_Wind/Properties/Resources.Designer.cs
deleted file mode 100644
index a84f6348d86c8651a6f040e114cf8affb36a4cf9..0000000000000000000000000000000000000000
--- a/Backup/MES_Wind/Properties/Resources.Designer.cs
+++ /dev/null
@@ -1,71 +0,0 @@
-//------------------------------------------------------------------------------
-// <auto-generated>
-//     This code was generated by a tool.
-//     Runtime Version:4.0.30319.42000
-//
-//     Changes to this file may cause incorrect behavior and will be lost if
-//     the code is regenerated.
-// </auto-generated>
-//------------------------------------------------------------------------------
-
-namespace MES_Wind.Properties
-{
-
-
-    /// <summary>
-    ///   A strongly-typed resource class, for looking up localized strings, etc.
-    /// </summary>
-    // This class was auto-generated by the StronglyTypedResourceBuilder
-    // class via a tool like ResGen or Visual Studio.
-    // To add or remove a member, edit your .ResX file then rerun ResGen
-    // with the /str option, or rebuild your VS project.
-    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
-    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
-    internal class Resources
-    {
-
-        private static global::System.Resources.ResourceManager resourceMan;
-
-        private static global::System.Globalization.CultureInfo resourceCulture;
-
-        [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
-        internal Resources()
-        {
-        }
-
-        /// <summary>
-        ///   Returns the cached ResourceManager instance used by this class.
-        /// </summary>
-        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
-        internal static global::System.Resources.ResourceManager ResourceManager
-        {
-            get
-            {
-                if ((resourceMan == null))
-                {
-                    global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("MES_Wind.Properties.Resources", typeof(Resources).Assembly);
-                    resourceMan = temp;
-                }
-                return resourceMan;
-            }
-        }
-
-        /// <summary>
-        ///   Overrides the current thread's CurrentUICulture property for all
-        ///   resource lookups using this strongly typed resource class.
-        /// </summary>
-        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
-        internal static global::System.Globalization.CultureInfo Culture
-        {
-            get
-            {
-                return resourceCulture;
-            }
-            set
-            {
-                resourceCulture = value;
-            }
-        }
-    }
-}
diff --git a/Backup/MES_Wind/Properties/Resources.resx b/Backup/MES_Wind/Properties/Resources.resx
deleted file mode 100644
index af7dbebbacef595e3089c01c05671016c21a8304..0000000000000000000000000000000000000000
--- a/Backup/MES_Wind/Properties/Resources.resx
+++ /dev/null
@@ -1,117 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<root>
-  <!-- 
-    Microsoft ResX Schema 
-    
-    Version 2.0
-    
-    The primary goals of this format is to allow a simple XML format 
-    that is mostly human readable. The generation and parsing of the 
-    various data types are done through the TypeConverter classes 
-    associated with the data types.
-    
-    Example:
-    
-    ... ado.net/XML headers & schema ...
-    <resheader name="resmimetype">text/microsoft-resx</resheader>
-    <resheader name="version">2.0</resheader>
-    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
-    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
-    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
-    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
-    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
-        <value>[base64 mime encoded serialized .NET Framework object]</value>
-    </data>
-    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
-        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
-        <comment>This is a comment</comment>
-    </data>
-                
-    There are any number of "resheader" rows that contain simple 
-    name/value pairs.
-    
-    Each data row contains a name, and value. The row also contains a 
-    type or mimetype. Type corresponds to a .NET class that support 
-    text/value conversion through the TypeConverter architecture. 
-    Classes that don't support this are serialized and stored with the 
-    mimetype set.
-    
-    The mimetype is used for serialized objects, and tells the 
-    ResXResourceReader how to depersist the object. This is currently not 
-    extensible. For a given mimetype the value must be set accordingly:
-    
-    Note - application/x-microsoft.net.object.binary.base64 is the format 
-    that the ResXResourceWriter will generate, however the reader can 
-    read any of the formats listed below.
-    
-    mimetype: application/x-microsoft.net.object.binary.base64
-    value   : The object must be serialized with 
-            : System.Serialization.Formatters.Binary.BinaryFormatter
-            : and then encoded with base64 encoding.
-    
-    mimetype: application/x-microsoft.net.object.soap.base64
-    value   : The object must be serialized with 
-            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
-            : and then encoded with base64 encoding.
-
-    mimetype: application/x-microsoft.net.object.bytearray.base64
-    value   : The object must be serialized into a byte array 
-            : using a System.ComponentModel.TypeConverter
-            : and then encoded with base64 encoding.
-    -->
-  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
-    <xsd:element name="root" msdata:IsDataSet="true">
-      <xsd:complexType>
-        <xsd:choice maxOccurs="unbounded">
-          <xsd:element name="metadata">
-            <xsd:complexType>
-              <xsd:sequence>
-                <xsd:element name="value" type="xsd:string" minOccurs="0" />
-              </xsd:sequence>
-              <xsd:attribute name="name" type="xsd:string" />
-              <xsd:attribute name="type" type="xsd:string" />
-              <xsd:attribute name="mimetype" type="xsd:string" />
-            </xsd:complexType>
-          </xsd:element>
-          <xsd:element name="assembly">
-            <xsd:complexType>
-              <xsd:attribute name="alias" type="xsd:string" />
-              <xsd:attribute name="name" type="xsd:string" />
-            </xsd:complexType>
-          </xsd:element>
-          <xsd:element name="data">
-            <xsd:complexType>
-              <xsd:sequence>
-                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
-                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
-              </xsd:sequence>
-              <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
-              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
-              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
-            </xsd:complexType>
-          </xsd:element>
-          <xsd:element name="resheader">
-            <xsd:complexType>
-              <xsd:sequence>
-                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
-              </xsd:sequence>
-              <xsd:attribute name="name" type="xsd:string" use="required" />
-            </xsd:complexType>
-          </xsd:element>
-        </xsd:choice>
-      </xsd:complexType>
-    </xsd:element>
-  </xsd:schema>
-  <resheader name="resmimetype">
-    <value>text/microsoft-resx</value>
-  </resheader>
-  <resheader name="version">
-    <value>2.0</value>
-  </resheader>
-  <resheader name="reader">
-    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
-  </resheader>
-  <resheader name="writer">
-    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
-  </resheader>
-</root>
\ No newline at end of file
diff --git a/Backup/MES_Wind/Properties/Settings.Designer.cs b/Backup/MES_Wind/Properties/Settings.Designer.cs
deleted file mode 100644
index ebe02d15de228e7ac792dd23ae3c6e7e1231bfb8..0000000000000000000000000000000000000000
--- a/Backup/MES_Wind/Properties/Settings.Designer.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-//------------------------------------------------------------------------------
-// <auto-generated>
-//     This code was generated by a tool.
-//     Runtime Version:4.0.30319.42000
-//
-//     Changes to this file may cause incorrect behavior and will be lost if
-//     the code is regenerated.
-// </auto-generated>
-//------------------------------------------------------------------------------
-
-namespace MES_Wind.Properties
-{
-
-
-    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
-    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
-    internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
-    {
-
-        private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
-
-        public static Settings Default
-        {
-            get
-            {
-                return defaultInstance;
-            }
-        }
-    }
-}
diff --git a/Backup/MES_Wind/Properties/Settings.settings b/Backup/MES_Wind/Properties/Settings.settings
deleted file mode 100644
index 39645652af62950ebf3b28ec3a5400dcec30b1c4..0000000000000000000000000000000000000000
--- a/Backup/MES_Wind/Properties/Settings.settings
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version='1.0' encoding='utf-8'?>
-<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
-  <Profiles>
-    <Profile Name="(Default)" />
-  </Profiles>
-  <Settings />
-</SettingsFile>
diff --git a/Backup/MES_Wind/frmGraph.Designer.cs b/Backup/MES_Wind/frmGraph.Designer.cs
deleted file mode 100644
index e3fbb9f963e9bf5e10ec9bf929ee31ad83985d7e..0000000000000000000000000000000000000000
--- a/Backup/MES_Wind/frmGraph.Designer.cs
+++ /dev/null
@@ -1,81 +0,0 @@
-namespace MES_Wind
-{
-    partial class frmGraph
-    {
-        /// <summary>
-        /// Required designer variable.
-        /// </summary>
-        private System.ComponentModel.IContainer components = null;
-
-        /// <summary>
-        /// Clean up any resources being used.
-        /// </summary>
-        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
-        protected override void Dispose(bool disposing)
-        {
-            if (disposing && (components != null))
-            {
-                components.Dispose();
-            }
-            base.Dispose(disposing);
-        }
-
-        #region Windows Form Designer generated code
-
-        /// <summary>
-        /// Required method for Designer support - do not modify
-        /// the contents of this method with the code editor.
-        /// </summary>
-        private void InitializeComponent()
-        {
-            this.components = new System.ComponentModel.Container();
-            this.pnlGraph_Dock = new System.Windows.Forms.Panel();
-            this.zedGraphControl1 = new ZedGraph.ZedGraphControl();
-            this.pnlGraph_Dock.SuspendLayout();
-            this.SuspendLayout();
-            // 
-            // pnlGraph_Dock
-            // 
-            this.pnlGraph_Dock.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
-            this.pnlGraph_Dock.Controls.Add(this.zedGraphControl1);
-            this.pnlGraph_Dock.Dock = System.Windows.Forms.DockStyle.Fill;
-            this.pnlGraph_Dock.Location = new System.Drawing.Point(0, 0);
-            this.pnlGraph_Dock.Name = "pnlGraph_Dock";
-            this.pnlGraph_Dock.Size = new System.Drawing.Size(282, 253);
-            this.pnlGraph_Dock.TabIndex = 0;
-            // 
-            // zedGraphControl1
-            // 
-            this.zedGraphControl1.Dock = System.Windows.Forms.DockStyle.Fill;
-            this.zedGraphControl1.Location = new System.Drawing.Point(0, 0);
-            this.zedGraphControl1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
-            this.zedGraphControl1.Name = "zedGraphControl1";
-            this.zedGraphControl1.ScrollGrace = 0D;
-            this.zedGraphControl1.ScrollMaxX = 0D;
-            this.zedGraphControl1.ScrollMaxY = 0D;
-            this.zedGraphControl1.ScrollMaxY2 = 0D;
-            this.zedGraphControl1.ScrollMinX = 0D;
-            this.zedGraphControl1.ScrollMinY = 0D;
-            this.zedGraphControl1.ScrollMinY2 = 0D;
-            this.zedGraphControl1.Size = new System.Drawing.Size(282, 253);
-            this.zedGraphControl1.TabIndex = 0;
-            // 
-            // frmGraph
-            // 
-            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
-            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
-            this.ClientSize = new System.Drawing.Size(282, 253);
-            this.Controls.Add(this.pnlGraph_Dock);
-            this.Name = "frmGraph";
-            this.Text = "frmGraph";
-            this.pnlGraph_Dock.ResumeLayout(false);
-            this.ResumeLayout(false);
-
-        }
-
-        #endregion
-
-        private System.Windows.Forms.Panel pnlGraph_Dock;
-        private ZedGraph.ZedGraphControl zedGraphControl1;
-    }
-}
\ No newline at end of file
diff --git a/Backup/MES_Wind/frmGraph.cs b/Backup/MES_Wind/frmGraph.cs
deleted file mode 100644
index ed3923f0e114d1cf54fb09f45660ea655cc39ae9..0000000000000000000000000000000000000000
--- a/Backup/MES_Wind/frmGraph.cs
+++ /dev/null
@@ -1,19 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Data;
-using System.Drawing;
-using System.Linq;
-using System.Text;
-using System.Windows.Forms;
-
-namespace MES_Wind
-{
-    public partial class frmGraph : Form
-    {
-        public frmGraph()
-        {
-            InitializeComponent();
-        }
-    }
-}
diff --git a/Backup/MES_Wind/frmGraph.resx b/Backup/MES_Wind/frmGraph.resx
deleted file mode 100644
index 1af7de150c99c12dd67a509fe57c10d63e4eeb04..0000000000000000000000000000000000000000
--- a/Backup/MES_Wind/frmGraph.resx
+++ /dev/null
@@ -1,120 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<root>
-  <!-- 
-    Microsoft ResX Schema 
-    
-    Version 2.0
-    
-    The primary goals of this format is to allow a simple XML format 
-    that is mostly human readable. The generation and parsing of the 
-    various data types are done through the TypeConverter classes 
-    associated with the data types.
-    
-    Example:
-    
-    ... ado.net/XML headers & schema ...
-    <resheader name="resmimetype">text/microsoft-resx</resheader>
-    <resheader name="version">2.0</resheader>
-    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
-    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
-    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
-    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
-    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
-        <value>[base64 mime encoded serialized .NET Framework object]</value>
-    </data>
-    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
-        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
-        <comment>This is a comment</comment>
-    </data>
-                
-    There are any number of "resheader" rows that contain simple 
-    name/value pairs.
-    
-    Each data row contains a name, and value. The row also contains a 
-    type or mimetype. Type corresponds to a .NET class that support 
-    text/value conversion through the TypeConverter architecture. 
-    Classes that don't support this are serialized and stored with the 
-    mimetype set.
-    
-    The mimetype is used for serialized objects, and tells the 
-    ResXResourceReader how to depersist the object. This is currently not 
-    extensible. For a given mimetype the value must be set accordingly:
-    
-    Note - application/x-microsoft.net.object.binary.base64 is the format 
-    that the ResXResourceWriter will generate, however the reader can 
-    read any of the formats listed below.
-    
-    mimetype: application/x-microsoft.net.object.binary.base64
-    value   : The object must be serialized with 
-            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
-            : and then encoded with base64 encoding.
-    
-    mimetype: application/x-microsoft.net.object.soap.base64
-    value   : The object must be serialized with 
-            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
-            : and then encoded with base64 encoding.
-
-    mimetype: application/x-microsoft.net.object.bytearray.base64
-    value   : The object must be serialized into a byte array 
-            : using a System.ComponentModel.TypeConverter
-            : and then encoded with base64 encoding.
-    -->
-  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
-    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
-    <xsd:element name="root" msdata:IsDataSet="true">
-      <xsd:complexType>
-        <xsd:choice maxOccurs="unbounded">
-          <xsd:element name="metadata">
-            <xsd:complexType>
-              <xsd:sequence>
-                <xsd:element name="value" type="xsd:string" minOccurs="0" />
-              </xsd:sequence>
-              <xsd:attribute name="name" use="required" type="xsd:string" />
-              <xsd:attribute name="type" type="xsd:string" />
-              <xsd:attribute name="mimetype" type="xsd:string" />
-              <xsd:attribute ref="xml:space" />
-            </xsd:complexType>
-          </xsd:element>
-          <xsd:element name="assembly">
-            <xsd:complexType>
-              <xsd:attribute name="alias" type="xsd:string" />
-              <xsd:attribute name="name" type="xsd:string" />
-            </xsd:complexType>
-          </xsd:element>
-          <xsd:element name="data">
-            <xsd:complexType>
-              <xsd:sequence>
-                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
-                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
-              </xsd:sequence>
-              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
-              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
-              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
-              <xsd:attribute ref="xml:space" />
-            </xsd:complexType>
-          </xsd:element>
-          <xsd:element name="resheader">
-            <xsd:complexType>
-              <xsd:sequence>
-                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
-              </xsd:sequence>
-              <xsd:attribute name="name" type="xsd:string" use="required" />
-            </xsd:complexType>
-          </xsd:element>
-        </xsd:choice>
-      </xsd:complexType>
-    </xsd:element>
-  </xsd:schema>
-  <resheader name="resmimetype">
-    <value>text/microsoft-resx</value>
-  </resheader>
-  <resheader name="version">
-    <value>2.0</value>
-  </resheader>
-  <resheader name="reader">
-    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
-  </resheader>
-  <resheader name="writer">
-    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
-  </resheader>
-</root>
\ No newline at end of file
diff --git a/Backup/MES_Wind/frmMain.Designer.cs b/Backup/MES_Wind/frmMain.Designer.cs
deleted file mode 100644
index 9b758221acc3e90ec04b8fab51747e5cb3ef51de..0000000000000000000000000000000000000000
--- a/Backup/MES_Wind/frmMain.Designer.cs
+++ /dev/null
@@ -1,274 +0,0 @@
-namespace MES_Wind
-{
-    partial class frmMain
-    {
-        /// <summary>
-        /// Required designer variable.
-        /// </summary>
-        private System.ComponentModel.IContainer components = null;
-
-        /// <summary>
-        /// Clean up any resources being used.
-        /// </summary>
-        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
-        protected override void Dispose(bool disposing)
-        {
-            if (disposing && (components != null))
-            {
-                components.Dispose();
-            }
-            base.Dispose(disposing);
-        }
-
-        #region Windows Form Designer generated code
-
-        /// <summary>
-        /// Required method for Designer support - do not modify
-        /// the contents of this method with the code editor.
-        /// </summary>
-        private void InitializeComponent()
-        {
-            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmMain));
-            this.appManager1 = new DotSpatial.Controls.AppManager();
-            this.sdmMapLegend = new DotSpatial.Controls.SpatialDockManager();
-            this.legend1 = new DotSpatial.Controls.Legend();
-            this.map1 = new DotSpatial.Controls.Map();
-            this.splitter1 = new System.Windows.Forms.Splitter();
-            this.panel1 = new System.Windows.Forms.Panel();
-            this.sdmDataOperations = new DotSpatial.Controls.SpatialDockManager();
-            this.gbOperations = new System.Windows.Forms.GroupBox();
-            this.btnViewAttributeTable = new System.Windows.Forms.Button();
-            this.dgvAttributeTable = new System.Windows.Forms.DataGridView();
-            this.bntLoadWindX = new System.Windows.Forms.Button();
-            this.btnLoadWindY = new System.Windows.Forms.Button();
-            this.btnCalcStress = new System.Windows.Forms.Button();
-            ((System.ComponentModel.ISupportInitialize)(this.sdmMapLegend)).BeginInit();
-            this.sdmMapLegend.Panel1.SuspendLayout();
-            this.sdmMapLegend.Panel2.SuspendLayout();
-            this.sdmMapLegend.SuspendLayout();
-            this.panel1.SuspendLayout();
-            ((System.ComponentModel.ISupportInitialize)(this.sdmDataOperations)).BeginInit();
-            this.sdmDataOperations.Panel1.SuspendLayout();
-            this.sdmDataOperations.Panel2.SuspendLayout();
-            this.sdmDataOperations.SuspendLayout();
-            this.gbOperations.SuspendLayout();
-            ((System.ComponentModel.ISupportInitialize)(this.dgvAttributeTable)).BeginInit();
-            this.SuspendLayout();
-            // 
-            // appManager1
-            // 
-            this.appManager1.Directories = ((System.Collections.Generic.List<string>)(resources.GetObject("appManager1.Directories")));
-            this.appManager1.DockManager = this.sdmMapLegend;
-            this.appManager1.HeaderControl = null;
-            this.appManager1.Legend = this.legend1;
-            this.appManager1.Map = this.map1;
-            this.appManager1.ProgressHandler = null;
-            this.appManager1.ShowExtensionsDialogMode = DotSpatial.Controls.ShowExtensionsDialogMode.Default;
-            // 
-            // sdmMapLegend
-            // 
-            this.sdmMapLegend.Dock = System.Windows.Forms.DockStyle.Top;
-            this.sdmMapLegend.Location = new System.Drawing.Point(0, 0);
-            this.sdmMapLegend.Name = "sdmMapLegend";
-            // 
-            // sdmMapLegend.Panel1
-            // 
-            this.sdmMapLegend.Panel1.Controls.Add(this.legend1);
-            // 
-            // sdmMapLegend.Panel2
-            // 
-            this.sdmMapLegend.Panel2.Controls.Add(this.map1);
-            this.sdmMapLegend.Size = new System.Drawing.Size(782, 234);
-            this.sdmMapLegend.SplitterDistance = 260;
-            this.sdmMapLegend.TabControl1 = null;
-            this.sdmMapLegend.TabControl2 = null;
-            this.sdmMapLegend.TabIndex = 0;
-            // 
-            // legend1
-            // 
-            this.legend1.BackColor = System.Drawing.Color.White;
-            this.legend1.ControlRectangle = new System.Drawing.Rectangle(0, 0, 260, 234);
-            this.legend1.Dock = System.Windows.Forms.DockStyle.Fill;
-            this.legend1.DocumentRectangle = new System.Drawing.Rectangle(0, 0, 187, 428);
-            this.legend1.HorizontalScrollEnabled = true;
-            this.legend1.Indentation = 30;
-            this.legend1.IsInitialized = false;
-            this.legend1.Location = new System.Drawing.Point(0, 0);
-            this.legend1.MinimumSize = new System.Drawing.Size(5, 5);
-            this.legend1.Name = "legend1";
-            this.legend1.ProgressHandler = null;
-            this.legend1.ResetOnResize = false;
-            this.legend1.SelectionFontColor = System.Drawing.Color.Black;
-            this.legend1.SelectionHighlight = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(238)))), ((int)(((byte)(252)))));
-            this.legend1.Size = new System.Drawing.Size(260, 234);
-            this.legend1.TabIndex = 0;
-            this.legend1.TabStop = false;
-            this.legend1.Text = "legend1";
-            this.legend1.VerticalScrollEnabled = true;
-            // 
-            // map1
-            // 
-            this.map1.AllowDrop = true;
-            this.map1.BackColor = System.Drawing.Color.White;
-            this.map1.CollectAfterDraw = false;
-            this.map1.CollisionDetection = false;
-            this.map1.Dock = System.Windows.Forms.DockStyle.Fill;
-            this.map1.ExtendBuffer = false;
-            this.map1.FunctionMode = DotSpatial.Controls.FunctionMode.Pan;
-            this.map1.IsBusy = false;
-            this.map1.IsZoomedToMaxExtent = false;
-            this.map1.Legend = this.legend1;
-            this.map1.Location = new System.Drawing.Point(0, 0);
-            this.map1.Name = "map1";
-            this.map1.ProgressHandler = null;
-            this.map1.ProjectionModeDefine = DotSpatial.Controls.ActionMode.Prompt;
-            this.map1.ProjectionModeReproject = DotSpatial.Controls.ActionMode.Prompt;
-            this.map1.RedrawLayersWhileResizing = false;
-            this.map1.SelectionEnabled = true;
-            this.map1.Size = new System.Drawing.Size(518, 234);
-            this.map1.TabIndex = 0;
-            this.map1.ZoomOutFartherThanMaxExtent = false;
-            // 
-            // splitter1
-            // 
-            this.splitter1.Location = new System.Drawing.Point(0, 0);
-            this.splitter1.Name = "splitter1";
-            this.splitter1.Size = new System.Drawing.Size(114, 360);
-            this.splitter1.TabIndex = 0;
-            this.splitter1.TabStop = false;
-            // 
-            // panel1
-            // 
-            this.panel1.Controls.Add(this.sdmDataOperations);
-            this.panel1.Controls.Add(this.sdmMapLegend);
-            this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
-            this.panel1.Location = new System.Drawing.Point(114, 0);
-            this.panel1.Name = "panel1";
-            this.panel1.Size = new System.Drawing.Size(782, 360);
-            this.panel1.TabIndex = 1;
-            // 
-            // sdmDataOperations
-            // 
-            this.sdmDataOperations.Dock = System.Windows.Forms.DockStyle.Fill;
-            this.sdmDataOperations.Location = new System.Drawing.Point(0, 234);
-            this.sdmDataOperations.Name = "sdmDataOperations";
-            this.sdmDataOperations.Orientation = System.Windows.Forms.Orientation.Horizontal;
-            // 
-            // sdmDataOperations.Panel1
-            // 
-            this.sdmDataOperations.Panel1.Controls.Add(this.gbOperations);
-            // 
-            // sdmDataOperations.Panel2
-            // 
-            this.sdmDataOperations.Panel2.Controls.Add(this.dgvAttributeTable);
-            this.sdmDataOperations.Size = new System.Drawing.Size(782, 126);
-            this.sdmDataOperations.SplitterDistance = 55;
-            this.sdmDataOperations.TabControl1 = null;
-            this.sdmDataOperations.TabControl2 = null;
-            this.sdmDataOperations.TabIndex = 1;
-            // 
-            // gbOperations
-            // 
-            this.gbOperations.Controls.Add(this.btnViewAttributeTable);
-            this.gbOperations.Dock = System.Windows.Forms.DockStyle.Fill;
-            this.gbOperations.Location = new System.Drawing.Point(0, 0);
-            this.gbOperations.Name = "gbOperations";
-            this.gbOperations.Size = new System.Drawing.Size(782, 55);
-            this.gbOperations.TabIndex = 0;
-            this.gbOperations.TabStop = false;
-            this.gbOperations.Text = "Operations";
-            // 
-            // btnViewAttributeTable
-            // 
-            this.btnViewAttributeTable.Location = new System.Drawing.Point(7, 22);
-            this.btnViewAttributeTable.Name = "btnViewAttributeTable";
-            this.btnViewAttributeTable.Size = new System.Drawing.Size(188, 23);
-            this.btnViewAttributeTable.TabIndex = 0;
-            this.btnViewAttributeTable.Text = "View Attribute table";
-            this.btnViewAttributeTable.UseVisualStyleBackColor = true;
-            this.btnViewAttributeTable.Click += new System.EventHandler(this.btnViewAttributeTable_Click);
-            // 
-            // dgvAttributeTable
-            // 
-            this.dgvAttributeTable.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
-            this.dgvAttributeTable.Dock = System.Windows.Forms.DockStyle.Fill;
-            this.dgvAttributeTable.Location = new System.Drawing.Point(0, 0);
-            this.dgvAttributeTable.Name = "dgvAttributeTable";
-            this.dgvAttributeTable.RowTemplate.Height = 24;
-            this.dgvAttributeTable.Size = new System.Drawing.Size(782, 67);
-            this.dgvAttributeTable.TabIndex = 0;
-            // 
-            // bntLoadWindX
-            // 
-            this.bntLoadWindX.Location = new System.Drawing.Point(12, 74);
-            this.bntLoadWindX.Name = "bntLoadWindX";
-            this.bntLoadWindX.Size = new System.Drawing.Size(96, 46);
-            this.bntLoadWindX.TabIndex = 2;
-            this.bntLoadWindX.Text = "Load Xwind";
-            this.bntLoadWindX.UseVisualStyleBackColor = true;
-            this.bntLoadWindX.Click += new System.EventHandler(this.bntLoadWindX_Click);
-            // 
-            // btnLoadWindY
-            // 
-            this.btnLoadWindY.Location = new System.Drawing.Point(12, 147);
-            this.btnLoadWindY.Name = "btnLoadWindY";
-            this.btnLoadWindY.Size = new System.Drawing.Size(96, 46);
-            this.btnLoadWindY.TabIndex = 3;
-            this.btnLoadWindY.Text = "Load Ywind";
-            this.btnLoadWindY.UseVisualStyleBackColor = true;
-            this.btnLoadWindY.Click += new System.EventHandler(this.btnLoadWindY_Click);
-            // 
-            // btnCalcStress
-            // 
-            this.btnCalcStress.Location = new System.Drawing.Point(12, 209);
-            this.btnCalcStress.Name = "btnCalcStress";
-            this.btnCalcStress.Size = new System.Drawing.Size(96, 42);
-            this.btnCalcStress.TabIndex = 4;
-            this.btnCalcStress.Text = "Calculate Wind Stress";
-            this.btnCalcStress.UseVisualStyleBackColor = true;
-            this.btnCalcStress.Click += new System.EventHandler(this.btnCalcStress_Click);
-            // 
-            // frmMain
-            // 
-            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
-            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
-            this.ClientSize = new System.Drawing.Size(896, 360);
-            this.Controls.Add(this.btnCalcStress);
-            this.Controls.Add(this.btnLoadWindY);
-            this.Controls.Add(this.bntLoadWindX);
-            this.Controls.Add(this.panel1);
-            this.Controls.Add(this.splitter1);
-            this.Name = "frmMain";
-            this.Text = "Form1";
-            this.sdmMapLegend.Panel1.ResumeLayout(false);
-            this.sdmMapLegend.Panel2.ResumeLayout(false);
-            ((System.ComponentModel.ISupportInitialize)(this.sdmMapLegend)).EndInit();
-            this.sdmMapLegend.ResumeLayout(false);
-            this.panel1.ResumeLayout(false);
-            this.sdmDataOperations.Panel1.ResumeLayout(false);
-            this.sdmDataOperations.Panel2.ResumeLayout(false);
-            ((System.ComponentModel.ISupportInitialize)(this.sdmDataOperations)).EndInit();
-            this.sdmDataOperations.ResumeLayout(false);
-            this.gbOperations.ResumeLayout(false);
-            ((System.ComponentModel.ISupportInitialize)(this.dgvAttributeTable)).EndInit();
-            this.ResumeLayout(false);
-
-        }
-
-        #endregion
-
-        private DotSpatial.Controls.AppManager appManager1;
-        private System.Windows.Forms.Splitter splitter1;
-        private System.Windows.Forms.Panel panel1;
-        private System.Windows.Forms.Button bntLoadWindX;
-        private DotSpatial.Controls.SpatialDockManager sdmMapLegend;
-        private DotSpatial.Controls.Legend legend1;
-        private DotSpatial.Controls.Map map1;
-        private System.Windows.Forms.Button btnLoadWindY;
-        private System.Windows.Forms.Button btnCalcStress;
-        private DotSpatial.Controls.SpatialDockManager sdmDataOperations;
-        private System.Windows.Forms.GroupBox gbOperations;
-        private System.Windows.Forms.DataGridView dgvAttributeTable;
-        private System.Windows.Forms.Button btnViewAttributeTable;
-    }
-}
\ No newline at end of file
diff --git a/Backup/MES_Wind/frmMain.cs b/Backup/MES_Wind/frmMain.cs
deleted file mode 100644
index 733dbb226d292b409261116ec93025f8866772e1..0000000000000000000000000000000000000000
--- a/Backup/MES_Wind/frmMain.cs
+++ /dev/null
@@ -1,247 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Data;
-using System.Drawing;
-using System.Linq;
-using System.Text;
-using System.Windows.Forms;
-using System.ComponentModel.Composition;
-using DotSpatial.Controls;
-using DotSpatial.Topology;
-using DotSpatial.Serialization;
-using DotSpatial.Data;
-
-
-
-namespace MES_Wind
-{
-    public partial class frmMain : Form
-    {
-       
-        [Export("Shell", typeof(ContainerControl))]
-        private static ContainerControl Shell;
-        #region "Control variables"
-         double distThreshold = 500;
-        #endregion
-
-        public frmMain()
-        {
-
-            InitializeComponent();
-            if (DesignMode) return;
-            Shell = this;
-            appManager1.LoadExtensions();
-        }
-        #region
-        /// <summary>
-        /// This function is used to check if the segment of powerline is broken. 
-        /// Based on the given line segment's start and endpoint, it divides the line on
-        /// suitable subsegments defined by threshold length - dThreshold
-        /// </summary>
-        /// <param name="startX">Line segement's start X point</param>
-        /// <param name="startY">Line segement's start Y point</param>
-        /// <param name="endX">Line segement's end X point</param>
-        /// <param name="endY">Line segement's end Y point</param>
-        /// <param name="dThreshold">Line segment length threshold</param>
-        /// <param name="Uwind_raster">Raster Layer for progmostic wind X coord</param>
-        /// <param name="Vwind_raster">Raster Layer for progmostic wind Y coord</param>
-        /// <returns>List of booleans with coordinates if any of them are true, line is broken</returns>
-        /// <remarks></remarks>
-#endregion
-        public List<CheckPoint> CalcBrkPoint(double startX, double startY, double endX, double endY, double dThreshold, IMapRasterLayer Uwind_raster, IMapRasterLayer Vwind_raster)
-        {
-            List<CheckPoint> lineCheckPoint = new List<CheckPoint>();
-            double uwind = 0;
-            double vwind = 0;
-            double umod = 0;
-            double anglewind = 0;
-            double distance = Math.Sqrt((endX - startX) * (endX - startX) + (endY - startY) * (endY - startY));
-            double distpropD = distance / dThreshold;
-            int distpropI = Convert.ToInt32(distpropD);
-            double curX = startX;
-            double curY = startY;
-            CheckPoint chkpnt = new CheckPoint();
-            if (distpropI > 1)
-            {
-                double constXdiff = (endX - startX) / distpropI;
-                double constYdiff = (endY - startY) / distpropI;
-                for (int j = 1; j < distpropI + 1; j++)
-                {
-                    if (j == 1)
-                    {
-                        curX = startX + constXdiff / 2;
-                        curY = startY + constXdiff / 2; 
-                    }
-                    else
-                    {
-                        curX = curX + constXdiff;
-                        curY = curY + constYdiff;
-                    }
-                    Coordinate coords = new Coordinate(curX,curY);
-                    RcIndex rowColumnU = Uwind_raster.DataSet.Bounds.ProjToCell(coords);
-                    uwind = Uwind_raster.DataSet.Value[rowColumnU.Row, rowColumnU.Column];
-                    RcIndex rowColumnV = Vwind_raster.DataSet.Bounds.ProjToCell(coords);
-                    vwind = Vwind_raster.DataSet.Value[rowColumnV.Row, rowColumnV.Column];
-                    umod = Math.Sqrt(uwind*uwind + vwind*vwind);
-                    anglewind = Math.Atan2(uwind,vwind);
-                    chkpnt.X = curX;
-                    chkpnt.Y = curY;
-                    chkpnt.Ifbroken = false;
-                    lineCheckPoint.Add(chkpnt);
-                }
-            }
-            return lineCheckPoint;
-        }
-
-
-        private void bntLoadWindX_Click(object sender, EventArgs e)
-        {
-            map1.AddLayer();
-            map1.ZoomToMaxExtent();
-
-        }
-
-        private void btnLoadWindY_Click(object sender, EventArgs e)
-        {
-            map1.AddLayer();
-            map1.ZoomToMaxExtent();
-        }
-
-        private void btnViewAttributeTable_Click(object sender, EventArgs e)
-        {
-            //Declare a datatable
-            DataTable dt = null;
-
-            if (map1.GetLineLayers().Count() > 0)
-            {
-                MapLineLayer pwlLayer = default(MapLineLayer);
-
-                pwlLayer = (MapLineLayer)map1.GetLineLayers()[0];
-
-                if (pwlLayer == null)
-                {
-                    MessageBox.Show("The layer is not a line layer.");
-                }
-                else
-                {
-                    //Get the shapefile's attribute table to our datatable dt
-                    dt = pwlLayer.DataSet.DataTable;
-
-                    //Set the datagridview datasource from datatable dt
-                    dgvAttributeTable.DataSource = dt;
-                }
-            }
-            else
-            {
-                MessageBox.Show("Please add a layer to the map.");
-            }
-
-        
-
-    }
-
-        private void btnCalcStress_Click(object sender, EventArgs e)
-        {
-            try
-            {
-                //extract prognostic u layer
-                IMapRasterLayer u_rasterLayer = default(IMapRasterLayer);
-                IMapRasterLayer v_rasterLayer = default(IMapRasterLayer);
-                if (map1.GetRasterLayers().Count() == 1)
-                {
-                    MessageBox.Show("Please add a raster layer");
-                    return;
-                }
-
-                //use the first raster layer in the map
-                u_rasterLayer = map1.GetRasterLayers()[0];
-                v_rasterLayer = map1.GetRasterLayers()[1];
-
-                //get the powerline  line layer
-                IMapLineLayer pwlLayer = default(IMapLineLayer);
-                if (map1.GetLineLayers().Count() == 0)
-                {
-                    MessageBox.Show("Please add powerline shapefile");
-                    return;
-                }
-                pwlLayer = map1.GetLineLayers()[0];
-                //copy line layer FeatureSet
-                IFeatureSet pwlineSet = pwlLayer.DataSet;
-                // new FeatureSet for resulting broken powerlines
-                IFeatureSet brklineSet = new FeatureSet(FeatureType.Line);
-                DataTable dt = pwlineSet.DataTable;
-                List<CheckPoint> fullCheckList = new List<CheckPoint>();
-                foreach (IFeature feature in pwlineSet.Features)
-                {
-                    List<CheckPoint> lineCheckList = new List<CheckPoint>();
-                    LineString linestr = feature.BasicGeometry as LineString;
-                    if (linestr != null)
-                    { // case if powerline consists of one line
-                        // get coordinates list
-                        IList<Coordinate> points = linestr.Coordinates;
-                        IFeature brklineFeature = brklineSet.AddFeature(linestr);
-                        //get associated attributes
-                        DataRow featureData = feature.DataRow;
-                        int id = int.Parse(featureData["PW_ID"].ToString());
-                        int year = int.Parse(featureData["Year"].ToString());
-                        double height = double.Parse(featureData["height"].ToString());
-                        // cycle throw all points in line
-                        for (int i=1; i< points.Count; i++)
-                        {
-                            List<CheckPoint> segmentCheckList = new List<CheckPoint>();
-                            double x1 = points[i - 1].X;
-                            double y1 = points[i - 1].Y;
-                            double x2 = points[i].X;
-                            double y2 = points[i].Y;
-                            segmentCheckList = CalcBrkPoint(x1,y1,x2,y2,distThreshold,u_rasterLayer,v_rasterLayer);
-                            lineCheckList.AddRange(segmentCheckList);
-                        }
-
-                        fullCheckList.AddRange(lineCheckList);
-                        brklineFeature.CopyAttributes(feature);
-                    }
-                    else
-                    {//case if powerline is multiline
-                        MultiLineString multiline = feature.BasicGeometry as MultiLineString;
-                        if ( multiline != null){ 
-                            foreach (IGeometry line in multiline.Geometries)
-                            {
-                                IList<Coordinate> points = line.Coordinates;
-                            }
-                            IFeature brklineFeature = brklineSet.AddFeature(multiline);
-                            MessageBox.Show("Works");
-                        }
-
-
-                    }
-                }
-               
-
-            }
-            catch (Exception ex)
-            {
-                MessageBox.Show("Something went wrong");
-            }
-
-        }
-    }
-    public class PathPoint
-    {
-        public double X1;
-        public double Y1;
-        public double X2;
-        public double Y2;
-        public double Distance;
-        public double Uwind;
-        public double Vwind;
-        public int Year;
-    }
-    public class CheckPoint
-    {
-        public double X;
-        public double Y;
-        public bool Ifbroken;
-    }
-
-}
diff --git a/Backup/MES_Wind/frmMain.resx b/Backup/MES_Wind/frmMain.resx
deleted file mode 100644
index b270b44ca7ef19ee10c200cd809e2da19f371124..0000000000000000000000000000000000000000
--- a/Backup/MES_Wind/frmMain.resx
+++ /dev/null
@@ -1,133 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<root>
-  <!-- 
-    Microsoft ResX Schema 
-    
-    Version 2.0
-    
-    The primary goals of this format is to allow a simple XML format 
-    that is mostly human readable. The generation and parsing of the 
-    various data types are done through the TypeConverter classes 
-    associated with the data types.
-    
-    Example:
-    
-    ... ado.net/XML headers & schema ...
-    <resheader name="resmimetype">text/microsoft-resx</resheader>
-    <resheader name="version">2.0</resheader>
-    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
-    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
-    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
-    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
-    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
-        <value>[base64 mime encoded serialized .NET Framework object]</value>
-    </data>
-    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
-        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
-        <comment>This is a comment</comment>
-    </data>
-                
-    There are any number of "resheader" rows that contain simple 
-    name/value pairs.
-    
-    Each data row contains a name, and value. The row also contains a 
-    type or mimetype. Type corresponds to a .NET class that support 
-    text/value conversion through the TypeConverter architecture. 
-    Classes that don't support this are serialized and stored with the 
-    mimetype set.
-    
-    The mimetype is used for serialized objects, and tells the 
-    ResXResourceReader how to depersist the object. This is currently not 
-    extensible. For a given mimetype the value must be set accordingly:
-    
-    Note - application/x-microsoft.net.object.binary.base64 is the format 
-    that the ResXResourceWriter will generate, however the reader can 
-    read any of the formats listed below.
-    
-    mimetype: application/x-microsoft.net.object.binary.base64
-    value   : The object must be serialized with 
-            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
-            : and then encoded with base64 encoding.
-    
-    mimetype: application/x-microsoft.net.object.soap.base64
-    value   : The object must be serialized with 
-            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
-            : and then encoded with base64 encoding.
-
-    mimetype: application/x-microsoft.net.object.bytearray.base64
-    value   : The object must be serialized into a byte array 
-            : using a System.ComponentModel.TypeConverter
-            : and then encoded with base64 encoding.
-    -->
-  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
-    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
-    <xsd:element name="root" msdata:IsDataSet="true">
-      <xsd:complexType>
-        <xsd:choice maxOccurs="unbounded">
-          <xsd:element name="metadata">
-            <xsd:complexType>
-              <xsd:sequence>
-                <xsd:element name="value" type="xsd:string" minOccurs="0" />
-              </xsd:sequence>
-              <xsd:attribute name="name" use="required" type="xsd:string" />
-              <xsd:attribute name="type" type="xsd:string" />
-              <xsd:attribute name="mimetype" type="xsd:string" />
-              <xsd:attribute ref="xml:space" />
-            </xsd:complexType>
-          </xsd:element>
-          <xsd:element name="assembly">
-            <xsd:complexType>
-              <xsd:attribute name="alias" type="xsd:string" />
-              <xsd:attribute name="name" type="xsd:string" />
-            </xsd:complexType>
-          </xsd:element>
-          <xsd:element name="data">
-            <xsd:complexType>
-              <xsd:sequence>
-                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
-                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
-              </xsd:sequence>
-              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
-              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
-              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
-              <xsd:attribute ref="xml:space" />
-            </xsd:complexType>
-          </xsd:element>
-          <xsd:element name="resheader">
-            <xsd:complexType>
-              <xsd:sequence>
-                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
-              </xsd:sequence>
-              <xsd:attribute name="name" type="xsd:string" use="required" />
-            </xsd:complexType>
-          </xsd:element>
-        </xsd:choice>
-      </xsd:complexType>
-    </xsd:element>
-  </xsd:schema>
-  <resheader name="resmimetype">
-    <value>text/microsoft-resx</value>
-  </resheader>
-  <resheader name="version">
-    <value>2.0</value>
-  </resheader>
-  <resheader name="reader">
-    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
-  </resheader>
-  <resheader name="writer">
-    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
-  </resheader>
-  <metadata name="appManager1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
-    <value>17, 17</value>
-  </metadata>
-  <data name="appManager1.Directories" mimetype="application/x-microsoft.net.object.binary.base64">
-    <value>
-        AAEAAAD/////AQAAAAAAAAAMAgAAAJoBbXNjb3JsaWIsIFZlcnNpb249NC4wLjAuMCwgQ3VsdHVyZT1u
-        ZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj1iNzdhNWM1NjE5MzRlMDg5XV0sIG1zY29ybGliLCBWZXJzaW9u
-        PTQuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49Yjc3YTVjNTYxOTM0ZTA4OQUB
-        AAAAMFN5c3RlbS5Db2xsZWN0aW9ucy5HZW5lcmljLkxpc3RgMVtbU3lzdGVtLlN0cmluZwMAAAAGX2l0
-        ZW1zBV9zaXplCF92ZXJzaW9uBgAACAgCAAAACQMAAAACAAAAAgAAABEDAAAABAAAAAYEAAAAFkFwcGxp
-        Y2F0aW9uIEV4dGVuc2lvbnMGBQAAAAdQbHVnaW5zDQIL
-</value>
-  </data>
-</root>
\ No newline at end of file
diff --git a/ClassLibrary1/Class1.cs b/ClassLibrary1/Class1.cs
deleted file mode 100644
index 4d41fc787ece3815d0d30d2add2c12dfcd7fce9a..0000000000000000000000000000000000000000
--- a/ClassLibrary1/Class1.cs
+++ /dev/null
@@ -1,11 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace ClassLibrary1
-{
-    public class Class1
-    {
-    }
-}
diff --git a/ClassLibrary1/ClassLibrary1.csproj b/ClassLibrary1/ClassLibrary1.csproj
deleted file mode 100644
index 641a600f52e1d547c4b1a2780c97b67d33f24730..0000000000000000000000000000000000000000
--- a/ClassLibrary1/ClassLibrary1.csproj
+++ /dev/null
@@ -1,54 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <PropertyGroup>
-    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
-    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
-    <ProductVersion>8.0.30703</ProductVersion>
-    <SchemaVersion>2.0</SchemaVersion>
-    <ProjectGuid>{CB94E8FC-2BCD-4115-9CF0-CF1DC028BFF4}</ProjectGuid>
-    <OutputType>Library</OutputType>
-    <AppDesignerFolder>Properties</AppDesignerFolder>
-    <RootNamespace>ClassLibrary1</RootNamespace>
-    <AssemblyName>ClassLibrary1</AssemblyName>
-    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
-    <FileAlignment>512</FileAlignment>
-  </PropertyGroup>
-  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
-    <DebugSymbols>true</DebugSymbols>
-    <DebugType>full</DebugType>
-    <Optimize>false</Optimize>
-    <OutputPath>bin\Debug\</OutputPath>
-    <DefineConstants>DEBUG;TRACE</DefineConstants>
-    <ErrorReport>prompt</ErrorReport>
-    <WarningLevel>4</WarningLevel>
-  </PropertyGroup>
-  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
-    <DebugType>pdbonly</DebugType>
-    <Optimize>true</Optimize>
-    <OutputPath>bin\Release\</OutputPath>
-    <DefineConstants>TRACE</DefineConstants>
-    <ErrorReport>prompt</ErrorReport>
-    <WarningLevel>4</WarningLevel>
-  </PropertyGroup>
-  <ItemGroup>
-    <Reference Include="System" />
-    <Reference Include="System.Core" />
-    <Reference Include="System.Xml.Linq" />
-    <Reference Include="System.Data.DataSetExtensions" />
-    <Reference Include="Microsoft.CSharp" />
-    <Reference Include="System.Data" />
-    <Reference Include="System.Xml" />
-  </ItemGroup>
-  <ItemGroup>
-    <Compile Include="Class1.cs" />
-    <Compile Include="Properties\AssemblyInfo.cs" />
-  </ItemGroup>
-  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
-  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
-       Other similar extension points exist, see Microsoft.Common.targets.
-  <Target Name="BeforeBuild">
-  </Target>
-  <Target Name="AfterBuild">
-  </Target>
-  -->
-</Project>
\ No newline at end of file
diff --git a/ClassLibrary1/Properties/AssemblyInfo.cs b/ClassLibrary1/Properties/AssemblyInfo.cs
deleted file mode 100644
index ec7421af3d57dfc35bc13377487676af4cfac0e0..0000000000000000000000000000000000000000
--- a/ClassLibrary1/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// Управление общими сведениями о сборке осуществляется с помощью 
-// набора атрибутов. Измените значения этих атрибутов, чтобы изменить сведения,
-// связанные со сборкой.
-[assembly: AssemblyTitle("ClassLibrary1")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("ClassLibrary1")]
-[assembly: AssemblyCopyright("Copyright ©  2016")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Параметр ComVisible со значением FALSE делает типы в сборке невидимыми 
-// для COM-компонентов.  Если требуется обратиться к типу в этой сборке через 
-// COM, задайте атрибуту ComVisible значение TRUE для этого типа.
-[assembly: ComVisible(false)]
-
-// Следующий GUID служит для идентификации библиотеки типов, если этот проект будет видимым для COM
-[assembly: Guid("4648c999-b08c-40ac-bc08-4118f810bbe5")]
-
-// Сведения о версии сборки состоят из следующих четырех значений:
-//
-//      Основной номер версии
-//      Дополнительный номер версии 
-//      Номер построения
-//      Редакция
-//
-// Можно задать все значения или принять номер построения и номер редакции по умолчанию, 
-// используя "*", как показано ниже:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/ClassLibrary1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/ClassLibrary1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
deleted file mode 100644
index d34001c35816722e14be36cae09e2fa1f16df975..0000000000000000000000000000000000000000
Binary files a/ClassLibrary1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache and /dev/null differ
diff --git a/MES_Wind.suo b/MES_Wind.suo
index 75cc2721ac11130d32cc7585eb74f56338631cb5..93f16c0c0cebe048f7bb6478f5f8c5733e829466 100644
Binary files a/MES_Wind.suo and b/MES_Wind.suo differ
diff --git a/MES_Wind/Interface.cs b/MES_Wind/Interface.cs
deleted file mode 100644
index e3e314007427cb2ad2ceb43669c6485eed759e38..0000000000000000000000000000000000000000
--- a/MES_Wind/Interface.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-using System;
-using System.Collections.Generic;
-
-// these interfaces using for checkPowerPoint method in frmMain.cs
-
-public interface PowerLineObject
-{
-    PowerPointObject fromPoint{ get; }
-    PowerPointObject toPoint{ get; }
-    bool broken { get; }
-} 
-
-public interface PowerPointObject
-{
-    List<PowerLineObject> lines { get; }
-    bool powerIsON { get; set; }
-    
-}
diff --git a/MES_Wind/MES_Wind.csproj b/MES_Wind/MES_Wind.csproj
index 6dcf6610abaf9728abb86b648cc5ca7be92112ec..6e6d9dd3c09e3a3a4e637fc4996f96eac09d321b 100644
--- a/MES_Wind/MES_Wind.csproj
+++ b/MES_Wind/MES_Wind.csproj
@@ -124,7 +124,6 @@
       <LastGenOutput>Resources.Designer.cs</LastGenOutput>
       <SubType>Designer</SubType>
     </EmbeddedResource>
-    <Compile Include="Interface.cs" />
     <Compile Include="Properties\Resources.Designer.cs">
       <AutoGen>True</AutoGen>
       <DependentUpon>Resources.resx</DependentUpon>
diff --git a/MES_Wind/bin/Debug/MES_Wind.exe b/MES_Wind/bin/Debug/MES_Wind.exe
index a7963400861fbafd40af881b92908575887349d0..6cb4b40ddd4401dd0f8a7916e4ac8bd34b4b6e5b 100644
Binary files a/MES_Wind/bin/Debug/MES_Wind.exe and b/MES_Wind/bin/Debug/MES_Wind.exe differ
diff --git a/MES_Wind/bin/Debug/MES_Wind.pdb b/MES_Wind/bin/Debug/MES_Wind.pdb
index 4e07adf3b75636e0e087d217152c977a1006674e..c10a47ebd6caa4a64bc897e567302979b8ee5f9b 100644
Binary files a/MES_Wind/bin/Debug/MES_Wind.pdb and b/MES_Wind/bin/Debug/MES_Wind.pdb differ
diff --git a/MES_Wind/frmMain.cs b/MES_Wind/frmMain.cs
index d7e7aeaa05a146eb09122c97526d809c92380eb0..45420cbe96899e638a17371aee4146c21552711a 100644
--- a/MES_Wind/frmMain.cs
+++ b/MES_Wind/frmMain.cs
@@ -65,242 +65,18 @@ namespace MES_Wind
             prpoint.Y = ftpoint.Y;
             return prpoint;
         }
-        public List<CheckPoint> CalcBrkPoint(double startX, double startY, double endX, double endY, double dThreshold, IMapRasterLayer Uwind_raster, IMapRasterLayer Vwind_raster, IMapRasterLayer clim_layer, double h)
-        {
-            List<CheckPoint> lineCheckPoint = new List<CheckPoint>();
-            double uwind = 0;
-            double vwind = 0;
-            double umod = 0;
-            double sinwind = 0;
-            double anglewind = 0;
-            double angleline = Math.Atan2((endY - startY),(endX - startX));
-            double climwind = 0;
-            double distance = Math.Sqrt((endX - startX) * (endX - startX) + (endY - startY) * (endY - startY));
-            double distpropD = distance / dThreshold;
-            int distpropI = Convert.ToInt32(distpropD);
-            double curX = startX;
-            double curY = startY;
-            CheckPoint chkpnt = new CheckPoint();
-            if (distpropI > 1)
-            {
-                double constXdiff = (endX - startX) / distpropI;
-                double constYdiff = (endY - startY) / distpropI;
-                for (int j = 1; j < distpropI + 1; j++)
-                {
-                    if (j == 1)
-                    {
-                        curX = startX + constXdiff / 2;
-                        curY = startY + constXdiff / 2; 
-                    }
-                    else
-                    {
-                        curX = curX + constXdiff;
-                        curY = curY + constYdiff;
-                    }
-                    Coordinate coords = new Coordinate(curX,curY);
-                    uwind = interpol(coords, Uwind_raster);
-                    vwind = interpol(coords, Vwind_raster);
-                    climwind = interpol(coords, clim_layer);
-                    umod = Math.Sqrt(uwind*uwind + vwind*vwind);
-                    anglewind = Math.Atan2(vwind,uwind) - angleline;
-                    sinwind = Math.Sin(anglewind);
-                    double C_height = 1.0;
-                    if (umod < 20)
-                    { //wind is too low 
-                        chkpnt.Ifbroken = false;
-                    }
-                    else
-                    {    // calculate prognostic and threshold windstress
-                        double p1 = -0.00078501;
-                        double p2 = 0.13431;
-                        double p3 = -2.11112;
-                        double p4 = 19.548;
-                        double qpr = p1 * umod * umod * umod + p2 * umod * umod + p3 * umod + p4;
-                        double qcl = p1 * climwind * climwind * climwind + p2 * climwind * climwind + p3 * climwind + p4;
-                        double Ppr = qpr * C_height * sinwind * sinwind;
-                        double Pcl = qcl * C_height * 1.0;
-                        if (Ppr >= Pcl)
-                        {
-                            chkpnt.Ifbroken = true;
-                        }
-                        else
-                        {
-                            chkpnt.Ifbroken = false;
-                        }
-                    }
-                    chkpnt.X = curX;
-                    chkpnt.Y = curY;
-                   
-                    lineCheckPoint.Add(chkpnt);
-                }
-            }
-            else
-            {
-                 
-            }
-            return lineCheckPoint;
-        }
+        
         public IFeatureSet brokenpoints(List<CheckPoint> chklist)
         {
             IFeatureSet points = new FeatureSet(FeatureType.Point);
             Coordinate chkcords = new Coordinate();
             return points;
         }
-        public IFeatureSet main_layer_function(IMapLineLayer pwlines, IFeatureSet pwlineSet, IMapRasterLayer u_raster,
-            IMapRasterLayer v_raster, IMapRasterLayer clim15_raster, IMapRasterLayer clim10_raster, IMapRasterLayer clim5_raster)
-        {
-            IFeatureSet result_layer = new FeatureSet(FeatureType.Line);
-            List<CheckPoint> fullCheckList = new List<CheckPoint>();
-            foreach (IFeature feature in pwlineSet.Features)
-            {
-                List<CheckPoint> lineCheckList = new List<CheckPoint>();
-                //get associated attributes
-                DataRow featureData = feature.DataRow;
-                int id = int.Parse(featureData["Shape_ID"].ToString());
-                int year = int.Parse(featureData["Year"].ToString());
-                double height = double.Parse(featureData["HeightOffs"].ToString());
-                int power = int.Parse(featureData["Power"].ToString());
-                LineString linestr = feature.BasicGeometry as LineString;
-                if (linestr != null)
-                { // case if powerline consists of one line
-                  // get coordinates list
-                    IList<Coordinate> points = linestr.Coordinates;
-
 
-                    // cycle throw all points in line
-                    for (int i = 1; i < points.Count; i++)
-                    {
-                        List<CheckPoint> segmentCheckList = new List<CheckPoint>();
-                        double x1 = points[i - 1].X;
-                        double y1 = points[i - 1].Y;
-                        double x2 = points[i].X;
-                        double y2 = points[i].Y;
-                        if (power > 5 && power < 330)
-                        {
-                            segmentCheckList = CalcBrkPoint(x1, y1, x2, y2, distThreshold, u_raster, v_raster, clim10_raster, height);
-                        }
-                        else
-                        {
-                            if (power < 5)
-                            {
-                                segmentCheckList = CalcBrkPoint(x1, y1, x2, y2, distThreshold, u_raster, v_raster, clim5_raster, height);
-                            }
-                            else
-                            {
-                                segmentCheckList = CalcBrkPoint(x1, y1, x2, y2, distThreshold, u_raster, v_raster, clim15_raster, height);
-                            }
-                            }
-                        lineCheckList.AddRange(segmentCheckList);
-                    }
-                    bool linechek = false;
-                    foreach (CheckPoint chkpnt in lineCheckList)
-                    {
-                        if (chkpnt.Ifbroken == true)
-                        { linechek = true; }
-                    }
-                    if (linechek == true)
-                    {
-                        IFeature lineFeature = result_layer.AddFeature(linestr);
-                    }
-                    fullCheckList.AddRange(lineCheckList);
-
-                }
-                else {
-                    MessageBox.Show("shit you trying to feed it is not a simple line");
-                }
-            }
-
-            return result_layer;
-        }
-        public double interpol(Coordinate coords, IMapRasterLayer raster)
-        {
-            const bool normalX = true;
-            const bool normalY = false;
-            RcIndex rc = raster.DataSet.Bounds.ProjToCell(coords);
-            Coordinate center = raster.DataSet.Bounds.CellCenter_ToProj(rc.Row, rc.Column);
-            double xDiff = coords.X - center.X;
-            double yDiff = coords.Y - center.Y;
-            //calculate second index
-            int row2, col2;
-            if ((xDiff >= 0 && normalX ) || (!normalX && xDiff < 0))
-            {
-                row2 = rc.Row >= raster.DataSet.EndRow ? rc.Row - 1 : rc.Row + 1;
-            }
-            else
-            {
-                row2 = rc.Row > 0 ? rc.Row - 1 : rc.Row + 1;
-            }
-            if ( (yDiff >= 0 && normalY) || (!normalY && yDiff < 0))
-            {
-                col2 = rc.Column >= raster.DataSet.EndColumn ? rc.Column - 1 : rc.Column + 1;
-            }
-            else
-            {
-                col2 = rc.Column > 0 ? rc.Column - 1 : rc.Column + 1;
-            }
-            // indexes and values at bounds
-            RcIndex rcBotLeft  = new RcIndex(Math.Min(row2, rc.Row), Math.Min(col2, rc.Column));
-            RcIndex rcBotRight = new RcIndex(Math.Max(row2, rc.Row), Math.Min(col2, rc.Column));
-            RcIndex rcTopLeft  = new RcIndex(Math.Min(row2, rc.Row), Math.Max(col2, rc.Column));
-            RcIndex rcTopRight = new RcIndex(Math.Max(row2, rc.Row), Math.Max(col2, rc.Column));
-            double valBotLeft  = raster.DataSet.Value[rcBotLeft.Row, rcBotLeft.Column];
-            double valBotRight = raster.DataSet.Value[rcBotRight.Row, rcBotRight.Column];
-            double valTopLeft  = raster.DataSet.Value[rcTopLeft.Row, rcTopLeft.Column];
-            double valTopRight = raster.DataSet.Value[rcTopRight.Row, rcTopRight.Column];
-            Coordinate origin = raster.DataSet.CellToProj(rcBotLeft.Row, rcBotLeft.Column);
-            //Coordinate last = raster.DataSet.CellToProj(rcTopRight.Row, rcTopRight.Column);//test only
-            // sizes for cell
-            double hx = raster.DataSet.Bounds.CellWidth;
-            double hy = raster.DataSet.Bounds.CellHeight;
-            // coefficients
-            double px = (coords.X - origin.X) / hx;
-            double py = (coords.Y - origin.Y) / hy;
-            // inverse directions
-            px *= normalX ? 1 : -1;
-            py *= normalY ? 1 : -1;
-            // interpolation
-            double top = (1 - px) * valTopLeft + px * valTopRight;
-            double bot = (1 - px) * valBotLeft + px * valBotRight;
-            double rval = (1 - py) * bot + py * top;
-            return rval;
-        }
-
-        // so, we start at source power Point; actually call this foreach source point
-        public void checkPowerPoint(PowerPointObject sourcePoint)
-        {
-            if (!sourcePoint.powerIsON) { 
-                // so we have source without power
-                MessageBox.Show("checkPowerPoint called with disabled source point");
-                return;
-            }
-            // looking for unbroken lines and switch power for this point
-            foreach (PowerLineObject line in sourcePoint.lines) {
-                if (!line.broken && !line.toPoint.powerIsON) {
-                    // switch power and check on subpoints.
-                    line.toPoint.powerIsON = true;
-                    checkPowerPoint(line.toPoint);
-                }
-                // else we have broken line or already switched power point
-            }
-        }
-
-        // find all disabled power points
-        public List<PowerPointObject> findDisabledPoints(List<PowerPointObject> pPoints)
-        {
-            List<PowerPointObject> result = new List<PowerPointObject>();
-            foreach (PowerPointObject point in pPoints) {
-                if (!point.powerIsON) {
-                    // if disabled, we add it
-                    result.Add(point);
-                }
-            }
-            return result;
-        }
         private void bntLoadWindX_Click(object sender, EventArgs e)
         {
             map1.AddLayer();
             map1.ZoomToMaxExtent();
-
         }
 
         private void btnLoadWindY_Click(object sender, EventArgs e)
@@ -368,7 +144,6 @@ namespace MES_Wind
                     MessageBox.Show("Please add a raster layer");
                     return;
                 }
-
                 //this makes raster layers list in map1 ordered!
                 u_rasterLayer = map1.GetRasterLayers()[0];
                 v_rasterLayer = map1.GetRasterLayers()[1];
@@ -482,7 +257,7 @@ namespace MES_Wind
                         }
                         else
                         {
-                            MessageBox.Show("Some enteties in Column IsSource of powerstation datatable are not strict ones or zeros");
+                            MessageBox.Show("Some entities in Column IsSource of powerstation datatable are not strict ones or zeros");
                         }
                     }
                     dummystation.type = featureData["Type"].ToString();
@@ -507,13 +282,13 @@ namespace MES_Wind
                 // new FeatureSet for resulting broken powerlines
                 //IFeatureSet brklineSet = new FeatureSet(FeatureType.Line);
                 //DataTable dt = pwlineSet.DataTable;
-                IFeatureSet brk_info = new FeatureSet(FeatureType.Line);
-                brk_info = main_layer_function(pwlLayer, pwlineSet, u_rasterLayer, v_rasterLayer, clim15_rasterLayer, clim10_rasterLayer, clim5_rasterLayer);
+                //IFeatureSet brk_info = new FeatureSet(FeatureType.Line);
+                //brk_info = main_layer_function(pwlLayer, pwlineSet, u_rasterLayer, v_rasterLayer, clim15_rasterLayer, clim10_rasterLayer, clim5_rasterLayer);
 
-                IMapLineLayer brk_info_layer = (MapLineLayer)map1.Layers.Add(brk_info);
-                LineSymbolizer symbol = new LineSymbolizer(Color.Red, 3);
-                brk_info_layer.Symbolizer = symbol;
-                brk_info_layer.LegendText = "Broken powerlines";
+                //IMapLineLayer brk_info_layer = (MapLineLayer)map1.Layers.Add(brk_info);
+                //LineSymbolizer symbol = new LineSymbolizer(Color.Red, 3);
+                //brk_info_layer.Symbolizer = symbol;
+                //brk_info_layer.LegendText = "Broken powerlines";
 
             }
             catch (Exception ex)
diff --git a/MES_Wind/obj/Debug/MES_Wind.exe b/MES_Wind/obj/Debug/MES_Wind.exe
index a7963400861fbafd40af881b92908575887349d0..6cb4b40ddd4401dd0f8a7916e4ac8bd34b4b6e5b 100644
Binary files a/MES_Wind/obj/Debug/MES_Wind.exe and b/MES_Wind/obj/Debug/MES_Wind.exe differ
diff --git a/MES_Wind/obj/Debug/MES_Wind.pdb b/MES_Wind/obj/Debug/MES_Wind.pdb
index 4e07adf3b75636e0e087d217152c977a1006674e..c10a47ebd6caa4a64bc897e567302979b8ee5f9b 100644
Binary files a/MES_Wind/obj/Debug/MES_Wind.pdb and b/MES_Wind/obj/Debug/MES_Wind.pdb differ