chenlinyanfa@superscene.com.cn 7 年之前
父節點
當前提交
d0aa354355
共有 42 個文件被更改,包括 6278 次插入3 次删除
  1. 1 1
      .gitattributes
  2. 13 2
      .gitignore
  3. 25 0
      parkMonitor.sln
  4. 6 0
      parkMonitor/App.config
  5. 19 0
      parkMonitor/App.xaml
  6. 15 0
      parkMonitor/App.xaml.cs
  7. 56 0
      parkMonitor/Properties/AssemblyInfo.cs
  8. 213 0
      parkMonitor/Properties/Resources.Designer.cs
  9. 166 0
      parkMonitor/Properties/Resources.resx
  10. 26 0
      parkMonitor/Properties/Settings.Designer.cs
  11. 7 0
      parkMonitor/Properties/Settings.settings
  12. 151 0
      parkMonitor/parkMonitor.csproj
  13. 二進制
      parkMonitor/resource/map/back.png
  14. 二進制
      parkMonitor/resource/map/camera.png
  15. 二進制
      parkMonitor/resource/map/camera_slt.png
  16. 二進制
      parkMonitor/resource/map/laser.png
  17. 二進制
      parkMonitor/resource/map/laser_slt.png
  18. 二進制
      parkMonitor/resource/map/mobile.png
  19. 二進制
      parkMonitor/resource/map/pc.png
  20. 二進制
      parkMonitor/resource/map/raster.png
  21. 二進制
      parkMonitor/resource/map/raster_slt.png
  22. 二進制
      parkMonitor/resource/map/tongs.png
  23. 二進制
      parkMonitor/resource/map/tongs_slt.png
  24. 二進制
      parkMonitor/resource/map/wave.png
  25. 二進制
      parkMonitor/resource/map/wave_slt.png
  26. 二進制
      parkMonitor/resource/origin/com.blend
  27. 二進制
      parkMonitor/resource/origin/com.blend1
  28. 279 0
      parkMonitor/resource/origin/com32.svg
  29. 4627 0
      parkMonitor/resource/origin/map.ai
  30. 二進制
      parkMonitor/resource/origin/map.psd
  31. 二進制
      parkMonitor/resource/tree_close.png
  32. 二進制
      parkMonitor/resource/tree_open.png
  33. 248 0
      parkMonitor/view/mainWin/MainWindow.xaml
  34. 76 0
      parkMonitor/view/mainWin/MainWindow.xaml.cs
  35. 5 0
      parkMonitor/view/style/ComStyle.xaml
  36. 5 0
      parkMonitor/view/style/Test.xaml
  37. 146 0
      parkMonitor/view/style/TreeViewItemImage.xaml
  38. 66 0
      parkMonitor/view/util/imageButton/ImageButton.cs
  39. 37 0
      parkMonitor/view/util/imageButton/ImageButton.xaml
  40. 28 0
      parkMonitor/viewModel/MainWinVM.cs
  41. 28 0
      parkMonitor/viewModel/ObjectTreeRootVM.cs
  42. 35 0
      parkMonitor/viewModel/ObjectVM.cs

+ 1 - 1
.gitattributes

@@ -1,4 +1,4 @@
-###############################################################################
+###############################################################################
 # Set default behavior to automatically normalize line endings.
 ###############################################################################
 * text=auto

+ 13 - 2
.gitignore

@@ -1,4 +1,4 @@
-## Ignore Visual Studio temporary files, build results, and
+## Ignore Visual Studio temporary files, build results, and
 ## files generated by popular Visual Studio add-ons.
 
 # User-specific files
@@ -90,7 +90,7 @@ DocProject/Help/Html2
 DocProject/Help/html
 
 # Click-Once directory
-publish/
+# publish/
 
 # Publish Web Output
 *.Publish.xml
@@ -154,3 +154,14 @@ $RECYCLE.BIN/
 
 # Mac desktop service store files
 .DS_Store
+
+*.orig
+
+# =========================
+# java project
+.idea/
+.settings/
+.myeclipse/
+.mymetadata
+
+.vs

+ 25 - 0
parkMonitor.sln

@@ -0,0 +1,25 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 15
+VisualStudioVersion = 15.0.27428.2002
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "parkMonitor", "parkMonitor\parkMonitor.csproj", "{DD3DCAB1-41A7-4EED-ADEE-9E4BBCE6B4C0}"
+EndProject
+Global
+	GlobalSection(SolutionConfigurationPlatforms) = preSolution
+		Debug|Any CPU = Debug|Any CPU
+		Release|Any CPU = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(ProjectConfigurationPlatforms) = postSolution
+		{DD3DCAB1-41A7-4EED-ADEE-9E4BBCE6B4C0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{DD3DCAB1-41A7-4EED-ADEE-9E4BBCE6B4C0}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{DD3DCAB1-41A7-4EED-ADEE-9E4BBCE6B4C0}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{DD3DCAB1-41A7-4EED-ADEE-9E4BBCE6B4C0}.Release|Any CPU.Build.0 = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(SolutionProperties) = preSolution
+		HideSolutionNode = FALSE
+	EndGlobalSection
+	GlobalSection(ExtensibilityGlobals) = postSolution
+		SolutionGuid = {83655E23-140D-40E3-95BA-32F8FD8ECBBA}
+	EndGlobalSection
+EndGlobal

+ 6 - 0
parkMonitor/App.config

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+    <startup> 
+        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
+    </startup>
+</configuration>

+ 19 - 0
parkMonitor/App.xaml

@@ -0,0 +1,19 @@
+<Application x:Class="parkMonitor.App"
+             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+             xmlns:local="clr-namespace:parkMonitor"
+             StartupUri="/view/mainWin/MainWindow.xaml">
+    <Application.Resources>
+		<ResourceDictionary>
+			<ResourceDictionary.MergedDictionaries>
+				<ResourceDictionary Source="view/style/TreeViewItemImage.xaml"/>
+				
+				<ResourceDictionary Source="view/style/ComStyle.xaml"/>
+				<ResourceDictionary Source="view/style/Test.xaml"/>
+
+				<ResourceDictionary Source="view/util/imageButton/ImageButton.xaml"/>
+
+			</ResourceDictionary.MergedDictionaries>
+		</ResourceDictionary>
+	</Application.Resources>
+</Application>

+ 15 - 0
parkMonitor/App.xaml.cs

@@ -0,0 +1,15 @@
+using System;
+using System.Collections.Generic;
+using System.Configuration;
+using System.Data;
+using System.Linq;
+using System.Threading.Tasks;
+using System.Windows;
+
+namespace parkMonitor {
+	/// <summary>
+	/// App.xaml 的交互逻辑
+	/// </summary>
+	public partial class App : Application {
+	}
+}

+ 56 - 0
parkMonitor/Properties/AssemblyInfo.cs

@@ -0,0 +1,56 @@
+using System.Reflection;
+using System.Resources;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+using System.Windows;
+using System.Windows.Markup;
+
+// 有关程序集的一般信息由以下
+// 控制。更改这些特性值可修改
+// 与程序集关联的信息。
+[assembly: AssemblyTitle("parkMonitor")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Microsoft")]
+[assembly: AssemblyProduct("parkMonitor")]
+[assembly: AssemblyCopyright("Copyright © Microsoft 2018")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// 将 ComVisible 设置为 false 会使此程序集中的类型
+//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
+//请将此类型的 ComVisible 特性设置为 true。
+[assembly: ComVisible(false)]
+
+//若要开始生成可本地化的应用程序,请设置
+//.csproj 文件中的 <UICulture>CultureYouAreCodingWith</UICulture>
+//例如,如果您在源文件中使用的是美国英语,
+//使用的是美国英语,请将 <UICulture> 设置为 en-US。  然后取消
+//对以下 NeutralResourceLanguage 特性的注释。  更新
+//以下行中的“en-US”以匹配项目文件中的 UICulture 设置。
+
+//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
+
+
+[assembly: ThemeInfo(
+	ResourceDictionaryLocation.None, //主题特定资源词典所处位置
+									 //(未在页面中找到资源时使用,
+									 //或应用程序资源字典中找到时使用)
+	ResourceDictionaryLocation.SourceAssembly //常规资源词典所处位置
+											  //(未在页面中找到资源时使用,
+											  //、应用程序或任何主题专用资源字典中找到时使用)
+)]
+
+
+// 程序集的版本信息由下列四个值组成: 
+//
+//      主版本
+//      次版本
+//      生成号
+//      修订号
+//
+// 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
+// 方法是按如下所示使用“*”: :
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]

+ 213 - 0
parkMonitor/Properties/Resources.Designer.cs

@@ -0,0 +1,213 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     此代码由工具生成。
+//     运行时版本:4.0.30319.42000
+//
+//     对此文件的更改可能会导致不正确的行为,并且如果
+//     重新生成代码,这些更改将会丢失。
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace parkMonitor.Properties {
+    using System;
+    
+    
+    /// <summary>
+    ///   一个强类型的资源类,用于查找本地化的字符串等。
+    /// </summary>
+    // 此类是由 StronglyTypedResourceBuilder
+    // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
+    // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
+    // (以 /str 作为命令选项),或重新生成 VS 项目。
+    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.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>
+        ///   返回此类使用的缓存的 ResourceManager 实例。
+        /// </summary>
+        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+        internal static global::System.Resources.ResourceManager ResourceManager {
+            get {
+                if (object.ReferenceEquals(resourceMan, null)) {
+                    global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("parkMonitor.Properties.Resources", typeof(Resources).Assembly);
+                    resourceMan = temp;
+                }
+                return resourceMan;
+            }
+        }
+        
+        /// <summary>
+        ///   使用此强类型资源类,为所有资源查找
+        ///   重写当前线程的 CurrentUICulture 属性。
+        /// </summary>
+        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+        internal static global::System.Globalization.CultureInfo Culture {
+            get {
+                return resourceCulture;
+            }
+            set {
+                resourceCulture = value;
+            }
+        }
+        
+        /// <summary>
+        ///   查找 System.Drawing.Bitmap 类型的本地化资源。
+        /// </summary>
+        internal static System.Drawing.Bitmap back {
+            get {
+                object obj = ResourceManager.GetObject("back", resourceCulture);
+                return ((System.Drawing.Bitmap)(obj));
+            }
+        }
+        
+        /// <summary>
+        ///   查找 System.Drawing.Bitmap 类型的本地化资源。
+        /// </summary>
+        internal static System.Drawing.Bitmap camera {
+            get {
+                object obj = ResourceManager.GetObject("camera", resourceCulture);
+                return ((System.Drawing.Bitmap)(obj));
+            }
+        }
+        
+        /// <summary>
+        ///   查找 System.Drawing.Bitmap 类型的本地化资源。
+        /// </summary>
+        internal static System.Drawing.Bitmap camera_slt {
+            get {
+                object obj = ResourceManager.GetObject("camera_slt", resourceCulture);
+                return ((System.Drawing.Bitmap)(obj));
+            }
+        }
+        
+        /// <summary>
+        ///   查找 System.Drawing.Bitmap 类型的本地化资源。
+        /// </summary>
+        internal static System.Drawing.Bitmap laser {
+            get {
+                object obj = ResourceManager.GetObject("laser", resourceCulture);
+                return ((System.Drawing.Bitmap)(obj));
+            }
+        }
+        
+        /// <summary>
+        ///   查找 System.Drawing.Bitmap 类型的本地化资源。
+        /// </summary>
+        internal static System.Drawing.Bitmap laser_slt {
+            get {
+                object obj = ResourceManager.GetObject("laser_slt", resourceCulture);
+                return ((System.Drawing.Bitmap)(obj));
+            }
+        }
+        
+        /// <summary>
+        ///   查找 System.Drawing.Bitmap 类型的本地化资源。
+        /// </summary>
+        internal static System.Drawing.Bitmap mobile {
+            get {
+                object obj = ResourceManager.GetObject("mobile", resourceCulture);
+                return ((System.Drawing.Bitmap)(obj));
+            }
+        }
+        
+        /// <summary>
+        ///   查找 System.Drawing.Bitmap 类型的本地化资源。
+        /// </summary>
+        internal static System.Drawing.Bitmap pc {
+            get {
+                object obj = ResourceManager.GetObject("pc", resourceCulture);
+                return ((System.Drawing.Bitmap)(obj));
+            }
+        }
+        
+        /// <summary>
+        ///   查找 System.Drawing.Bitmap 类型的本地化资源。
+        /// </summary>
+        internal static System.Drawing.Bitmap raster {
+            get {
+                object obj = ResourceManager.GetObject("raster", resourceCulture);
+                return ((System.Drawing.Bitmap)(obj));
+            }
+        }
+        
+        /// <summary>
+        ///   查找 System.Drawing.Bitmap 类型的本地化资源。
+        /// </summary>
+        internal static System.Drawing.Bitmap raster_slt {
+            get {
+                object obj = ResourceManager.GetObject("raster_slt", resourceCulture);
+                return ((System.Drawing.Bitmap)(obj));
+            }
+        }
+        
+        /// <summary>
+        ///   查找 System.Drawing.Bitmap 类型的本地化资源。
+        /// </summary>
+        internal static System.Drawing.Bitmap tongs {
+            get {
+                object obj = ResourceManager.GetObject("tongs", resourceCulture);
+                return ((System.Drawing.Bitmap)(obj));
+            }
+        }
+        
+        /// <summary>
+        ///   查找 System.Drawing.Bitmap 类型的本地化资源。
+        /// </summary>
+        internal static System.Drawing.Bitmap tongs_slt {
+            get {
+                object obj = ResourceManager.GetObject("tongs_slt", resourceCulture);
+                return ((System.Drawing.Bitmap)(obj));
+            }
+        }
+        
+        /// <summary>
+        ///   查找 System.Drawing.Bitmap 类型的本地化资源。
+        /// </summary>
+        internal static System.Drawing.Bitmap tree_close {
+            get {
+                object obj = ResourceManager.GetObject("tree_close", resourceCulture);
+                return ((System.Drawing.Bitmap)(obj));
+            }
+        }
+        
+        /// <summary>
+        ///   查找 System.Drawing.Bitmap 类型的本地化资源。
+        /// </summary>
+        internal static System.Drawing.Bitmap tree_open {
+            get {
+                object obj = ResourceManager.GetObject("tree_open", resourceCulture);
+                return ((System.Drawing.Bitmap)(obj));
+            }
+        }
+        
+        /// <summary>
+        ///   查找 System.Drawing.Bitmap 类型的本地化资源。
+        /// </summary>
+        internal static System.Drawing.Bitmap wave {
+            get {
+                object obj = ResourceManager.GetObject("wave", resourceCulture);
+                return ((System.Drawing.Bitmap)(obj));
+            }
+        }
+        
+        /// <summary>
+        ///   查找 System.Drawing.Bitmap 类型的本地化资源。
+        /// </summary>
+        internal static System.Drawing.Bitmap wave_slt {
+            get {
+                object obj = ResourceManager.GetObject("wave_slt", resourceCulture);
+                return ((System.Drawing.Bitmap)(obj));
+            }
+        }
+    }
+}

+ 166 - 0
parkMonitor/Properties/Resources.resx

@@ -0,0 +1,166 @@
+<?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>
+  <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
+  <data name="back" type="System.Resources.ResXFileRef, System.Windows.Forms">
+    <value>..\resource\map\back.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+  </data>
+  <data name="camera" type="System.Resources.ResXFileRef, System.Windows.Forms">
+    <value>..\resource\map\camera.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+  </data>
+  <data name="camera_slt" type="System.Resources.ResXFileRef, System.Windows.Forms">
+    <value>..\resource\map\camera_slt.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+  </data>
+  <data name="laser" type="System.Resources.ResXFileRef, System.Windows.Forms">
+    <value>..\resource\map\laser.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+  </data>
+  <data name="laser_slt" type="System.Resources.ResXFileRef, System.Windows.Forms">
+    <value>..\resource\map\laser_slt.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+  </data>
+  <data name="mobile" type="System.Resources.ResXFileRef, System.Windows.Forms">
+    <value>..\resource\map\mobile.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+  </data>
+  <data name="pc" type="System.Resources.ResXFileRef, System.Windows.Forms">
+    <value>..\resource\map\pc.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+  </data>
+  <data name="raster" type="System.Resources.ResXFileRef, System.Windows.Forms">
+    <value>..\resource\map\raster.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+  </data>
+  <data name="raster_slt" type="System.Resources.ResXFileRef, System.Windows.Forms">
+    <value>..\resource\map\raster_slt.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+  </data>
+  <data name="tongs" type="System.Resources.ResXFileRef, System.Windows.Forms">
+    <value>..\resource\map\tongs.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+  </data>
+  <data name="tongs_slt" type="System.Resources.ResXFileRef, System.Windows.Forms">
+    <value>..\resource\map\tongs_slt.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+  </data>
+  <data name="tree_close" type="System.Resources.ResXFileRef, System.Windows.Forms">
+    <value>..\resource\tree_close.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+  </data>
+  <data name="tree_open" type="System.Resources.ResXFileRef, System.Windows.Forms">
+    <value>..\resource\tree_open.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+  </data>
+  <data name="wave" type="System.Resources.ResXFileRef, System.Windows.Forms">
+    <value>..\resource\map\wave.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+  </data>
+  <data name="wave_slt" type="System.Resources.ResXFileRef, System.Windows.Forms">
+    <value>..\resource\map\wave_slt.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+  </data>
+</root>

+ 26 - 0
parkMonitor/Properties/Settings.Designer.cs

@@ -0,0 +1,26 @@
+//------------------------------------------------------------------------------
+// <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 parkMonitor.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;
+			}
+		}
+	}
+}

+ 7 - 0
parkMonitor/Properties/Settings.settings

@@ -0,0 +1,7 @@
+<?xml version='1.0' encoding='utf-8'?>
+<SettingsFile xmlns="uri:settings" CurrentProfile="(Default)">
+  <Profiles>
+    <Profile Name="(Default)" />
+  </Profiles>
+  <Settings />
+</SettingsFile>

+ 151 - 0
parkMonitor/parkMonitor.csproj

@@ -0,0 +1,151 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="15.0" 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>{DD3DCAB1-41A7-4EED-ADEE-9E4BBCE6B4C0}</ProjectGuid>
+    <OutputType>WinExe</OutputType>
+    <RootNamespace>parkMonitor</RootNamespace>
+    <AssemblyName>parkMonitor</AssemblyName>
+    <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
+    <FileAlignment>512</FileAlignment>
+    <ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
+    <WarningLevel>4</WarningLevel>
+    <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
+  </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="System" />
+    <Reference Include="System.Data" />
+    <Reference Include="System.Drawing" />
+    <Reference Include="System.Xml" />
+    <Reference Include="Microsoft.CSharp" />
+    <Reference Include="System.Core" />
+    <Reference Include="System.Xml.Linq" />
+    <Reference Include="System.Data.DataSetExtensions" />
+    <Reference Include="System.Net.Http" />
+    <Reference Include="System.Xaml">
+      <RequiredTargetFramework>4.0</RequiredTargetFramework>
+    </Reference>
+    <Reference Include="WindowsBase" />
+    <Reference Include="PresentationCore" />
+    <Reference Include="PresentationFramework" />
+  </ItemGroup>
+  <ItemGroup>
+    <ApplicationDefinition Include="App.xaml">
+      <Generator>MSBuild:Compile</Generator>
+      <SubType>Designer</SubType>
+    </ApplicationDefinition>
+    <Compile Include="viewModel\MainWinVM.cs" />
+    <Compile Include="viewModel\ObjectTreeRootVM.cs" />
+    <Compile Include="viewModel\ObjectVM.cs" />
+    <Compile Include="view\util\imageButton\ImageButton.cs" />
+    <Page Include="view\mainWin\MainWindow.xaml">
+      <Generator>MSBuild:Compile</Generator>
+      <SubType>Designer</SubType>
+    </Page>
+    <Compile Include="App.xaml.cs">
+      <DependentUpon>App.xaml</DependentUpon>
+      <SubType>Code</SubType>
+    </Compile>
+    <Compile Include="view\mainWin\MainWindow.xaml.cs">
+      <DependentUpon>MainWindow.xaml</DependentUpon>
+      <SubType>Code</SubType>
+    </Compile>
+    <Page Include="view\style\ComStyle.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
+    <Page Include="view\style\Test.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
+    <Page Include="view\style\TreeViewItemImage.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
+    <Page Include="view\util\imageButton\ImageButton.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="Properties\AssemblyInfo.cs">
+      <SubType>Code</SubType>
+    </Compile>
+    <Compile Include="Properties\Resources.Designer.cs">
+      <AutoGen>True</AutoGen>
+      <DesignTime>True</DesignTime>
+      <DependentUpon>Resources.resx</DependentUpon>
+    </Compile>
+    <Compile Include="Properties\Settings.Designer.cs">
+      <AutoGen>True</AutoGen>
+      <DependentUpon>Settings.settings</DependentUpon>
+      <DesignTimeSharedInput>True</DesignTimeSharedInput>
+    </Compile>
+    <EmbeddedResource Include="Properties\Resources.resx">
+      <Generator>ResXFileCodeGenerator</Generator>
+      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
+    </EmbeddedResource>
+    <None Include="Properties\Settings.settings">
+      <Generator>SettingsSingleFileGenerator</Generator>
+      <LastGenOutput>Settings.Designer.cs</LastGenOutput>
+    </None>
+  </ItemGroup>
+  <ItemGroup>
+    <None Include="App.config" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="resource\map\camera_slt.png" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="resource\map\back.png" />
+    <Resource Include="resource\map\camera.png" />
+    <Resource Include="resource\map\laser.png" />
+    <Resource Include="resource\map\mobile.png" />
+    <Resource Include="resource\map\pc.png" />
+    <Resource Include="resource\map\raster.png" />
+    <Resource Include="resource\map\tongs.png" />
+    <Resource Include="resource\map\wave.png" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="resource\map\laser_slt.png" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="resource\map\raster_slt.png" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="resource\map\tongs_slt.png" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="resource\map\wave_slt.png" />
+  </ItemGroup>
+  <ItemGroup>
+    <Folder Include="model\" />
+    <Folder Include="sdk\superscene\ui\" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="resource\tree_close.png" />
+    <Resource Include="resource\tree_open.png" />
+  </ItemGroup>
+  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+</Project>

二進制
parkMonitor/resource/map/back.png


二進制
parkMonitor/resource/map/camera.png


二進制
parkMonitor/resource/map/camera_slt.png


二進制
parkMonitor/resource/map/laser.png


二進制
parkMonitor/resource/map/laser_slt.png


二進制
parkMonitor/resource/map/mobile.png


二進制
parkMonitor/resource/map/pc.png


二進制
parkMonitor/resource/map/raster.png


二進制
parkMonitor/resource/map/raster_slt.png


二進制
parkMonitor/resource/map/tongs.png


二進制
parkMonitor/resource/map/tongs_slt.png


二進制
parkMonitor/resource/map/wave.png


二進制
parkMonitor/resource/map/wave_slt.png


二進制
parkMonitor/resource/origin/com.blend


二進制
parkMonitor/resource/origin/com.blend1


文件差異過大導致無法顯示
+ 279 - 0
parkMonitor/resource/origin/com32.svg


文件差異過大導致無法顯示
+ 4627 - 0
parkMonitor/resource/origin/map.ai


二進制
parkMonitor/resource/origin/map.psd


二進制
parkMonitor/resource/tree_close.png


二進制
parkMonitor/resource/tree_open.png


+ 248 - 0
parkMonitor/view/mainWin/MainWindow.xaml

@@ -0,0 +1,248 @@
+<Window x:Class="parkMonitor.MainWindow"
+        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+		xmlns:sys="clr-namespace:System;assembly=mscorlib"
+        xmlns:local="clr-namespace:parkMonitor"
+        xmlns:util="clr-namespace:parkMonitor.view.util"
+        mc:Ignorable="d"
+		Name="win"
+        Title="智能泊车系统" Height="700" Width="1100">
+	<Window.Resources>
+		<ResourceDictionary>
+			<GridLength x:Key="colWidthName">20</GridLength>
+			<GridLength x:Key="colWidthValue">*</GridLength>
+		</ResourceDictionary>
+	</Window.Resources>
+	<Grid Background="#4c4c4c">
+		<!--<Grid.Background>
+			<RadialGradientBrush Center="0.3,0.3">
+				<GradientStop Color="#d5d5d5" Offset="0"/>
+				<GradientStop Color="#FF7B7B7B" Offset="1.5"/>
+			</RadialGradientBrush>
+		</Grid.Background>-->
+		<Grid Margin="8" Name="grdMain">
+			<Grid.ColumnDefinitions>
+				<ColumnDefinition Width="200" MinWidth="150" MaxWidth="300"/>
+				<ColumnDefinition Width="8"/>
+				<ColumnDefinition Width="524*"/>
+				<ColumnDefinition Width="8"/>
+				<ColumnDefinition Width="100"/>
+			</Grid.ColumnDefinitions>
+			<Grid.RowDefinitions>
+				<RowDefinition Height="60"/>
+				<RowDefinition Height="8"/>
+				<RowDefinition Height="318*"/>
+				<RowDefinition Height="8"/>
+				<RowDefinition Height="20"/>
+			</Grid.RowDefinitions>
+
+			<Grid Grid.Row="2">
+				<!--<ComboBox VerticalAlignment="Top" Height="30"/>-->
+				<!--<TreeViewItem Style="{DynamicResource TreeViewItemStyle1}"/>-->
+				<Grid Margin="0,0,0,0" Name="grdTreeList">
+
+					<Border CornerRadius="8" BorderBrush="#6ceff7" BorderThickness="2"/>
+					<Grid Margin="8" VerticalAlignment="Top">
+						<Grid.ColumnDefinitions>
+							<ColumnDefinition Width="19"/>
+							<ColumnDefinition Width="{Binding DataContext.grdLenName,ElementName=win,Mode=TwoWay}" MinWidth="50"/>
+							<ColumnDefinition Width="{Binding DataContext.grdLenValue,ElementName=win,Mode=TwoWay}" MinWidth="50" />
+						</Grid.ColumnDefinitions>
+						<Label Grid.Column="1" BorderThickness="0,0,2,0" BorderBrush="#e4e4e4" Foreground="#fff" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Content="名称"/>
+						<Label Grid.Column="2" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Foreground="#fff" Content="信息"/>
+						<GridSplitter Grid.Column="1" Width="3" Background="Transparent"/>
+					</Grid>
+					<TreeView Margin="8,38,8,8" Background="Transparent" BorderThickness="0" Foreground="#fff" VirtualizingPanel.IsVirtualizing="True" Name="treeObjectInfo">
+						<!--<TreeView.ItemContainerStyle>
+							<Style TargetType="TreeViewItem">
+								<Setter Property="ItemsSource" Value="{Binding lstData}"/>
+								<Style.Triggers>
+									<Trigger Property="IsExpanded" Value="True">
+									
+									</Trigger>
+								</Style.Triggers>
+							</Style>
+						</TreeView.ItemContainerStyle>-->
+
+						<TreeView.ItemContainerStyle>
+							<Style TargetType="TreeViewItem" BasedOn="{StaticResource TreeViewItemImageStyle}">
+								<!--<Setter Property="Template">
+									<Setter.Value>
+										<ControlTemplate>
+											<Grid>
+												<Label Content="{Binding Name}"/>
+											</Grid>
+										</ControlTemplate>
+									</Setter.Value>
+								</Setter>-->
+								<Style.Resources>
+									<SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="#4ed6de"/>
+									<SolidColorBrush x:Key="{x:Static SystemColors.ControlBrushKey}" Color="#6ceff7"/>
+									<SolidColorBrush x:Key="{x:Static SystemColors.InactiveSelectionHighlightBrushKey}" Color="#4ed6de"/>
+								</Style.Resources>
+							</Style>
+						</TreeView.ItemContainerStyle>
+
+						<TreeView.ItemTemplate>
+							<HierarchicalDataTemplate ItemsSource="{Binding lstData}">
+								<Grid>
+									<Label Foreground="#fff" Content="{Binding Name}"/>
+								</Grid>
+
+								<HierarchicalDataTemplate.ItemContainerStyle>
+									<Style TargetType="TreeViewItem">
+										<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
+										<Setter Property="Template">
+											<Setter.Value>
+												<ControlTemplate>
+													<Grid>
+														<Grid.ColumnDefinitions>
+															<ColumnDefinition Width="20" />
+															<ColumnDefinition Width="{Binding DataContext.grdLenName,ElementName=win}" />
+															<ColumnDefinition Width="{Binding DataContext.grdLenValue,ElementName=win}"/>
+														</Grid.ColumnDefinitions>
+														<Ellipse Visibility="Collapsed" Width="18" Height="18">
+															<Ellipse.Fill>
+																<RadialGradientBrush>
+																	<GradientStop Color="#ecef9d" Offset="0"/>
+																	<GradientStop Color="#ecef9d" Offset="0.3"/>
+																	<GradientStop Color="#e5dd05" Offset="1"/>
+																</RadialGradientBrush>
+															</Ellipse.Fill>
+														</Ellipse>
+														<Ellipse Visibility="Collapsed" Width="18" Height="18">
+															<Ellipse.Fill>
+																<RadialGradientBrush>
+																	<GradientStop Color="#6cf476" Offset="0"/>
+																	<GradientStop Color="#6cf476" Offset="0.3"/>
+																	<GradientStop Color="#1adb27" Offset="1"/>
+																</RadialGradientBrush>
+															</Ellipse.Fill>
+														</Ellipse>
+														<Ellipse Visibility="Visible" Width="18" Height="18">
+															<Ellipse.Fill>
+																<RadialGradientBrush>
+																	<GradientStop Color="#f47373" Offset="0"/>
+																	<GradientStop Color="#f47373" Offset="0.3"/>
+																	<GradientStop Color="#e42323" Offset="1"/>
+																</RadialGradientBrush>
+															</Ellipse.Fill>
+														</Ellipse>
+														<!--<Ellipse Visibility="Visible" Width="18" Height="18" Fill="#d3d83c"/>-->
+														<Label Grid.Column="1" Foreground="#fff" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Content="{Binding Name}"/>
+														<Label Grid.Column="2" Foreground="#fff" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Content="{Binding ShortInfo}"/>
+														<Grid.Style>
+															<Style TargetType="Grid">
+																<Setter Property="Background" Value="Transparent"/>
+																<Style.Triggers>
+																	<Trigger Property="IsMouseOver" Value="True">
+																		<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
+																	</Trigger>
+																</Style.Triggers>
+															</Style>
+														</Grid.Style>
+													</Grid>
+												</ControlTemplate>
+											</Setter.Value>
+										</Setter>
+									</Style>
+								</HierarchicalDataTemplate.ItemContainerStyle>
+
+								<HierarchicalDataTemplate.ItemTemplate>
+									<HierarchicalDataTemplate ItemsSource="{x:Null}"/>
+								</HierarchicalDataTemplate.ItemTemplate>
+								<!--<HierarchicalDataTemplate.ItemTemplate>
+									<HierarchicalDataTemplate>
+										<Grid>
+											<Grid.ColumnDefinitions>
+												<ColumnDefinition SharedSizeGroup="name"/>
+												<ColumnDefinition SharedSizeGroup="value"/>
+											</Grid.ColumnDefinitions>
+											<Label HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Content="{Binding Name}"/>
+											<Label Grid.Column="1" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Content="{Binding ShortInfo}"/>
+										</Grid>
+									</HierarchicalDataTemplate>
+								</HierarchicalDataTemplate.ItemTemplate>-->
+
+								<!--<HierarchicalDataTemplate.ItemContainerStyle>
+									<Style TargetType="TreeViewItem">
+										<Setter Property="Template" >
+											<Setter.Value>
+												<ControlTemplate>
+													<Grid>
+														<Grid.ColumnDefinitions>
+															<ColumnDefinition SharedSizeGroup="name"/>
+															<ColumnDefinition SharedSizeGroup="value"/>
+														</Grid.ColumnDefinitions>
+														<Label HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Content="{Binding Name}"/>
+														<Label Grid.Column="1" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Content="{Binding ShortInfo}"/>
+													</Grid>
+												</ControlTemplate>
+											</Setter.Value>
+										</Setter>
+
+									</Style>
+								</HierarchicalDataTemplate.ItemContainerStyle>-->
+							</HierarchicalDataTemplate>
+						</TreeView.ItemTemplate>
+					</TreeView>
+				</Grid>
+			</Grid>
+
+			<GridSplitter Grid.Row="2" Grid.Column="1" Background="Transparent" HorizontalAlignment="Stretch"/>
+
+			<Grid Grid.Row="2" Grid.Column="2" >
+				<ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
+					<Canvas Margin="-50,-0,0,0" VerticalAlignment="Center" HorizontalAlignment="Center" Height="500" Width="750">
+						<Image Source="/parkMonitor;component/resource/map/back.png"/>
+						<Image Margin="500,75,0,0" Width="45" Source="/parkMonitor;component/resource/map/pc.png"/>
+						<Image Margin="560,55,0,0" Width="25" Source="/parkMonitor;component/resource/map/mobile.png"/>
+
+						<!--<Image Margin="155,100,0,0" Width="60" Source="/parkMonitor;component/resource/map/camera.png"/>
+						<Image Margin="155,100,0,0" Width="60" Source="/parkMonitor;component/resource/map/camera_slt.png"/>-->
+
+						<!--<Image Margin="300,180,0,0" Width="60" Source="/parkMonitor;component/resource/map/laser.png"/>
+						<Image Margin="300,180,0,0" Width="60" Source="/parkMonitor;component/resource/map/laser_slt.png"/>-->
+
+						<!--<Image Margin="450,260,0,0" Width="60" Source="/parkMonitor;component/resource/map/tongs.png"/>
+						<Image Margin="450,260,0,0" Width="60" Source="/parkMonitor;component/resource/map/tongs_slt.png"/>-->
+
+						<!--<Image Margin="530,310,0,0" Width="60" Source="/parkMonitor;component/resource/map/raster.png"/>
+						<Image Margin="530,310,0,0" Width="60" Source="/parkMonitor;component/resource/map/raster_slt.png"/>-->
+
+						<!--<Grid Margin="605,365,0,0">
+							<Image Width="60" Source="/parkMonitor;component/resource/map/wave.png"/>
+							<Image Width="60" Visibility="Collapsed" Source="/parkMonitor;component/resource/map/wave_slt.png"/>
+						</Grid>-->
+						<util:ImageButton Margin="150,95,0,0" Width="70" Source="/parkMonitor;component/resource/map/camera.png" LightSource="/parkMonitor;component/resource/map/camera_slt.png"/>
+						<util:ImageButton Margin="290,175,0,0" Width="70" Source="/parkMonitor;component/resource/map/laser.png" LightSource="/parkMonitor;component/resource/map/laser_slt.png"/>
+						<util:ImageButton Margin="450,260,0,0" Width="60" Source="/parkMonitor;component/resource/map/tongs.png" LightSource="/parkMonitor;component/resource/map/tongs_slt.png"/>
+						<util:ImageButton Margin="530,310,0,0" Width="60" Source="/parkMonitor;component/resource/map/raster.png" LightSource="/parkMonitor;component/resource/map/raster_slt.png" RenderTransformOrigin="0.5,0.5">
+							<util:ImageButton.RenderTransform>
+								<TransformGroup>
+									<ScaleTransform/>
+									<SkewTransform/>
+									<RotateTransform Angle="42"/>
+									<TranslateTransform/>
+								</TransformGroup>
+							</util:ImageButton.RenderTransform>
+						</util:ImageButton>
+						<util:ImageButton Margin="605,365,0,0" Width="60" Source="/parkMonitor;component/resource/map/wave.png" LightSource="/parkMonitor;component/resource/map/wave_slt.png" RenderTransformOrigin="0.5,0.5">
+							<util:ImageButton.RenderTransform>
+								<TransformGroup>
+									<ScaleTransform/>
+									<SkewTransform/>
+									<RotateTransform Angle="-45"/>
+									<TranslateTransform/>
+								</TransformGroup>
+							</util:ImageButton.RenderTransform>
+						</util:ImageButton>
+					</Canvas>
+				</ScrollViewer>
+			</Grid>
+
+		</Grid>
+	</Grid>
+</Window>

+ 76 - 0
parkMonitor/view/mainWin/MainWindow.xaml.cs

@@ -0,0 +1,76 @@
+using parkMonitor.viewModel;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+
+namespace parkMonitor {
+	/// <summary>
+	/// MainWindow.xaml 的交互逻辑
+	/// </summary>
+	public partial class MainWindow : Window {
+		List<ObjectTreeRootVM> lstObjectTree = new List<ObjectTreeRootVM>();
+
+		MainWinVM winVM = new MainWinVM();
+
+		public MainWindow() {
+			InitializeComponent();
+
+			DataContext = winVM;
+
+			//Image img = new Image();
+			//img.Source = new ImageSource();
+
+			//lstObjectTree.Add(new ObjectTreeRootVM() { lstData = new List<ObjectVM>() });
+			//string[] title = new string[] { "光栅", "超声波", "号牌机", "机械抓手", "车辆物体", "其他物体"};
+			lstObjectTree.Add(new ObjectTreeRootVM() { Name = "光栅", lstData = new List<ObjectVM>() {
+				new ObjectVM() { Name = "光栅1", ShortInfo = "正常" }, new ObjectVM() { Name = "光栅2", ShortInfo = "正常" }
+			}});
+			lstObjectTree.Add(new ObjectTreeRootVM() {
+				Name = "超声波", lstData = new List<ObjectVM>() {
+				new ObjectVM() { Name = "超声波1", ShortInfo = "正常" }, new ObjectVM() { Name = "超声波2", ShortInfo = "正常" }
+			}
+			});
+			lstObjectTree.Add(new ObjectTreeRootVM() {
+				Name = "号牌机", lstData = new List<ObjectVM>() {
+				new ObjectVM() { Name = "号牌机1", ShortInfo = "正常" }, new ObjectVM() { Name = "号牌机2", ShortInfo = "正常" }
+			}
+			});
+			lstObjectTree.Add(new ObjectTreeRootVM() {
+				Name = "机械抓手", lstData = new List<ObjectVM>() {
+				new ObjectVM() { Name = "机械抓手1", ShortInfo = "正常" }, new ObjectVM() { Name = "机械抓手2", ShortInfo = "正常" }
+			}
+			});
+			lstObjectTree.Add(new ObjectTreeRootVM() {
+				Name = "车辆物体", lstData = new List<ObjectVM>() {
+				new ObjectVM() { Name = "车辆1", ShortInfo = "正常" }, new ObjectVM() { Name = "车辆2", ShortInfo = "正常" }
+			}
+			});
+			lstObjectTree.Add(new ObjectTreeRootVM() {
+				Name = "其他物体", lstData = new List<ObjectVM>() {
+				new ObjectVM() { Name = "其他物体1", ShortInfo = "正常" }, new ObjectVM() { Name = "其他物体2", ShortInfo = "正常" }
+			}
+			});
+
+			//for(int i = 0; i < 5; ++i) {
+			//	ObjectTreeRootVM tree = new ObjectTreeRootVM();
+			//	tree.Name = "aa" + i;
+			//	tree.lstData.Add(new ObjectVM() { Name = "aaa", ShortInfo = "111" });
+			//	tree.lstData.Add(new ObjectVM() { Name = "bbb", ShortInfo = "222" });
+			//	tree.lstData.Add(new ObjectVM() { Name = "ccc", ShortInfo = "333" });
+			//	lstObjectTree.Add(tree);
+			//}
+			treeObjectInfo.ItemsSource = lstObjectTree;
+		}
+	}
+}

+ 5 - 0
parkMonitor/view/style/ComStyle.xaml

@@ -0,0 +1,5 @@
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+                    xmlns:local="clr-namespace:parkMonitor.view.style">
+    
+</ResourceDictionary>

+ 5 - 0
parkMonitor/view/style/Test.xaml

@@ -0,0 +1,5 @@
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+                    xmlns:local="clr-namespace:parkMonitor.view.style">
+
+</ResourceDictionary>

+ 146 - 0
parkMonitor/view/style/TreeViewItemImage.xaml

@@ -0,0 +1,146 @@
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+                    xmlns:local="clr-namespace:parkMonitor.view.style">
+	<Style x:Key="TreeViewItemFocusVisual">
+		<Setter Property="Control.Template">
+			<Setter.Value>
+				<ControlTemplate>
+					<Rectangle/>
+				</ControlTemplate>
+			</Setter.Value>
+		</Setter>
+	</Style>
+	<SolidColorBrush x:Key="TreeViewItem.TreeArrow.Static.Checked.Fill" Color="#FF595959"/>
+	<SolidColorBrush x:Key="TreeViewItem.TreeArrow.Static.Checked.Stroke" Color="#FF262626"/>
+	<SolidColorBrush x:Key="TreeViewItem.TreeArrow.MouseOver.Stroke" Color="#FF1BBBFA"/>
+	<SolidColorBrush x:Key="TreeViewItem.TreeArrow.MouseOver.Fill" Color="Transparent"/>
+	<SolidColorBrush x:Key="TreeViewItem.TreeArrow.MouseOver.Checked.Stroke" Color="#FF262626"/>
+	<SolidColorBrush x:Key="TreeViewItem.TreeArrow.MouseOver.Checked.Fill" Color="#FF595959"/>
+	<PathGeometry x:Key="TreeArrow" Figures="M0,0 L0,6 L6,0 z"/>
+	<SolidColorBrush x:Key="TreeViewItem.TreeArrow.Static.Fill" Color="Transparent"/>
+	<SolidColorBrush x:Key="TreeViewItem.TreeArrow.Static.Stroke" Color="#FF989898"/>
+	<Style x:Key="ExpandCollapseToggleStyle" TargetType="{x:Type ToggleButton}">
+		<Setter Property="Focusable" Value="False"/>
+		<Setter Property="Width" Value="16"/>
+		<Setter Property="Height" Value="16"/>
+		<Setter Property="Template">
+			<Setter.Value>
+				<ControlTemplate TargetType="{x:Type ToggleButton}">
+					<Border Background="Transparent" Height="16" Padding="3" Width="16" Name="borBorder">
+						<!--<Path x:Name="ExpandPath" Data="{StaticResource TreeArrow}" Fill="{StaticResource TreeViewItem.TreeArrow.Static.Fill}" Stroke="{StaticResource TreeViewItem.TreeArrow.Static.Stroke}">
+							<Path.RenderTransform>
+								<RotateTransform Angle="135" CenterY="3" CenterX="3"/>
+							</Path.RenderTransform>
+						</Path>-->
+						<Image RenderTransformOrigin="0.5,0.5" Source="/parkMonitor;component/resource/tree_close.png" x:Name="ExpandPath"/>
+					</Border>
+					<ControlTemplate.Triggers>
+						<Trigger Property="IsChecked" Value="True">
+							<Setter Property="RenderTransform" TargetName="ExpandPath">
+								<Setter.Value>
+									<RotateTransform Angle="90"/>
+								</Setter.Value>
+							</Setter>
+							<!--<Setter Property="Fill" TargetName="ExpandPath" Value="{StaticResource TreeViewItem.TreeArrow.Static.Checked.Fill}"/>
+							<Setter Property="Stroke" TargetName="ExpandPath" Value="{StaticResource TreeViewItem.TreeArrow.Static.Checked.Stroke}"/>-->
+						</Trigger>
+						<Trigger Property="IsMouseOver" Value="True">
+							<Setter Property="Padding" Value="1" TargetName="borBorder"/>
+							<!--<Setter Property="Stroke" TargetName="ExpandPath" Value="{StaticResource TreeViewItem.TreeArrow.MouseOver.Stroke}"/>
+							<Setter Property="Fill" TargetName="ExpandPath" Value="{StaticResource TreeViewItem.TreeArrow.MouseOver.Fill}"/>-->
+						</Trigger>
+						<MultiTrigger>
+							<MultiTrigger.Conditions>
+								<Condition Property="IsMouseOver" Value="True"/>
+								<Condition Property="IsChecked" Value="True"/>
+							</MultiTrigger.Conditions>
+							<!--<Setter Property="Stroke" TargetName="ExpandPath" Value="{StaticResource TreeViewItem.TreeArrow.MouseOver.Checked.Stroke}"/>
+							<Setter Property="Fill" TargetName="ExpandPath" Value="{StaticResource TreeViewItem.TreeArrow.MouseOver.Checked.Fill}"/>-->
+						</MultiTrigger>
+					</ControlTemplate.Triggers>
+				</ControlTemplate>
+			</Setter.Value>
+		</Setter>
+	</Style>
+	<Style x:Key="TreeViewItemImageStyle" TargetType="{x:Type TreeViewItem}">
+		<Setter Property="Background" Value="Transparent"/>
+		<Setter Property="HorizontalContentAlignment" Value="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
+		<Setter Property="VerticalContentAlignment" Value="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
+		<Setter Property="Padding" Value="1,0,0,0"/>
+		<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
+		<Setter Property="FocusVisualStyle" Value="{StaticResource TreeViewItemFocusVisual}"/>
+		<Setter Property="Template">
+			<Setter.Value>
+				<ControlTemplate TargetType="{x:Type TreeViewItem}">
+					<Grid>
+						<Grid.ColumnDefinitions>
+							<ColumnDefinition MinWidth="19" Width="Auto"/>
+							<ColumnDefinition Width="Auto"/>
+							<ColumnDefinition Width="*"/>
+						</Grid.ColumnDefinitions>
+						<Grid.RowDefinitions>
+							<RowDefinition Height="Auto"/>
+							<RowDefinition/>
+						</Grid.RowDefinitions>
+						<ToggleButton x:Name="Expander" ClickMode="Press" IsChecked="{Binding IsExpanded, RelativeSource={RelativeSource TemplatedParent}}" Style="{StaticResource ExpandCollapseToggleStyle}"/>
+						<Border x:Name="Bd" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Grid.Column="1" Grid.ColumnSpan="2" Padding="{TemplateBinding Padding}" SnapsToDevicePixels="true">
+							<ContentPresenter x:Name="PART_Header" ContentSource="Header" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
+							<Border.Style>
+								<Style TargetType="Border">
+									<Setter Property="Background" Value="Transparent"/>
+									<Style.Triggers>
+										<!--<Trigger Property="Background" Value="{x:Null}">
+											<Setter Property="Background" Value="Transparent"/>
+										</Trigger>-->
+										<Trigger Property="IsMouseOver" Value="True">
+											<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
+										</Trigger>
+									</Style.Triggers>
+								</Style>
+							</Border.Style>
+						</Border>
+						<ItemsPresenter x:Name="ItemsHost" Grid.ColumnSpan="2" Grid.Column="1" Grid.Row="1"/>
+					</Grid>
+					<ControlTemplate.Triggers>
+						<Trigger Property="IsExpanded" Value="false">
+							<Setter Property="Visibility" TargetName="ItemsHost" Value="Collapsed"/>
+						</Trigger>
+						<Trigger Property="HasItems" Value="false">
+							<Setter Property="Visibility" TargetName="Expander" Value="Hidden"/>
+						</Trigger>
+						<Trigger Property="IsSelected" Value="true">
+							<Setter Property="Background" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>
+							<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.HighlightTextBrushKey}}"/>
+						</Trigger>
+						<!--<Trigger Property="IsMouseOver" Value="true">
+							<Setter Property="Background" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
+							<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
+						</Trigger>-->
+						<MultiTrigger>
+							<MultiTrigger.Conditions>
+								<Condition Property="IsSelected" Value="true"/>
+								<Condition Property="IsSelectionActive" Value="false"/>
+							</MultiTrigger.Conditions>
+							<Setter Property="Background" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.InactiveSelectionHighlightBrushKey}}"/>
+							<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.InactiveSelectionHighlightTextBrushKey}}"/>
+						</MultiTrigger>
+						<Trigger Property="IsEnabled" Value="false">
+							<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
+						</Trigger>
+					</ControlTemplate.Triggers>
+				</ControlTemplate>
+			</Setter.Value>
+		</Setter>
+		<Style.Triggers>
+			<Trigger Property="VirtualizingPanel.IsVirtualizing" Value="true">
+				<Setter Property="ItemsPanel">
+					<Setter.Value>
+						<ItemsPanelTemplate>
+							<VirtualizingStackPanel/>
+						</ItemsPanelTemplate>
+					</Setter.Value>
+				</Setter>
+			</Trigger>
+		</Style.Triggers>
+	</Style>
+</ResourceDictionary>

+ 66 - 0
parkMonitor/view/util/imageButton/ImageButton.cs

@@ -0,0 +1,66 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+
+namespace parkMonitor.view.util {
+	/// <summary>
+	/// 按照步骤 1a 或 1b 操作,然后执行步骤 2 以在 XAML 文件中使用此自定义控件。
+	///
+	/// 步骤 1a) 在当前项目中存在的 XAML 文件中使用该自定义控件。
+	/// 将此 XmlNamespace 特性添加到要使用该特性的标记文件的根 
+	/// 元素中: 
+	///
+	///     xmlns:MyNamespace="clr-namespace:parkMonitor.view.util.imageButton"
+	///
+	///
+	/// 步骤 1b) 在其他项目中存在的 XAML 文件中使用该自定义控件。
+	/// 将此 XmlNamespace 特性添加到要使用该特性的标记文件的根 
+	/// 元素中: 
+	///
+	///     xmlns:MyNamespace="clr-namespace:parkMonitor.view.util.imageButton;assembly=parkMonitor.view.util.imageButton"
+	///
+	/// 您还需要添加一个从 XAML 文件所在的项目到此项目的项目引用,
+	/// 并重新生成以避免编译错误: 
+	///
+	///     在解决方案资源管理器中右击目标项目,然后依次单击
+	///     “添加引用”->“项目”->[浏览查找并选择此项目]
+	///
+	///
+	/// 步骤 2)
+	/// 继续操作并在 XAML 文件中使用控件。
+	///
+	///     <MyNamespace:ImageButton/>
+	///
+	/// </summary>
+	public class ImageButton : Label {
+		static ImageButton() {
+			DefaultStyleKeyProperty.OverrideMetadata(typeof(ImageButton), new FrameworkPropertyMetadata(typeof(ImageButton)));
+		}
+
+		//Source
+		public static readonly DependencyProperty SourcePro = DependencyProperty.Register("Source", typeof(ImageSource), typeof(ImageButton), new PropertyMetadata(null));
+		public ImageSource Source {
+			get { return (ImageSource)GetValue(SourcePro); }
+			set { SetCurrentValue(SourcePro, value); }
+		}
+
+		//Source
+		public static readonly DependencyProperty LightSourcePro = DependencyProperty.Register("LightSource", typeof(ImageSource), typeof(ImageButton), new PropertyMetadata(null));
+		public ImageSource LightSource {
+			get { return (ImageSource)GetValue(LightSourcePro); }
+			set { SetCurrentValue(LightSourcePro, value); }
+		}
+
+	}
+}

+ 37 - 0
parkMonitor/view/util/imageButton/ImageButton.xaml

@@ -0,0 +1,37 @@
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+                    xmlns:local="clr-namespace:parkMonitor.view.util"
+					>
+	<Style TargetType="{x:Type local:ImageButton}"  >
+		<Setter Property="Template">
+			<Setter.Value>
+				<ControlTemplate TargetType="{x:Type local:ImageButton}">
+					<Grid>
+						<!--<Label
+							Content="{Binding Tip, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
+							Width="{Binding Width,RelativeSource={RelativeSource TemplatedParent}}"
+							Height="{Binding Height,RelativeSource={RelativeSource TemplatedParent}}"
+							Foreground="{Binding TipColor,RelativeSource={RelativeSource TemplatedParent}}"
+							Visibility="{Binding _ShowTip,RelativeSource={RelativeSource TemplatedParent}}"
+							VerticalContentAlignment="{Binding VerticalContentAlignment,RelativeSource={RelativeSource TemplatedParent}}"
+							Padding="{Binding Padding,RelativeSource={RelativeSource TemplatedParent}}" 
+							IsHitTestVisible="{Binding IsHitTestVisible,RelativeSource={RelativeSource TemplatedParent}}"/>-->
+						<Image Source="{Binding Source,RelativeSource={RelativeSource TemplatedParent}}"/>
+						<Image Source="{Binding LightSource,RelativeSource={RelativeSource TemplatedParent}}">
+							<Image.Style>
+								<Style TargetType="Image" >
+									<Setter Property="Visibility" Value="Collapsed"/>
+									<Style.Triggers>
+										<DataTrigger Binding="{Binding (Grid.IsMouseOver),RelativeSource={RelativeSource AncestorType=Grid}}" Value="True">
+											<Setter Property="Visibility" Value="Visible"/>
+										</DataTrigger>
+									</Style.Triggers>
+								</Style>
+							</Image.Style>
+						</Image>
+					</Grid>
+				</ControlTemplate>
+			</Setter.Value>
+		</Setter>
+	</Style>
+</ResourceDictionary>

+ 28 - 0
parkMonitor/viewModel/MainWinVM.cs

@@ -0,0 +1,28 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+
+namespace parkMonitor.viewModel {
+	public class MainWinVM : INotifyPropertyChanged {
+		GridLength _grdLenName = new GridLength(50, GridUnitType.Star);
+		public GridLength grdLenName {
+			get { return _grdLenName; }
+			set { _grdLenName = value; FirePropertyChanged("grdLenName"); }
+		}
+
+		GridLength _grdLenValue = new GridLength(50, GridUnitType.Star);
+		public GridLength grdLenValue {
+			get { return _grdLenValue; }
+			set { _grdLenValue = value; FirePropertyChanged("grdLenValue"); }
+		}
+
+		public virtual event PropertyChangedEventHandler PropertyChanged;
+		public virtual void FirePropertyChanged(string propertyName) {
+			PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
+		}
+	}
+}

+ 28 - 0
parkMonitor/viewModel/ObjectTreeRootVM.cs

@@ -0,0 +1,28 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace parkMonitor.viewModel {
+	class ObjectTreeRootVM : INotifyPropertyChanged {
+
+		string _Name = "";
+		public string Name {
+			get { return _Name; }
+			set { _Name = value; FirePropertyChanged("Name"); }
+		}
+
+		List<ObjectVM> _lstData = new List<ObjectVM>();
+		public List<ObjectVM> lstData {
+			get { return _lstData; }
+			set { _lstData = value; FirePropertyChanged("lstData"); }
+		}
+
+		public virtual event PropertyChangedEventHandler PropertyChanged;
+		public virtual void FirePropertyChanged(string propertyName) {
+			PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
+		}
+	}
+}

+ 35 - 0
parkMonitor/viewModel/ObjectVM.cs

@@ -0,0 +1,35 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace parkMonitor.viewModel {
+	/// <summary>
+	/// 所有部件
+	/// </summary>
+	class ObjectVM : INotifyPropertyChanged {
+		string _Name = "";
+		public string Name {
+			get { return _Name; }
+			set { _Name = value; FirePropertyChanged("Name"); }
+		}
+
+		string _ShortInfo = "";
+		public string ShortInfo {
+			get { return _ShortInfo; }
+			set { _ShortInfo = value; FirePropertyChanged("ShortInfo"); }
+		}
+
+		public ObservableCollection<ObjectVM> SubCategories;
+
+		public virtual event PropertyChangedEventHandler PropertyChanged;
+		public virtual void FirePropertyChanged(string propertyName) {
+			PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
+		}
+	}
+
+	
+}