Commit 19412828 authored by 罗显健's avatar 罗显健

增加项目:WebKit

parent d7d61a01
......@@ -53,3 +53,4 @@ bin
/AppHome/AutoUpdate/AutoUpdate.exe
/AppHome/config/sys_cfg.xml
/AppHome/Package
/AppHome/caches/default
......@@ -15,6 +15,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AutoUpdate", "AutoUpdate\Au
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Pan.DIYForm", "DIYForm\Pan.DIYForm.csproj", "{A7CC209D-A8E3-4A36-8940-C0548211F14E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebKit", "WebKit\WebKit.csproj", "{67D48628-0AA7-4613-96C5-63022D610307}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
......@@ -97,6 +99,18 @@ Global
{A7CC209D-A8E3-4A36-8940-C0548211F14E}.Release|x64.Build.0 = Release|Any CPU
{A7CC209D-A8E3-4A36-8940-C0548211F14E}.Release|x86.ActiveCfg = Release|Any CPU
{A7CC209D-A8E3-4A36-8940-C0548211F14E}.Release|x86.Build.0 = Release|Any CPU
{67D48628-0AA7-4613-96C5-63022D610307}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{67D48628-0AA7-4613-96C5-63022D610307}.Debug|Any CPU.Build.0 = Debug|Any CPU
{67D48628-0AA7-4613-96C5-63022D610307}.Debug|x64.ActiveCfg = Debug|x64
{67D48628-0AA7-4613-96C5-63022D610307}.Debug|x64.Build.0 = Debug|x64
{67D48628-0AA7-4613-96C5-63022D610307}.Debug|x86.ActiveCfg = Debug|x86
{67D48628-0AA7-4613-96C5-63022D610307}.Debug|x86.Build.0 = Debug|x86
{67D48628-0AA7-4613-96C5-63022D610307}.Release|Any CPU.ActiveCfg = Release|Any CPU
{67D48628-0AA7-4613-96C5-63022D610307}.Release|Any CPU.Build.0 = Release|Any CPU
{67D48628-0AA7-4613-96C5-63022D610307}.Release|x64.ActiveCfg = Release|x64
{67D48628-0AA7-4613-96C5-63022D610307}.Release|x64.Build.0 = Release|x64
{67D48628-0AA7-4613-96C5-63022D610307}.Release|x86.ActiveCfg = Release|x86
{67D48628-0AA7-4613-96C5-63022D610307}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
......
namespace WebKit
{
partial class FrmBase
{
/// <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()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmBase));
this.SuspendLayout();
//
// FrmBase
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(360, 167);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "FrmBase";
this.Text = "FrmBase";
this.ResumeLayout(false);
}
#endregion
}
}
\ No newline at end of file
using System.Windows.Forms;
namespace WebKit
{
public partial class FrmBase : Form
{
public FrmBase()
{
InitializeComponent();
}
/// <summary>
/// 转换为bool 的数据。
/// 1 或 true 为true,其他均为false。
/// </summary>
/// <param name="pData"></param>
/// <returns></returns>
public static bool ToBool(object pData)
{
if (pData == null || pData == System.DBNull.Value || pData.ToString() == "")
{
return false;
}
if (pData.ToString().Trim() == "1" || pData.ToString().Trim().ToUpper() == "TRUE")
{
return true;
}
return false;
}
}
}
This diff is collapsed.
namespace WebKit
{
partial class FrmWeb
{
/// <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()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmWeb));
this.pnlToolBar = new System.Windows.Forms.Panel();
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.txtJsFunc = new System.Windows.Forms.TextBox();
this.btnCSCaller = new System.Windows.Forms.Button();
this.txtUrl = new System.Windows.Forms.TextBox();
this.btnRefresh = new System.Windows.Forms.Button();
this.panel1 = new System.Windows.Forms.Panel();
this.pnlToolBar.SuspendLayout();
this.SuspendLayout();
//
// pnlToolBar
//
this.pnlToolBar.Controls.Add(this.label2);
this.pnlToolBar.Controls.Add(this.label1);
this.pnlToolBar.Controls.Add(this.txtJsFunc);
this.pnlToolBar.Controls.Add(this.btnCSCaller);
this.pnlToolBar.Controls.Add(this.txtUrl);
this.pnlToolBar.Controls.Add(this.btnRefresh);
this.pnlToolBar.Dock = System.Windows.Forms.DockStyle.Top;
this.pnlToolBar.Location = new System.Drawing.Point(0, 0);
this.pnlToolBar.Name = "pnlToolBar";
this.pnlToolBar.Size = new System.Drawing.Size(1307, 49);
this.pnlToolBar.TabIndex = 0;
this.pnlToolBar.Visible = false;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(732, 20);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(59, 12);
this.label2.TabIndex = 8;
this.label2.Text = "Js 脚本:";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(13, 20);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(35, 12);
this.label1.TabIndex = 7;
this.label1.Text = "Url:";
//
// txtJsFunc
//
this.txtJsFunc.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.txtJsFunc.Location = new System.Drawing.Point(793, 16);
this.txtJsFunc.Name = "txtJsFunc";
this.txtJsFunc.Size = new System.Drawing.Size(395, 21);
this.txtJsFunc.TabIndex = 6;
//
// btnCSCaller
//
this.btnCSCaller.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnCSCaller.Location = new System.Drawing.Point(1194, 15);
this.btnCSCaller.Name = "btnCSCaller";
this.btnCSCaller.Size = new System.Drawing.Size(75, 23);
this.btnCSCaller.TabIndex = 4;
this.btnCSCaller.Text = "Exec JS";
this.btnCSCaller.UseVisualStyleBackColor = true;
this.btnCSCaller.Click += new System.EventHandler(this.btnCSCaller_Click);
//
// txtUrl
//
this.txtUrl.Location = new System.Drawing.Point(49, 16);
this.txtUrl.Name = "txtUrl";
this.txtUrl.Size = new System.Drawing.Size(356, 21);
this.txtUrl.TabIndex = 2;
this.txtUrl.TextChanged += new System.EventHandler(this.txtUrl_TextChanged);
this.txtUrl.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtUrl_KeyDown);
//
// btnRefresh
//
this.btnRefresh.Location = new System.Drawing.Point(411, 15);
this.btnRefresh.Name = "btnRefresh";
this.btnRefresh.Size = new System.Drawing.Size(75, 23);
this.btnRefresh.TabIndex = 1;
this.btnRefresh.Text = "刷新";
this.btnRefresh.UseVisualStyleBackColor = true;
this.btnRefresh.Click += new System.EventHandler(this.btnRefresh_Click);
//
// panel1
//
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new System.Drawing.Point(0, 49);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(1307, 735);
this.panel1.TabIndex = 1;
//
// FrmWeb
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1307, 784);
this.Controls.Add(this.panel1);
this.Controls.Add(this.pnlToolBar);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.KeyPreview = true;
this.Name = "FrmWeb";
this.Text = "FrmWeb";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmWeb_FormClosing);
this.Load += new System.EventHandler(this.FrmWeb_Load);
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FrmWeb_KeyDown);
this.pnlToolBar.ResumeLayout(false);
this.pnlToolBar.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel pnlToolBar;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Button btnRefresh;
private System.Windows.Forms.TextBox txtUrl;
private System.Windows.Forms.Button btnCSCaller;
private System.Windows.Forms.TextBox txtJsFunc;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
}
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Windows.Forms;
using WebKit.JsInterface;
namespace WebKit
{
/// <summary>
/// Javascrip 控制器
/// <para> ChromiumWebBrowser 对象 通过 JavascriptObjectRepository 绑定该类的实例,使得前端可以直接使用obj.XXX()的形式调用该类的方法。</para>
/// 注意:
/// <para>1、此类的方法不能有重载(即使写了也调用不了),只能识别写在最前面的第一个。否则异常:System.Reflection.TargetParameterCountException: 参数计数不匹配。 </para>
/// <para>2、旧版本,默认的 RegisterJsObject(camelCaseJavascriptNames:true )绑定后,前端只认小写字母开始的属性、方法名称。参数RegisterJsObject,传入 false,就能识别大写字母开始的属性、方法名称了。 </para>
/// <para>3、新版本,JavascriptObjectRepository.Register 绑定的对象,内置的IJavascriptObjectRepository 都把对象转换了camelCaseJavascriptNames。需要JavascriptObjectRepository.NameConverter = null,去掉转换才能调用后端大写字母开头的方法 </para>
/// </summary>
public class JavascriptController
{
/// <summary>
/// 所属窗体
/// </summary>
public Form FormOwer { get; set; }
public string MessageText { get; set; }
/// <summary>
/// Js 控制器
/// </summary>
public IJavascriptPageBaseEvent JsPageBase { get; set; }
/// <summary>
/// <inheritdoc cref="JavascriptController"/>
/// </summary>
/// <param name="form"></param>
public JavascriptController()
{
}
#region 测试、演示的方法
// 同名方法不能被调用,
public string ShowString(string str)
{
MessageBox.Show("this in C#.\n\r" + str);
return str;
}
/// <summary>
///
/// </summary>
public bool Show()
{
MessageBox.Show("this in C#.\n\r" + MessageText);
return true;
}
public bool ShowStr(string str)
{
MessageBox.Show("收到JS带参数调用\n\r" + str);
try
{
var aa = JsPageBase?.EvaluateScriptAsync(str);
return true;
}
catch (Exception ex)
{
return false;
}
}
public void ShowObj(object obj)
{
var strValue = Newtonsoft.Json.JsonConvert.SerializeObject(obj);
MessageBox.Show("收到JS带参数调用\n\r" + strValue);
}
#endregion
#region 调用所属(在) 窗体内的方法。历史项目已存在引用, 请勿随意更名!
/// <summary>
/// 键盘按键事件
/// </summary>
/// <param name="keyboardEvent"></param>
public void WebKeyDown(string keyboardEvent)
{
var keyEvent = JsonConvert.DeserializeObject(keyboardEvent, typeof(KeyboardEvent)) as KeyboardEvent;
switch (keyEvent.keyCode)
{
case (int)Keys.F11:
JsPageBase?.ChangeFullScreemModel();
break;
case (int)Keys.F12:
JsPageBase?.ChangeDevToolsVisibleStatus();
break;
case (int)Keys.F5:
if (keyEvent.altKey) // 强制刷新
{
JsPageBase?.ForceRefresh();
}
break;
default:
break;
}
}
/// <summary>
///
/// </summary>
/// <param name="actionName"></param>
/// <param name="param"></param>
/// <returns></returns>
public object Caller(string actionName, string param)
{
var type = GetActionOwerFormClassType;
MethodInfo method = type.GetMethod(actionName);
var result = method.Invoke(JsPageBase, param == null ? null : new object[] { param });
return result;
}
/// <summary>
///
/// </summary>
/// <param name="actionName"></param>
/// <param name="jsObj">前端的对象</param>
/// <returns></returns>
public object Caller1(string actionName, Dictionary<string, object> jsObj)
{
var type = GetActionOwerFormClassType;
MethodInfo method = type.GetMethod(actionName);
if (method == null)
{
return new { sussess = false, msg = $"{actionName}未定义!" };
}
else
{
var strObj = JsonConvert.SerializeObject(jsObj);
var result = method.Invoke(JsPageBase, jsObj == null ? null : new object[] { strObj });
return result;
}
}
/// <summary>
///
/// </summary>
/// <param name="actionName"></param>
/// <param name="jsObj">前端的对象</param>
/// <returns></returns>
public object Caller2(string actionName, object jsObj)
{
var type = GetActionOwerFormClassType;
MethodInfo method = type.GetMethod(actionName);
if (method == null)
{
return new { sussess = false, msg = $"{actionName}不存在!" };
}
else
{
var strObj = JsonConvert.SerializeObject(jsObj);
var result = method.Invoke(JsPageBase, jsObj == null ? null : new object[] { strObj });
return result;
}
}
/// <summary>
/// 封装的cs端方法执行器,供web端调用。
/// 存在的问题:前端可以
/// </summary>
/// <param name="actionName">方法名</param>
/// <param name="jsObj">当为js对象的时候,对应类型为:Dictionary<string,object></param>
/// <returns></returns>
public CsExecuteResponse CsExecuter(string actionName, object jsObj)
{
var type = GetActionOwerFormClassType;
MethodInfo method = type.GetMethod(actionName);
if (method == null || method.GetCustomAttributes(typeof(JsAllowedAttribute), true) == null)
{
return new CsExecuteResponse { success = false, message = $"{actionName}未定义!" };
}
else
{
CsExecuteResponse csExecuteResponse = new CsExecuteResponse();
try
{
var result = method.Invoke(this.FormOwer, jsObj == null ? null : new object[] { jsObj });
csExecuteResponse.data = result;
csExecuteResponse.success = true;
}
catch (Exception ex)
{
csExecuteResponse.message = ex.InnerException != null ? ex.InnerException.Message : ex.Message;
csExecuteResponse.success = false; // 可以不写,默认为false
}
return csExecuteResponse;
}
}
/// <summary>
/// 获取方法所属窗体的类型名
/// </summary>
private Type GetActionOwerFormClassType
{
get
{
var actionTypeName = this.FormOwer.GetType().FullName;
return Assembly.GetExecutingAssembly().GetType(actionTypeName);
}
}
#endregion
}
/// <summary>
/// 前端键盘事件
/// </summary>
public class KeyboardEvent
{
public string code { get; set; }
public int keyCode { get; set; }
public bool altKey { get; set; }
public bool ctrlKey { get; set; }
public bool shiftKey { get; set; }
}
/// <summary>
///
/// </summary>
public class CsExecuteResponse
{
public bool success { get; set; }
public dynamic data { get; set; }
public string message { get; set; }
}
/// <summary>
/// 是否能被Js调用执行。未被标记该属性的方法,不允许直接被调用。
/// </summary>
public class JsAllowedAttribute : System.Attribute
{
}
}
namespace WebKit.JsInterface
{
/// <summary>
/// 封装的web基础接口
/// </summary>
public interface IJavascriptPageBaseEvent
{
/// <summary>
/// 改变全屏模式
/// </summary>
void ChangeFullScreemModel();
/// <summary>
/// 改变开发工具可见状态
/// </summary>
void ChangeDevToolsVisibleStatus();
/// <summary>
/// 强制刷新
/// </summary>
void ForceRefresh();
/// <summary>
/// 设置标题
/// </summary>
/// <param name="title"></param>
void SetTitle(string title);
/// <summary>
/// 执行一段脚本.
/// </summary>
/// <param name="script"></param>
/// <returns></returns>
CefSharp.JavascriptResponse EvaluateScriptAsync(string script);
}
}
namespace WebKit
{
/// <summary>
/// cef菜单事件
/// </summary>
public class MenuHandler : CefSharp.IContextMenuHandler
{
void CefSharp.IContextMenuHandler.OnBeforeContextMenu(CefSharp.IWebBrowser browserControl, CefSharp.IBrowser browser, CefSharp.IFrame frame, CefSharp.IContextMenuParams parameters, CefSharp.IMenuModel model)
{
model.Clear();
}
bool CefSharp.IContextMenuHandler.OnContextMenuCommand(CefSharp.IWebBrowser browserControl, CefSharp.IBrowser browser, CefSharp.IFrame frame, CefSharp.IContextMenuParams parameters, CefSharp.CefMenuCommand commandId, CefSharp.CefEventFlags eventFlags)
{
//throw new NotImplementedException();
return false;
}
void CefSharp.IContextMenuHandler.OnContextMenuDismissed(CefSharp.IWebBrowser browserControl, CefSharp.IBrowser browser, CefSharp.IFrame frame)
{
//throw new NotImplementedException();
}
bool CefSharp.IContextMenuHandler.RunContextMenu(CefSharp.IWebBrowser browserControl, CefSharp.IBrowser browser, CefSharp.IFrame frame, CefSharp.IContextMenuParams parameters, CefSharp.IMenuModel model, CefSharp.IRunContextMenuCallback callback)
{
return false;
}
}
}
using System;
using System.Security.Policy;
using System.Windows.Forms;
namespace WebKit
{
static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main(string[] args)
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
var index = System.Configuration.ConfigurationManager.AppSettings["Index"];
var title = System.Configuration.ConfigurationManager.AppSettings["Title"];
if (string.IsNullOrEmpty(index)) index = "https://www.baidu.com";
if (string.IsNullOrWhiteSpace(title)) title = "Feteto";
if (args != null && args.Length > 0)
{
args = args[0].Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries);
if (args.Length > 0) index = args[0];
if (args.Length == 2) title = args[1];
}
Application.Run(new FrmWeb(index, title));
}
}
}
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("WebKit")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Feteto")]
[assembly: AssemblyProduct("WebKit")]
[assembly: AssemblyCopyright("Copyright © Feteto 2023")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// 将 ComVisible 设置为 false 会使此程序集中的类型
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
//请将此类型的 ComVisible 特性设置为 true。
[assembly: ComVisible(false)]
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
[assembly: Guid("67d48628-0aa7-4613-96c5-63022d610307")]
// 程序集的版本信息由下列四个值组成:
//
// 主版本
// 次版本
// 生成号
// 修订号
//
// 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
// 方法是按如下所示使用“*”: :
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.0.0.0")]
[assembly: AssemblyFileVersion("2.0.0.0")]
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace WebKit.Properties {
using System;
/// <summary>
/// 一个强类型的资源类,用于查找本地化的字符串等。
/// </summary>
// 此类是由 StronglyTypedResourceBuilder
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
// 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
// (以 /str 作为命令选项),或重新生成 VS 项目。
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.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("WebKit.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;
}
}
}
}
<?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>
\ No newline at end of file
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace WebKit.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.6.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;
}
}
}
}
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>
This diff is collapsed.
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<!--首页-->
<add key="Index" value="http://ftt.feteto.cn:21802/" />
<add key="Title" value="飞天兔任务系统" />
<!--是否显示工具栏-->
<add key="ShowToolBar" value="0" />
<!--是否调式模式-->
<add key="DebugMode" value="0" />
<add key="ClientSettingsProvider.ServiceUri" value="" />
</appSettings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="CefSharp" />
</assemblyBinding>
</runtime>
<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
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="cef.redist.x64" version="116.0.19" targetFramework="net472" />
<package id="cef.redist.x86" version="116.0.19" targetFramework="net472" />
<package id="CefSharp.Common" version="116.0.190" targetFramework="net472" />
<package id="CefSharp.WinForms" version="116.0.190" targetFramework="net472" />
</packages>
\ 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