guozhaoshun 5 years ago
parent
commit
b0ef034aea
8 changed files with 2954 additions and 296 deletions
  1. 2 4
      WinBox.sln
  2. 1 1
      WinBox/App.config
  3. 1 2
      WinBox/MainForm.Designer.cs
  4. 18 2
      WinBox/MainForm.cs
  5. 2918 283
      WinBox/MainForm.resx
  6. 14 4
      WinBox/WinBox.csproj
  7. BIN
      WinBox/ico_angelbell.ico
  8. BIN
      WinBox/shuangshi.ico

+ 2 - 4
WinBox.sln

@@ -16,10 +16,8 @@ Global
 		{8F371BE9-0BDA-41F1-A27D-A00B53847B02}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
 		{8F371BE9-0BDA-41F1-A27D-A00B53847B02}.Debug|Any CPU.Build.0 = Debug|Any CPU
 		{8F371BE9-0BDA-41F1-A27D-A00B53847B02}.Debug|Default.ActiveCfg = Debug|Any CPU
-		{8F371BE9-0BDA-41F1-A27D-A00B53847B02}.Release|Any CPU.ActiveCfg = Release|Any CPU
-		{8F371BE9-0BDA-41F1-A27D-A00B53847B02}.Release|Any CPU.Build.0 = Release|Any CPU
-		{8F371BE9-0BDA-41F1-A27D-A00B53847B02}.Release|Default.ActiveCfg = Release|Any CPU
-		{8F371BE9-0BDA-41F1-A27D-A00B53847B02}.Release|Default.Build.0 = Release|Any CPU
+		{8F371BE9-0BDA-41F1-A27D-A00B53847B02}.Release|Any CPU.ActiveCfg = Debug|Any CPU
+		{8F371BE9-0BDA-41F1-A27D-A00B53847B02}.Release|Default.ActiveCfg = Debug|Any CPU
 	EndGlobalSection
 	GlobalSection(SolutionProperties) = preSolution
 		HideSolutionNode = FALSE

+ 1 - 1
WinBox/App.config

@@ -2,5 +2,5 @@
 <configuration>
     <startup> 
         
-    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0,Profile=Client"/></startup>
+    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/></startup>
 </configuration>

+ 1 - 2
WinBox/MainForm.Designer.cs

@@ -40,7 +40,7 @@
             this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
             this.Name = "MainForm";
             this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
-            this.Text = "全能双师";
+            this.Text = "领教云课堂";
             this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
             this.Load += new System.EventHandler(this.Form1_Load);
             this.ResumeLayout(false);
@@ -48,7 +48,6 @@
         }
 
         #endregion
-
     }
 }
 

+ 18 - 2
WinBox/MainForm.cs

@@ -7,6 +7,8 @@ using System.Linq;
 using System.Text;
 using System.Windows.Forms;
 using Microsoft.Win32;
+using System.Diagnostics;
+using System.IO;
 
 namespace WinBox
 {
@@ -34,9 +36,22 @@ namespace WinBox
             this.webBrowser1.ScriptErrorsSuppressed = true;
 
             //页面URL
-            this.webBrowser1.Url = new System.Uri("http://tt-web.api.ai160.com/angelbell/build/stage/index/index.html", System.UriKind.Absolute);
-
+            this.webBrowser1.Url = new System.Uri("https://web-winapp.lingjiao.cn/build/stage/index/index.html", System.UriKind.Absolute);
             this.Controls.Add(this.webBrowser1);
+
+            RunBat("C:\\John\\WorkSpace\\WebStorm\\winBoxNode\\node_register_service.bat");
+        }
+
+        private void RunBat(string batPath)
+        {
+            Process pro = new Process();
+            FileInfo file = new FileInfo(batPath);
+            pro.StartInfo.WorkingDirectory = file.Directory.FullName;
+            pro.StartInfo.FileName = batPath;
+            pro.StartInfo.CreateNoWindow = false;
+            pro.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
+            pro.Start();
+            pro.Close();
         }
 
         /// <summary>
@@ -109,5 +124,6 @@ namespace WinBox
             //该项必须已存在
             if (wwui != null) wwui.SetValue(productName, version, RegistryValueKind.DWord);
         }
+
     }
 }

File diff suppressed because it is too large
+ 2918 - 283
WinBox/MainForm.resx


+ 14 - 4
WinBox/WinBox.csproj

@@ -9,10 +9,11 @@
     <AppDesignerFolder>Properties</AppDesignerFolder>
     <RootNamespace>WinBox</RootNamespace>
     <AssemblyName>WinBox</AssemblyName>
-    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+    <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
     <FileAlignment>512</FileAlignment>
     <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
-    <TargetFrameworkProfile>Client</TargetFrameworkProfile>
+    <TargetFrameworkProfile>
+    </TargetFrameworkProfile>
     <IsWebBootstrapper>false</IsWebBootstrapper>
     <PublishUrl>C:\Users\efunbox\Desktop\</PublishUrl>
     <Install>true</Install>
@@ -64,7 +65,7 @@
     <GenerateManifests>true</GenerateManifests>
   </PropertyGroup>
   <PropertyGroup>
-    <ApplicationIcon>shuangshi.ico</ApplicationIcon>
+    <ApplicationIcon>123.ico</ApplicationIcon>
   </PropertyGroup>
   <ItemGroup>
     <Reference Include="System" />
@@ -112,7 +113,9 @@
     </Compile>
   </ItemGroup>
   <ItemGroup>
-    <None Include="App.config" />
+    <None Include="App.config">
+      <SubType>Designer</SubType>
+    </None>
   </ItemGroup>
   <ItemGroup>
     <BootstrapperPackage Include=".NETFramework,Version=v4.0">
@@ -132,6 +135,13 @@
     </BootstrapperPackage>
   </ItemGroup>
   <ItemGroup>
+    <Content Include="123.ico" />
+    <Content Include="favicon-20180731071201909.ico" />
+    <Content Include="icon_21st.ico" />
+    <Content Include="icon_angelbell.ico" />
+    <Content Include="icon_landy.ico" />
+    <Content Include="icon_sharkpark.ico" />
+    <Content Include="icon_weichuang.ico" />
     <Content Include="shuangshi.ico" />
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

BIN
WinBox/ico_angelbell.ico


BIN
WinBox/shuangshi.ico