sangwq 2 years ago
parent
commit
53e362a33e

+ 6 - 0
Venus/Venus.sln

@@ -29,6 +29,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RecipeEditorControl", "Reci
 EndProject
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Venus_RT", "Venus_RT\Venus_RT.csproj", "{CD9AEF96-5048-47D1-B785-1F8C3FDC47C3}"
 EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Venus_Simulator", "Venus_Simulator\Venus_Simulator.csproj", "{D2AF730C-4549-4BA7-839E-9AA76B934B2D}"
+EndProject
 Global
 	GlobalSection(SolutionConfigurationPlatforms) = preSolution
 		Debug|Any CPU = Debug|Any CPU
@@ -83,6 +85,10 @@ Global
 		{CD9AEF96-5048-47D1-B785-1F8C3FDC47C3}.Debug|Any CPU.Build.0 = Debug|Any CPU
 		{CD9AEF96-5048-47D1-B785-1F8C3FDC47C3}.Release|Any CPU.ActiveCfg = Release|Any CPU
 		{CD9AEF96-5048-47D1-B785-1F8C3FDC47C3}.Release|Any CPU.Build.0 = Release|Any CPU
+		{D2AF730C-4549-4BA7-839E-9AA76B934B2D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{D2AF730C-4549-4BA7-839E-9AA76B934B2D}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{D2AF730C-4549-4BA7-839E-9AA76B934B2D}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{D2AF730C-4549-4BA7-839E-9AA76B934B2D}.Release|Any CPU.Build.0 = Release|Any CPU
 	EndGlobalSection
 	GlobalSection(SolutionProperties) = preSolution
 		HideSolutionNode = FALSE

+ 69 - 0
Venus/Venus_RT/Config/Account/Account.xml

@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="GB2312"?>
+<root>
+  <roles>
+    <!--2:read and write-->
+    <roleItem id="0" name="Manager" autologout="1" logouttime="20">
+      Header,3;Overview,3;WaferAssociation,3;Sequence,3;DataCharting,3;WaferHistory,3;EventLog,3;DataAnalysis,3;ProcessHistory,3;
+      Alarm,3;
+      Recipe,3;
+      LoadPort,3;EFEM,3;LoadLock,3;TM,3;IO1,3;IO2,3;IO3,3;
+      Config,3;Account,3;Role,3;FA,3;
+      IOPMA,3;calibrationPMA,3;verificationPMA,3;
+      IOPMB,3;calibrationPMB,3;verificationPMB,3;
+      OperationPMA,3;OverviewPMA,3;RecipePMA,3;GasboxPMA,3;ServicePMA,3;ConfigurationPMA,3;
+      OperationPMB,3;OverviewPMB,3;RecipePMB,3;GasboxPMB,3;ServicePMB,3;ConfigurationPMB,3;
+      DataHistory,3;Statistics,3;
+    </roleItem>
+    <roleItem id="1" name="Engineer" autologout="1" logouttime="20">
+      Header,3; Overview,3;WaferAssociation,3;Sequence,3;DataCharting,3;WaferHistory,3;EventLog,3;DataAnalysis,3;ProcessHistory,3;
+      Alarm,3;
+      Recipe,3;
+      LoadPort,3;EFEM,3;LoadLock,3;TM,3;IO1,3;IO2,3;IO3,3;
+      Config,3;Account,3;Role,3;FA,3;
+      IOPMA,3;calibrationPMA,3;verificationPMA,3;
+      IOPMB,3;calibrationPMB,3;verificationPMB,3;
+      OperationPMA,3;OverviewPMA,3;RecipePMA,3;GasboxPMA,3;ServicePMA,3;ConfigurationPMA,3;
+      OperationPMB,3;OverviewPMB,3;RecipePMB,3;GasboxPMB,3;ServicePMB,3;ConfigurationPMB,3;
+      DataHistory,3;Statistics,3;
+    </roleItem>
+    <roleItem id="2" name="Technician" autologout="1" logouttime="20">
+      Header,3; Overview,3;WaferAssociation,3;Sequence,3;DataCharting,3;WaferHistory,3;EventLog,3;DataAnalysis,3;ProcessHistory,3;
+      Alarm,3;
+      Recipe,3;
+      LoadPort,3;EFEM,3;LoadLock,3;TM,3;IO1,3;IO2,3;IO3,3;
+      Config,3;Account,3;Role,3;FA,3;
+      IOPMA,3;calibrationPMA,3;verificationPMA,3;
+      IOPMB,3;calibrationPMB,3;verificationPMB,3;
+      OperationPMA,3;OverviewPMA,3;RecipePMA,3;GasboxPMA,3;ServicePMA,3;ConfigurationPMA,3;
+      OperationPMB,3;OverviewPMB,3;RecipePMB,3;GasboxPMB,3;ServicePMB,3;ConfigurationPMB,3;
+      DataHistory,3;Statistics,3;
+    </roleItem>
+    <roleItem id="3" name="Operator" autologout="1" logouttime="20">
+      Header,3; Overview,3;WaferAssociation,3;Sequence,3;DataCharting,3;WaferHistory,3;EventLog,3;DataAnalysis,3;ProcessHistory,3;
+      Alarm,3;
+      Recipe,3;
+      LoadPort,3;EFEM,3;LoadLock,3;TM,3;IO1,3;IO2,3;IO3,3;
+      Config,3;Account,3;Role,3;FA,3;
+      IOPMA,3;calibrationPMA,3;verificationPMA,3;
+      IOPMB,3;calibrationPMB,3;verificationPMB,3;
+      OperationPMA,3;OverviewPMA,3;RecipePMA,3;GasboxPMA,3;ServicePMA,3;ConfigurationPMA,3;
+      OperationPMB,3;OverviewPMB,3;RecipePMB,3;GasboxPMB,3;ServicePMB,3;ConfigurationPMB,3;
+      DataHistory,3;Statistics,3;
+    </roleItem>
+  </roles>
+
+
+
+
+
+  <users>
+    <userItem id="1" loginname="admin" password="YWRtaW4=" firstname="MAE" lastname="dd" email="">
+      <rolegroup>
+        <role id="0"></role>
+        <role id="1"></role>
+        <role id="2"></role>
+        <role id="3"></role>
+      </rolegroup>
+    </userItem>
+  </users>
+</root>

File diff suppressed because it is too large
+ 608 - 0
Venus/Venus_RT/Config/ClusterGemModel.xml


BIN
Venus/Venus_RT/Config/DeviceModel.xsd


BIN
Venus/Venus_RT/Config/DeviceModelVenus.xml


+ 36 - 0
Venus/Venus_RT/Config/SignalTower.xml

@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="utf-8" ?>
+
+<STEvents>
+	<STEvent name ="System.IsAlarm"                  Red="Blinking" Yellow="Off" Green="Off" Blue="Off"  Buzzer="On"/>
+
+	<STEvent name ="System.IsIdle"                   Red="Off"      Yellow="On"  Green="Off" Blue="Off"  Buzzer="Off"/>
+
+	<STEvent name ="System.IsBusy"            Red="Off"      Yellow="Off"  Green="On" Blue="Off"  Buzzer="Off"/>
+
+	<STEvent name ="System.IsConnectedWithHost"      Red="Off"      Yellow="Off" Green="Off" Blue="On"  Buzzer="Off"/>
+
+	<STEvent name ="System.IsDisconnectWithHost"     Red="Off"      Yellow="Off" Green="Off" Blue="Off"  Buzzer="Off"/>
+
+	<STEvent name ="System.IsWaitUnload"            Red="Off"      Yellow="Off"  Green="Blinking" Blue="Off"  Buzzer="On"/>
+
+	<STEvent name ="PMA.IsAlarm"                  Red="On" Yellow="Off" Green="Off" Blue="Off"  Buzzer="On"/>
+	<STEvent name ="PMA.IoHeater.ForelineHeater.IsTcDeviation"                  Red="On" Yellow="Off" Green="Off" Blue="Off"  Buzzer="On"/>
+	<STEvent name ="PMA.IoHeater.HeaterChamber.IsTcDeviation"                  Red="On" Yellow="Off" Green="Off" Blue="Off"  Buzzer="On"/>
+	<STEvent name ="PMA.Rf.RfAlarm"                  Red="On" Yellow="Off" Green="Off" Blue="Off"  Buzzer="On"/>
+	<STEvent name ="PMA.IoMfc.MfcGas1.MfcAlarm"                  Red="On" Yellow="Off" Green="Off" Blue="Off"  Buzzer="On"/>
+	<STEvent name ="PMA.IoMfc.MfcGas2.MfcAlarm"                  Red="On" Yellow="Off" Green="Off" Blue="Off"  Buzzer="On"/>
+	<STEvent name ="PMA.IoMfc.MfcGas3.MfcAlarm"                  Red="On" Yellow="Off" Green="Off" Blue="Off"  Buzzer="On"/>
+	<STEvent name ="PMA.IoMfc.MfcGas4.MfcAlarm"                  Red="On" Yellow="Off" Green="Off" Blue="Off"  Buzzer="On"/>
+	<STEvent name ="PMA.IoMfc.MfcGas5.MfcAlarm"                  Red="On" Yellow="Off" Green="Off" Blue="Off"  Buzzer="On"/>
+	<STEvent name ="PMB.IsAlarm"                  Red="On" Yellow="Off" Green="Off" Blue="Off"  Buzzer="On"/>
+	<STEvent name ="PMB.IoHeater.ForelineHeater.IsTcDeviation"                  Red="On" Yellow="Off" Green="Off" Blue="Off"  Buzzer="On"/>
+	<STEvent name ="PMB.IoHeater.HeaterChamber.IsTcDeviation"                  Red="On" Yellow="Off" Green="Off" Blue="Off"  Buzzer="On"/>
+	<STEvent name ="PMB.Rf.RfAlarm"                  Red="On" Yellow="Off" Green="Off" Blue="Off"  Buzzer="On"/>
+	<STEvent name ="PMB.IoMfc.MfcGas1.MfcAlarm"                  Red="On" Yellow="Off" Green="Off" Blue="Off"  Buzzer="On"/>
+	<STEvent name ="PMB.IoMfc.MfcGas2.MfcAlarm"                  Red="On" Yellow="Off" Green="Off" Blue="Off"  Buzzer="On"/>
+	<STEvent name ="PMB.IoMfc.MfcGas3.MfcAlarm"                  Red="On" Yellow="Off" Green="Off" Blue="Off"  Buzzer="On"/>
+	<STEvent name ="PMB.IoMfc.MfcGas4.MfcAlarm"                  Red="On" Yellow="Off" Green="Off" Blue="Off"  Buzzer="On"/>
+	<STEvent name ="PMB.IoMfc.MfcGas5.MfcAlarm"                  Red="On" Yellow="Off" Green="Off" Blue="Off"  Buzzer="On"/>
+
+</STEvents>
+

File diff suppressed because it is too large
+ 815 - 170
Venus/Venus_RT/Config/System.sccfg


+ 2 - 2
Venus/Venus_RT/Devices/AdTecRF.cs

@@ -200,8 +200,8 @@ namespace Venus_RT.Devices
             _scPowerAlarmTime         = SC.GetValue<double>($"{Module}.{Name}.PowerAlarmTime");
             _scPowerAlarmRange        = SC.GetValue<double>($"{Module}.{Name}.PowerAlarmRange");
 
-            _scPowerWarningTime = SC.GetValue<double>($"{Module}.{Name}.PowerWarningTime");
-            _scPowerWarningRange = SC.GetValue<double>($"{Module}.{Name}.PowerWarningRange");
+            _scPowerWarningTime       = SC.GetValue<double>($"{Module}.{Name}.PowerWarningTime");
+            _scPowerWarningRange      = SC.GetValue<double>($"{Module}.{Name}.PowerWarningRange");
 
             _scReflectPowerAlarmTime  = SC.GetValue<double>($"{Module}.{Name}.ReflectPowerAlarmTime");
             _scReflectPowerAlarmRange = SC.GetValue<double>($"{Module}.{Name}.ReflectPowerAlarmRange");

+ 1 - 1
Venus/Venus_RT/Instances/RtInstance.cs

@@ -28,7 +28,7 @@ namespace Venus_RT.Modules
         public const string DatabaseName = "venusdb";
 
         public const ushort ANALOG_TRANS_RANGE = 4000;
-        public const string DeviceModelFileName = "DeviceModelVirgo.xml";
+        public const string DeviceModelFileName = "DeviceModelVenus.xml";
 
         private ImageSource _trayIcon;
         private IRtLoader _loader;

+ 7 - 10
Venus/Venus_RT/Instances/ToolLoader.cs

@@ -69,28 +69,25 @@ namespace Venus_RT.Instances
 
             WaferManager.Instance.Initialize();
 
-            //AccountExManager.Instance.Initialize(true);
+            AccountExManager.Instance.Initialize(true);
 
             // Device manager
-            //Singleton<DeviceManager>.Instance.Initialize();
+            Singleton<DeviceManager>.Instance.Initialize();
 
-            //Singleton<DeviceEntity>.Instance.Initialize();
+            Singleton<DeviceEntity>.Instance.Initialize();
 
-            //Singleton<FaManager>.Instance.Initialize();
+            Singleton<FaManager>.Instance.Initialize();
 
 
-            //DataCollectionManager.Instance.Initialize(RtInstance.DatabaseName);
+            DataCollectionManager.Instance.Initialize(RtInstance.DatabaseName);
 
             RtSystemManager.Instance.AddCustomBackend("SC", new BackendSCConfigView());
             RtSystemManager.Instance.AddCustomBackend("IO", new IOView());
             RtSystemManager.Instance.AddCustomBackend("FSM", new FSMView());
 
-            //Singleton<RouteManager>.Instance.Initialize();
-
-            //Singleton<EventManager>.Instance.FireEvent += InstanceOnOnEvent;
-
-
+            Singleton<RouteManager>.Instance.Initialize();
 
+            Singleton<EventManager>.Instance.FireEvent += InstanceOnOnEvent;
 
 
             string s1 = System.Diagnostics.FileVersionInfo.GetVersionInfo(Path.Combine(PathManager.GetAppDir(), "Venus_RT.exe")).ProductVersion;

+ 80 - 0
Venus/Venus_RT/Modules/PMs/PMEntity.cs

@@ -0,0 +1,80 @@
+using System;
+using System.Collections.Generic;
+using System.Threading;
+using System.Diagnostics;
+using System.Linq;
+using Aitex.Core.Common;
+using Aitex.Core.RT.DataCenter;
+using Aitex.Core.RT.Device;
+using Aitex.Core.RT.Event;
+using Aitex.Core.RT.Fsm;
+using Aitex.Core.RT.OperationCenter;
+using Aitex.Core.RT.Routine;
+using Aitex.Core.RT.SCCore;
+using Aitex.Core.Util;
+using Aitex.Sorter.Common;
+using MECF.Framework.Common.DataCenter;
+using MECF.Framework.Common.Equipment;
+using MECF.Framework.Common.Schedulers;
+using MECF.Framework.Common.SubstrateTrackings;
+using Venus_Core;
+using Venus_RT.Devices;
+using Venus_RT.Modules;
+using Venus_RT.Modules.PMs;
+
+
+namespace Venus_RT.Modules.PMs
+{
+    public class PMEntity : Entity, IModuleEntity
+    {
+        public ModuleName Module { get; }
+        public Action<bool, bool> TransferPrepared;
+
+        public bool IsIdle
+        {
+            get;
+        }
+
+        public bool IsError
+        {
+            get;
+        }
+
+        public bool IsInit
+        {
+            get;// { return fsm.State == (int)PMState.Init; }
+        }
+        public bool IsBusy
+        {
+            get { return !IsInit && !IsError && !IsIdle; }
+        }
+
+        public bool Check(int msg, out string reason, object[] objs)
+        {
+            reason = "";
+            return true;
+        }
+
+        public int Invoke(string function, params object[] args)
+        {
+            //switch (function)
+            //{
+            //    //case "Home":
+            //    //    CheckToPostMessage((int)MSG.Home);
+            //    //    return (int)MSG.Home;
+            //}
+
+            return (int)FSM_MSG.NONE;
+        }
+
+        public bool CheckAcked(int msg)
+        {
+            return fsm.CheckExecuted(msg);
+        }
+
+        public PMEntity(ModuleName module)
+        {
+            fsm = new StateMachine<PMEntity>(Module.ToString(), (int)PMState.Init, 100);
+        }
+    }
+}

+ 81 - 14
Venus/Venus_RT/Modules/RouteManager.cs

@@ -5,29 +5,96 @@ using System.Text;
 using System.Threading.Tasks;
 using Aitex.Core.RT.Fsm;
 
+using Aitex.Core.Common;
+using Aitex.Core.RT.DataCenter;
+using Aitex.Core.RT.Event;
+using Aitex.Core.RT.OperationCenter;
+using Aitex.Core.RT.Routine;
+using Aitex.Core.RT.SCCore;
+using Aitex.Core.Util;
+using MECF.Framework.Common.Equipment;
+using MECF.Framework.Common.SubstrateTrackings;
+using Venus_Core;
+using Venus_RT.Modules.PMs;
 namespace Venus_RT.Modules
 {
     class RouteManager : Entity, IEntity
     {
+
+        public enum MSG
+        {
+            MoveWafer,
+            ReturnWafer,
+
+            HomeUnit,
+
+            PauseAuto,
+            ResumeAuto,
+
+            Stop,
+
+            StartCycle,
+
+            HOME,
+            RESET,
+            ABORT,
+            ERROR,
+
+            SetAutoMode,
+            SetManualMode,
+
+            ResetIdleCleanTime,
+            ResetIdlePurgeTime,
+
+            CreateJob,
+            PauseJob,
+            ResumeJob,
+            StartJob,
+            StopJob,
+            AbortJob,
+            JobDone,
+            CassetteLeave,  //For unload light control off afer job done
+
+            Map,
+            ReturnAllWafer,
+        }
+
+        public PMEntity PMA { get; private set; }
+        public PMEntity PMB { get; private set; }
+
+        public string Name { get; set; }
+
+        public RouteManager()
+        {
+            if (SC.GetValue<bool>("System.PMAIsInstalled"))
+                PMA = new PMEntity(ModuleName.PMA);
+            if (SC.GetValue<bool>("System.PMBIsInstalled"))
+                PMB = new PMEntity(ModuleName.PMB);
+
+            fsm = new StateMachine<RouteManager>(Name, (int)RtState.Init, 200);
+        }
+
         public bool Check(int msg, out string reason, params object[] args)
         {
-            //if (!fsm.FindTransition(fsm.State, msg))
-            //{
-            //    reason = String.Format("{0} is in {1} state,can not do {2}", Name, (RtState)fsm.State, (MSG)msg);
-            //    return false;
-            //}
-
-            //if (msg == (int)MSG.StartCycle)
-            //{
-            //    if (!IsAutoMode)
-            //    {
-            //        reason = String.Format("can not do {0}, isn't auto mode.", msg.ToString());
-            //        return false;
-            //    }
-            //}
+            if (!fsm.FindTransition(fsm.State, msg))
+            {
+                reason = String.Format("{0} is in {1} state,can not do {2}", Name, 0, (MSG)msg);
+                return false;
+            }
+
+            if (msg == (int)MSG.StartCycle)
+            {
+                //if (!IsAutoMode)
+                {
+                    reason = String.Format("can not do {0}, isn't auto mode.", msg.ToString());
+                    return false;
+                }
+            }
             reason = "";
 
             return true;
         }
+
+
     }
 }

+ 17 - 0
Venus/Venus_RT/Venus_RT.csproj

@@ -100,6 +100,7 @@
   <ItemGroup>
     <Compile Include="Instances\RtInstance.cs" />
     <Compile Include="Instances\ToolLoader.cs" />
+    <Compile Include="Modules\PMs\PMEntity.cs" />
     <Compile Include="Modules\PMs\Recipe.cs" />
     <Compile Include="Modules\PMs\VirgoRecipeFileContext.cs" />
     <Compile Include="Modules\PMs\VirgoSequenceFileContext.cs" />
@@ -121,9 +122,25 @@
       <Generator>ResXFileCodeGenerator</Generator>
       <LastGenOutput>Resources.Designer.cs</LastGenOutput>
     </EmbeddedResource>
+    <Content Include="Config\Account\Account.xml">
+      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+    </Content>
+    <Content Include="Config\ClusterGemModel.xml">
+      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+    </Content>
+    <Content Include="Config\DeviceModelVenus.xml">
+      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+    </Content>
+    <Content Include="Config\SignalTower.xml">
+      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+    </Content>
     <Content Include="Config\System.sccfg">
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     </Content>
+    <None Include="Config\DeviceModel.xsd">
+      <SubType>Designer</SubType>
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </None>
     <None Include="Properties\Settings.settings">
       <Generator>SettingsSingleFileGenerator</Generator>
       <LastGenOutput>Settings.Designer.cs</LastGenOutput>

+ 6 - 0
Venus/Venus_Simulator/App.config

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

+ 9 - 0
Venus/Venus_Simulator/App.xaml

@@ -0,0 +1,9 @@
+<Application x:Class="Venus_Simulator.App"
+             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+             xmlns:local="clr-namespace:Venus_Simulator"
+             StartupUri="MainWindow.xaml">
+    <Application.Resources>
+         
+    </Application.Resources>
+</Application>

+ 17 - 0
Venus/Venus_Simulator/App.xaml.cs

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

+ 12 - 0
Venus/Venus_Simulator/MainWindow.xaml

@@ -0,0 +1,12 @@
+<Window x:Class="Venus_Simulator.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:local="clr-namespace:Venus_Simulator"
+        mc:Ignorable="d"
+        Title="MainWindow" Height="450" Width="800">
+    <Grid>
+        
+    </Grid>
+</Window>

+ 28 - 0
Venus/Venus_Simulator/MainWindow.xaml.cs

@@ -0,0 +1,28 @@
+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 Venus_Simulator
+{
+    /// <summary>
+    /// MainWindow.xaml 的交互逻辑
+    /// </summary>
+    public partial class MainWindow : Window
+    {
+        public MainWindow()
+        {
+            InitializeComponent();
+        }
+    }
+}

+ 55 - 0
Venus/Venus_Simulator/Properties/AssemblyInfo.cs

@@ -0,0 +1,55 @@
+using System.Reflection;
+using System.Resources;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+using System.Windows;
+
+// 有关程序集的一般信息由以下
+// 控制。更改这些特性值可修改
+// 与程序集关联的信息。
+[assembly: AssemblyTitle("Venus_Simulator")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("Venus_Simulator")]
+[assembly: AssemblyCopyright("Copyright ©  2022")]
+[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")]

+ 70 - 0
Venus/Venus_Simulator/Properties/Resources.Designer.cs

@@ -0,0 +1,70 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     此代码由工具生成。
+//     运行时版本: 4.0.30319.42000
+//
+//     对此文件的更改可能导致不正确的行为,如果
+//     重新生成代码,则所做更改将丢失。
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+
+namespace Venus_Simulator.Properties
+{
+    /// <summary>
+    ///   强类型资源类,用于查找本地化字符串等。
+    /// </summary>
+    // 此类是由 StronglyTypedResourceBuilder
+    // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
+    // 若要添加或删除成员,请编辑 .ResX 文件,然后重新运行 ResGen
+    // (以 /str 作为命令选项),或重新生成 VS 项目。
+    [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>
+        ///   返回此类使用的缓存 ResourceManager 实例。
+        /// </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("Venus_Simulator.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;
+            }
+        }
+    }
+}

+ 117 - 0
Venus/Venus_Simulator/Properties/Resources.resx

@@ -0,0 +1,117 @@
+<?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>

+ 29 - 0
Venus/Venus_Simulator/Properties/Settings.Designer.cs

@@ -0,0 +1,29 @@
+//------------------------------------------------------------------------------
+// <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 Venus_Simulator.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
Venus/Venus_Simulator/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>

+ 98 - 0
Venus/Venus_Simulator/Venus_Simulator.csproj

@@ -0,0 +1,98 @@
+<?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>{D2AF730C-4549-4BA7-839E-9AA76B934B2D}</ProjectGuid>
+    <OutputType>WinExe</OutputType>
+    <RootNamespace>Venus_Simulator</RootNamespace>
+    <AssemblyName>Venus_Simulator</AssemblyName>
+    <TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
+    <FileAlignment>512</FileAlignment>
+    <ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
+    <WarningLevel>4</WarningLevel>
+    <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
+    <Deterministic>true</Deterministic>
+  </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.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>
+    <Page Include="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="MainWindow.xaml.cs">
+      <DependentUpon>MainWindow.xaml</DependentUpon>
+      <SubType>Code</SubType>
+    </Compile>
+  </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>
+  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+</Project>