Commit 392ca008 authored by tr's avatar tr

1、工具入口调整(代码暂时不做整合)

parent c90b3aba
No preview for this file type
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<!--打包排除文件,半角逗号分隔-->
<add key="ExceptFiles" value="U.Memopad.dll" />
<!--打包时间范围,文件最后修改时间距当前时间多少小时以内-->
<add key="PatchTimeFrame_Dll" value="1" />
<add key="PatchTimeFrame_Sql" value="720" />
<add key="PatchTimeFrame_Xml" value="720" />
<add key="PatchTimeFrame_Xml" value="720" />
<!--是否排除.pdb文件。1:排除,其他包含。-->
<add key="Exclude_PDB" value="1" />
<add key="ClientSettingsProvider.ServiceUri" value="" />
</appSettings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
<system.web>
<membership defaultProvider="ClientAuthenticationMembershipProvider">
<providers>
<add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" />
</providers>
</membership>
<roleManager defaultProvider="ClientRoleProvider" enabled="true">
<providers>
<add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400" />
</providers>
</roleManager>
</system.web>
</configuration>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
No preview for this file type
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
</startup>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
\ No newline at end of file
No preview for this file type
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-2.6.8.0" newVersion="2.6.8.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Threading.Tasks" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-2.6.8.0" newVersion="2.6.8.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/></startup></configuration>
......@@ -16,7 +16,7 @@ namespace Tools
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new UI.wDBTools());
Application.Run(new wMain());
}
}
}
......@@ -94,6 +94,13 @@
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="wExtend.cs" />
<Compile Include="wMain.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="wMain.Designer.cs">
<DependentUpon>wMain.cs</DependentUpon>
</Compile>
<EmbeddedResource Include="MyCommon\wBasic.resx">
<DependentUpon>wBasic.cs</DependentUpon>
</EmbeddedResource>
......@@ -116,6 +123,9 @@
<EmbeddedResource Include="UI\wDBTools.resx">
<DependentUpon>wDBTools.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="wMain.resx">
<DependentUpon>wMain.cs</DependentUpon>
</EmbeddedResource>
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
......@@ -166,5 +176,15 @@
<ItemGroup>
<None Include="Resources\使用说明.png" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Ftt.PatchPack\Ftt.PatchPack.csproj">
<Project>{42e384c1-cc13-494d-90e2-33c399e13f07}</Project>
<Name>Ftt.PatchPack</Name>
</ProjectReference>
<ProjectReference Include="..\UpdateExecuter\UpdateExecuter.csproj">
<Project>{5abcd19a-7a28-479c-bcae-0ad7f1a4feb0}</Project>
<Name>UpdateExecuter</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
//
using System.Windows.Forms;
namespace Tools
{
public class wExtend
{
public Form GetWinExtend(string name)
{
Form result = null;
switch (name)
{
case "UpdateExecuter": result = new UpdateExecuter.frmMain(); break;
case "PatchPack": result = new Ftt.PatchPack.FrmMain(); break;
case "DbDevelopTool": result = new UI.wDBTools(); break;
default: break;
}
return result;
}
}
}
namespace Tools
{
partial class wMain
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.btnUpdateExecuter = new System.Windows.Forms.Button();
this.btnPatchPack = new System.Windows.Forms.Button();
this.btnDbDevelopTool = new System.Windows.Forms.Button();
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
this.SuspendLayout();
//
// btnUpdateExecuter
//
this.btnUpdateExecuter.BackColor = System.Drawing.SystemColors.Control;
this.btnUpdateExecuter.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.btnUpdateExecuter.Location = new System.Drawing.Point(58, 25);
this.btnUpdateExecuter.Name = "btnUpdateExecuter";
this.btnUpdateExecuter.Size = new System.Drawing.Size(135, 25);
this.btnUpdateExecuter.TabIndex = 0;
this.btnUpdateExecuter.Text = "更新执行工具";
this.btnUpdateExecuter.UseVisualStyleBackColor = false;
//
// btnPatchPack
//
this.btnPatchPack.BackColor = System.Drawing.SystemColors.Control;
this.btnPatchPack.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.btnPatchPack.Location = new System.Drawing.Point(58, 64);
this.btnPatchPack.Name = "btnPatchPack";
this.btnPatchPack.Size = new System.Drawing.Size(135, 25);
this.btnPatchPack.TabIndex = 1;
this.btnPatchPack.Text = "自动打包工具";
this.btnPatchPack.UseVisualStyleBackColor = false;
//
// btnDbDevelopTool
//
this.btnDbDevelopTool.BackColor = System.Drawing.SystemColors.Control;
this.btnDbDevelopTool.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.btnDbDevelopTool.Location = new System.Drawing.Point(58, 103);
this.btnDbDevelopTool.Name = "btnDbDevelopTool";
this.btnDbDevelopTool.Size = new System.Drawing.Size(135, 25);
this.btnDbDevelopTool.TabIndex = 2;
this.btnDbDevelopTool.Text = "数据库开发工具";
this.btnDbDevelopTool.UseVisualStyleBackColor = false;
//
// wMain
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.Window;
this.ClientSize = new System.Drawing.Size(257, 164);
this.Controls.Add(this.btnDbDevelopTool);
this.Controls.Add(this.btnPatchPack);
this.Controls.Add(this.btnUpdateExecuter);
this.Name = "wMain";
this.Text = "工具平台";
this.Load += new System.EventHandler(this.wMain_Load);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Button btnUpdateExecuter;
private System.Windows.Forms.Button btnPatchPack;
private System.Windows.Forms.Button btnDbDevelopTool;
private System.Windows.Forms.ToolTip toolTip1;
}
}
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Tools
{
public partial class wMain : MyCommon.wBasic
{
wExtend Extend = new wExtend();
public wMain()
{
InitializeComponent();
this.MaximizeBox = false;
this.MinimizeBox = false;
}
private void wMain_Load(object sender, EventArgs e)
{
this.btnUpdateExecuter.Click += Button_Click;
this.btnPatchPack.Click += Button_Click;
this.btnDbDevelopTool.Click += Button_Click;
}
private void Button_Click(object sender, EventArgs e)
{
if (sender is Button)
{
var btn = sender as Button;
var name = btn.Name.Substring(3); //去掉三位缩写
var w = Extend.GetWinExtend(name);
w?.ShowDialog();
}
}
}
}
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment