Browse Source

add Background task

liuyuqi-dellpc 1 year ago
parent
commit
c87ee65345

+ 16 - 0
BatteryIndicator/Background/DailyNoteTask.cs

@@ -0,0 +1,16 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace BatteryIndicator.Background
+{   
+    /// <summary>
+    ///  日常通知
+    /// </summary>
+    class DailyNoteTask
+    {
+
+    }
+}

+ 30 - 0
BatteryIndicator/Background/UpdateTask.cs

@@ -0,0 +1,30 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace BatteryIndicator.Background
+{   
+    /// <summary>
+    /// 检测更新
+    /// </summary>
+    class UpdateTask
+    {
+        void checkUpdate() {
+            
+
+        }
+        /// <summary>
+        /// 后台静默下载安装包
+        /// </summary>
+        void downloadApp()
+        {
+
+        }
+        /// <summary>
+        /// 安装更新
+        /// </summary>
+        void install() { }
+    }
+}

+ 2 - 0
BatteryIndicator/BatteryIndicator.csproj

@@ -64,6 +64,8 @@
     <Reference Include="System.Xml" />
   </ItemGroup>
   <ItemGroup>
+    <Compile Include="Background\DailyNoteTask.cs" />
+    <Compile Include="Background\UpdateTask.cs" />
     <Compile Include="Utils\PTConfig.cs" />
     <Compile Include="Program.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />