mirror of
https://github.com/chylex/Query.git
synced 2025-07-05 06:38:54 +02:00
Compare commits
5 Commits
71bf0a5c49
...
2b9d5bba8f
Author | SHA1 | Date | |
---|---|---|---|
2b9d5bba8f | |||
8380aaa9f8 | |||
f05d70ec14 | |||
c138c2a3ea | |||
3debecb9a9 |
@ -36,14 +36,28 @@ public abstract record Number : IAdditionOperators<Number, Number, Number>,
|
|||||||
public override Number Pow(Number exponent) {
|
public override Number Pow(Number exponent) {
|
||||||
if (exponent is Rational { Value: {} rationalExponent }) {
|
if (exponent is Rational { Value: {} rationalExponent }) {
|
||||||
Fraction fractionExponent = rationalExponent.GetImproperFraction();
|
Fraction fractionExponent = rationalExponent.GetImproperFraction();
|
||||||
if (fractionExponent.Denominator == 1 && fractionExponent.Numerator >= 0) {
|
|
||||||
|
if (fractionExponent.Numerator >= 0 && fractionExponent.Denominator == 1) {
|
||||||
try {
|
try {
|
||||||
return new Rational(BigRational.Pow(Value, fractionExponent.Numerator));
|
return new Rational(BigRational.Pow(Value, fractionExponent.Numerator));
|
||||||
} catch (OverflowException) {}
|
} catch (OverflowException) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (fractionExponent.Numerator == 1 && fractionExponent.Denominator > 1) {
|
||||||
|
Number result = PowAsDecimal(exponent);
|
||||||
|
|
||||||
|
BigRational assumedPerfectPowerRoot = new BigRational(decimal.Floor(result.AsDecimal));
|
||||||
|
BigRational assumedPerfectPower = BigRational.Pow(assumedPerfectPowerRoot, fractionExponent.Denominator);
|
||||||
|
|
||||||
|
return assumedPerfectPower == Value ? assumedPerfectPowerRoot : result;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return new Decimal(AsDecimal).Pow(exponent);
|
return PowAsDecimal(exponent);
|
||||||
|
|
||||||
|
Number PowAsDecimal(Number number) {
|
||||||
|
return new Decimal(AsDecimal).Pow(number);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string ToString(IFormatProvider? formatProvider) {
|
public override string ToString(IFormatProvider? formatProvider) {
|
||||||
|
252
Query/Form/MainForm.Designer.cs
generated
252
Query/Form/MainForm.Designer.cs
generated
@ -1,135 +1,133 @@
|
|||||||
namespace Query.Form {
|
namespace Query.Form {
|
||||||
sealed partial class MainForm {
|
sealed partial class MainForm {
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required designer variable.
|
/// Required designer variable.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private System.ComponentModel.IContainer components = null;
|
private System.ComponentModel.IContainer components = null;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clean up any resources being used.
|
/// Clean up any resources being used.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||||
protected override void Dispose(bool disposing) {
|
protected override void Dispose(bool disposing) {
|
||||||
if (disposing && (components != null)) {
|
if (disposing && (components != null)) {
|
||||||
components.Dispose();
|
components.Dispose();
|
||||||
}
|
}
|
||||||
base.Dispose(disposing);
|
base.Dispose(disposing);
|
||||||
}
|
}
|
||||||
|
|
||||||
#region Windows Form Designer generated code
|
#region Windows Form Designer generated code
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required method for Designer support - do not modify
|
/// Required method for Designer support - do not modify
|
||||||
/// the contents of this method with the code editor.
|
/// the contents of this method with the code editor.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent() {
|
private void InitializeComponent() {
|
||||||
this.components = new System.ComponentModel.Container();
|
components = new System.ComponentModel.Container();
|
||||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
|
||||||
this.queryLog = new QueryHistoryLog();
|
queryLog = new Query.Form.QueryHistoryLog();
|
||||||
this.queryBox = new QueryTextBox();
|
queryBox = new Query.Form.QueryTextBox();
|
||||||
this.trayIcon = new System.Windows.Forms.NotifyIcon(this.components);
|
trayIcon = new System.Windows.Forms.NotifyIcon(components);
|
||||||
this.contextMenuTray = new System.Windows.Forms.ContextMenuStrip(this.components);
|
contextMenuTray = new System.Windows.Forms.ContextMenuStrip(components);
|
||||||
this.showToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
showToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.hookToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
hookToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.contextMenuTray.SuspendLayout();
|
contextMenuTray.SuspendLayout();
|
||||||
this.SuspendLayout();
|
SuspendLayout();
|
||||||
//
|
//
|
||||||
// queryLog
|
// queryLog
|
||||||
//
|
//
|
||||||
this.queryLog.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
queryLog.Anchor = ((System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right));
|
||||||
| System.Windows.Forms.AnchorStyles.Left)
|
queryLog.BackColor = System.Drawing.Color.Transparent;
|
||||||
| System.Windows.Forms.AnchorStyles.Right)));
|
queryLog.Font = new System.Drawing.Font("Consolas", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte) 238));
|
||||||
this.queryLog.BackColor = System.Drawing.Color.Transparent;
|
queryLog.Location = new System.Drawing.Point(7, 8);
|
||||||
this.queryLog.Font = new System.Drawing.Font("Consolas", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
queryLog.Margin = new System.Windows.Forms.Padding(7, 8, 7, 8);
|
||||||
this.queryLog.Location = new System.Drawing.Point(5, 5);
|
queryLog.Name = "queryLog";
|
||||||
this.queryLog.Margin = new System.Windows.Forms.Padding(5);
|
queryLog.Size = new System.Drawing.Size(696, 296);
|
||||||
this.queryLog.Name = "queryLog";
|
queryLog.TabIndex = 1;
|
||||||
this.queryLog.Size = new System.Drawing.Size(522, 192);
|
//
|
||||||
this.queryLog.TabIndex = 1;
|
// queryBox
|
||||||
//
|
//
|
||||||
// queryBox
|
queryBox.BackColor = System.Drawing.Color.FromArgb(((int) ((byte) 36)), ((int) ((byte) 36)), ((int) ((byte) 36)));
|
||||||
//
|
queryBox.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||||
this.queryBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
|
queryBox.Location = new System.Drawing.Point(0, 312);
|
||||||
| System.Windows.Forms.AnchorStyles.Right)));
|
queryBox.Margin = new System.Windows.Forms.Padding(0);
|
||||||
this.queryBox.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(36)))), ((int)(((byte)(36)))), ((int)(((byte)(36)))));
|
queryBox.Name = "queryBox";
|
||||||
this.queryBox.Location = new System.Drawing.Point(0, 202);
|
queryBox.Size = new System.Drawing.Size(709, 50);
|
||||||
this.queryBox.Margin = new System.Windows.Forms.Padding(0);
|
queryBox.TabIndex = 0;
|
||||||
this.queryBox.Name = "queryBox";
|
//
|
||||||
this.queryBox.Size = new System.Drawing.Size(532, 33);
|
// trayIcon
|
||||||
this.queryBox.TabIndex = 0;
|
//
|
||||||
//
|
trayIcon.ContextMenuStrip = contextMenuTray;
|
||||||
// trayIcon
|
trayIcon.Icon = ((System.Drawing.Icon) resources.GetObject("trayIcon.Icon"));
|
||||||
//
|
trayIcon.Text = "Query";
|
||||||
this.trayIcon.ContextMenuStrip = this.contextMenuTray;
|
trayIcon.Visible = true;
|
||||||
this.trayIcon.Icon = ((System.Drawing.Icon)(resources.GetObject("trayIcon.Icon")));
|
trayIcon.Click += trayIcon_Click;
|
||||||
this.trayIcon.Text = "Query";
|
//
|
||||||
this.trayIcon.Visible = true;
|
// contextMenuTray
|
||||||
this.trayIcon.Click += new System.EventHandler(this.trayIcon_Click);
|
//
|
||||||
//
|
contextMenuTray.ImageScalingSize = new System.Drawing.Size(20, 20);
|
||||||
// contextMenuTray
|
contextMenuTray.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||||
//
|
showToolStripMenuItem, hookToolStripMenuItem, exitToolStripMenuItem
|
||||||
this.contextMenuTray.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
});
|
||||||
this.showToolStripMenuItem,
|
contextMenuTray.Name = "contextMenuTray";
|
||||||
this.hookToolStripMenuItem,
|
contextMenuTray.ShowImageMargin = false;
|
||||||
this.exitToolStripMenuItem});
|
contextMenuTray.ShowItemToolTips = false;
|
||||||
this.contextMenuTray.Name = "contextMenuTray";
|
contextMenuTray.Size = new System.Drawing.Size(90, 76);
|
||||||
this.contextMenuTray.ShowImageMargin = false;
|
//
|
||||||
this.contextMenuTray.ShowItemToolTips = false;
|
// showToolStripMenuItem
|
||||||
this.contextMenuTray.Size = new System.Drawing.Size(128, 92);
|
//
|
||||||
//
|
showToolStripMenuItem.Name = "showToolStripMenuItem";
|
||||||
// showToolStripMenuItem
|
showToolStripMenuItem.Size = new System.Drawing.Size(89, 24);
|
||||||
//
|
showToolStripMenuItem.Text = "Show";
|
||||||
this.showToolStripMenuItem.Name = "showToolStripMenuItem";
|
showToolStripMenuItem.Click += showToolStripMenuItem_Click;
|
||||||
this.showToolStripMenuItem.Size = new System.Drawing.Size(127, 22);
|
//
|
||||||
this.showToolStripMenuItem.Text = "Show";
|
// hookToolStripMenuItem
|
||||||
this.showToolStripMenuItem.Click += new System.EventHandler(this.showToolStripMenuItem_Click);
|
//
|
||||||
//
|
hookToolStripMenuItem.Name = "hookToolStripMenuItem";
|
||||||
// hookToolStripMenuItem
|
hookToolStripMenuItem.Size = new System.Drawing.Size(89, 24);
|
||||||
//
|
hookToolStripMenuItem.Text = "Hook";
|
||||||
this.hookToolStripMenuItem.Name = "hookToolStripMenuItem";
|
hookToolStripMenuItem.Click += hookToolStripMenuItem_Click;
|
||||||
this.hookToolStripMenuItem.Size = new System.Drawing.Size(127, 22);
|
//
|
||||||
this.hookToolStripMenuItem.Text = "Hook";
|
// exitToolStripMenuItem
|
||||||
this.hookToolStripMenuItem.Click += new System.EventHandler(this.hookToolStripMenuItem_Click);
|
//
|
||||||
//
|
exitToolStripMenuItem.Name = "exitToolStripMenuItem";
|
||||||
// exitToolStripMenuItem
|
exitToolStripMenuItem.Size = new System.Drawing.Size(89, 24);
|
||||||
//
|
exitToolStripMenuItem.Text = "Exit";
|
||||||
this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
|
exitToolStripMenuItem.Click += exitToolStripMenuItem_Click;
|
||||||
this.exitToolStripMenuItem.Size = new System.Drawing.Size(127, 22);
|
//
|
||||||
this.exitToolStripMenuItem.Text = "Exit";
|
// MainForm
|
||||||
this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click);
|
//
|
||||||
//
|
AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F);
|
||||||
// MainForm
|
AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
//
|
BackColor = System.Drawing.Color.FromArgb(((int) ((byte) 64)), ((int) ((byte) 64)), ((int) ((byte) 64)));
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
ClientSize = new System.Drawing.Size(709, 362);
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
ControlBox = false;
|
||||||
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
|
Controls.Add(queryLog);
|
||||||
this.ClientSize = new System.Drawing.Size(532, 235);
|
Controls.Add(queryBox);
|
||||||
this.ControlBox = false;
|
FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
||||||
this.Controls.Add(this.queryLog);
|
Icon = ((System.Drawing.Icon) resources.GetObject("$this.Icon"));
|
||||||
this.Controls.Add(this.queryBox);
|
Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
MaximizeBox = false;
|
||||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
MinimizeBox = false;
|
||||||
this.MaximizeBox = false;
|
ShowInTaskbar = false;
|
||||||
this.MinimizeBox = false;
|
Text = "Query";
|
||||||
this.Name = "MainForm";
|
Deactivate += MainForm_Deactivate;
|
||||||
this.ShowInTaskbar = false;
|
Shown += MainForm_Shown;
|
||||||
this.Text = "Query";
|
LocationChanged += MainForm_LocationChanged;
|
||||||
this.Deactivate += new System.EventHandler(this.MainForm_Deactivate);
|
SizeChanged += MainForm_SizeChanged;
|
||||||
this.Shown += new System.EventHandler(this.MainForm_Shown);
|
contextMenuTray.ResumeLayout(false);
|
||||||
this.contextMenuTray.ResumeLayout(false);
|
ResumeLayout(false);
|
||||||
this.ResumeLayout(false);
|
}
|
||||||
|
|
||||||
}
|
#endregion
|
||||||
|
|
||||||
#endregion
|
private Query.Form.QueryTextBox queryBox;
|
||||||
|
private Query.Form.QueryHistoryLog queryLog;
|
||||||
private QueryTextBox queryBox;
|
private System.Windows.Forms.NotifyIcon trayIcon;
|
||||||
private QueryHistoryLog queryLog;
|
private System.Windows.Forms.ContextMenuStrip contextMenuTray;
|
||||||
private System.Windows.Forms.NotifyIcon trayIcon;
|
private System.Windows.Forms.ToolStripMenuItem showToolStripMenuItem;
|
||||||
private System.Windows.Forms.ContextMenuStrip contextMenuTray;
|
private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem;
|
||||||
private System.Windows.Forms.ToolStripMenuItem showToolStripMenuItem;
|
private System.Windows.Forms.ToolStripMenuItem hookToolStripMenuItem;
|
||||||
private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem;
|
}
|
||||||
private System.Windows.Forms.ToolStripMenuItem hookToolStripMenuItem;
|
|
||||||
}
|
|
||||||
}
|
}
|
@ -45,10 +45,7 @@ sealed partial class MainForm : System.Windows.Forms.Form {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void MainForm_Shown(object? sender, EventArgs e) {
|
private void MainForm_Shown(object? sender, EventArgs e) {
|
||||||
if (Screen.PrimaryScreen is {} primaryScreen) {
|
FixLocation();
|
||||||
Rectangle screenRect = primaryScreen.WorkingArea;
|
|
||||||
Location = new Point(screenRect.X + screenRect.Width - Width, screenRect.Y + screenRect.Height - Height);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!isLoaded) {
|
if (!isLoaded) {
|
||||||
isLoaded = true;
|
isLoaded = true;
|
||||||
@ -56,6 +53,25 @@ sealed partial class MainForm : System.Windows.Forms.Form {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void MainForm_LocationChanged(object sender, EventArgs e) {
|
||||||
|
FixLocation();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void MainForm_SizeChanged(object sender, EventArgs e) {
|
||||||
|
FixLocation();
|
||||||
|
}
|
||||||
|
|
||||||
|
private bool isMoving = false;
|
||||||
|
|
||||||
|
private void FixLocation() {
|
||||||
|
if (!isMoving && Screen.FromControl(this) is {} screen) {
|
||||||
|
Rectangle screenRect = screen.WorkingArea;
|
||||||
|
isMoving = true;
|
||||||
|
Location = new Point(screenRect.X + screenRect.Width - Width, screenRect.Y + screenRect.Height - Height);
|
||||||
|
isMoving = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void MainForm_Deactivate(object? sender, EventArgs e) {
|
private void MainForm_Deactivate(object? sender, EventArgs e) {
|
||||||
SetShown(false);
|
SetShown(false);
|
||||||
}
|
}
|
||||||
@ -88,10 +104,8 @@ sealed partial class MainForm : System.Windows.Forms.Form {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void focusTimer_Tick(object? sender, EventArgs e) {
|
private void focusTimer_Tick(object? sender, EventArgs e) {
|
||||||
WindowState = FormWindowState.Minimized;
|
|
||||||
Show();
|
Show();
|
||||||
Activate();
|
Activate();
|
||||||
WindowState = FormWindowState.Normal;
|
|
||||||
|
|
||||||
queryBox.Focus();
|
queryBox.Focus();
|
||||||
focusTimer.Stop();
|
focusTimer.Stop();
|
||||||
|
@ -1,64 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<root>
|
<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: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:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
<xsd:element name="root" msdata:IsDataSet="true">
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
@ -112,19 +53,19 @@
|
|||||||
<value>2.0</value>
|
<value>2.0</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
<resheader name="reader">
|
<resheader name="reader">
|
||||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
<resheader name="writer">
|
<resheader name="writer">
|
||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
<metadata name="trayIcon.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="trayIcon.TrayLocation" type="System.Drawing.Point, System.Drawing.Primitives, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>17, 17</value>
|
<value>17, 17</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
<metadata name="contextMenuTray.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="contextMenuTray.TrayLocation" type="System.Drawing.Point, System.Drawing.Primitives, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>112, 17</value>
|
<value>112, 17</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
<assembly alias="System.Drawing.Common" name="System.Drawing.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51" />
|
||||||
<data name="trayIcon.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
<data name="trayIcon.Icon" type="System.Drawing.Icon, System.Drawing.Common" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
<value>
|
<value>
|
||||||
AAABAAEAGBgAAAEAIACICQAAFgAAACgAAAAYAAAAMAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
AAABAAEAGBgAAAEAIACICQAAFgAAACgAAAAYAAAAMAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
AAAkJCT/JCQk/yQkJP8kJCT/JCQk/yQkJP8kJCT/JCQk/yQkJP8kJCT/JCQk/yQkJP8kJCT/JCQk/yQk
|
AAAkJCT/JCQk/yQkJP8kJCT/JCQk/yQkJP8kJCT/JCQk/yQkJP8kJCT/JCQk/yQkJP8kJCT/JCQk/yQk
|
||||||
@ -170,7 +111,7 @@
|
|||||||
AEE=
|
AEE=
|
||||||
</value>
|
</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing.Common" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
<value>
|
<value>
|
||||||
AAABAAEAGBgAAAEAIACICQAAFgAAACgAAAAYAAAAMAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
AAABAAEAGBgAAAEAIACICQAAFgAAACgAAAAYAAAAMAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
AAAkJCT/JCQk/yQkJP8kJCT/JCQk/yQkJP8kJCT/JCQk/yQkJP8kJCT/JCQk/yQkJP8kJCT/JCQk/yQk
|
AAAkJCT/JCQk/yQkJP8kJCT/JCQk/yQkJP8kJCT/JCQk/yQkJP8kJCT/JCQk/yQkJP8kJCT/JCQk/yQk
|
||||||
|
101
Query/Form/QueryHistoryLog.Designer.cs
generated
101
Query/Form/QueryHistoryLog.Designer.cs
generated
@ -1,57 +1,58 @@
|
|||||||
namespace Query.Form {
|
namespace Query.Form {
|
||||||
partial class QueryHistoryLog {
|
partial class QueryHistoryLog {
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required designer variable.
|
/// Required designer variable.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private System.ComponentModel.IContainer components = null;
|
private System.ComponentModel.IContainer components = null;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clean up any resources being used.
|
/// Clean up any resources being used.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||||
protected override void Dispose(bool disposing) {
|
protected override void Dispose(bool disposing) {
|
||||||
if (disposing && (components != null)) {
|
if (disposing && (components != null)) {
|
||||||
components.Dispose();
|
components.Dispose();
|
||||||
}
|
}
|
||||||
base.Dispose(disposing);
|
base.Dispose(disposing);
|
||||||
}
|
}
|
||||||
|
|
||||||
#region Component Designer generated code
|
#region Component Designer generated code
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required method for Designer support - do not modify
|
/// Required method for Designer support - do not modify
|
||||||
/// the contents of this method with the code editor.
|
/// the contents of this method with the code editor.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent() {
|
private void InitializeComponent() {
|
||||||
this.container = new System.Windows.Forms.FlowLayoutPanel();
|
container = new System.Windows.Forms.FlowLayoutPanel();
|
||||||
this.SuspendLayout();
|
SuspendLayout();
|
||||||
//
|
//
|
||||||
// container
|
// container
|
||||||
//
|
//
|
||||||
this.container.AutoScroll = true;
|
container.AutoScroll = true;
|
||||||
this.container.Dock = System.Windows.Forms.DockStyle.Fill;
|
container.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
this.container.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
|
container.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
|
||||||
this.container.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))));
|
container.ForeColor = System.Drawing.Color.FromArgb(((int) ((byte) 240)), ((int) ((byte) 240)), ((int) ((byte) 240)));
|
||||||
this.container.Location = new System.Drawing.Point(0, 0);
|
container.Location = new System.Drawing.Point(0, 0);
|
||||||
this.container.Name = "container";
|
container.Margin = new System.Windows.Forms.Padding(4);
|
||||||
this.container.Size = new System.Drawing.Size(150, 150);
|
container.Name = "container";
|
||||||
this.container.TabIndex = 0;
|
container.Size = new System.Drawing.Size(195, 191);
|
||||||
this.container.WrapContents = false;
|
container.TabIndex = 0;
|
||||||
//
|
container.WrapContents = false;
|
||||||
// QueryHistoryLog
|
//
|
||||||
//
|
// QueryHistoryLog
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 22F);
|
//
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F);
|
||||||
this.BackColor = System.Drawing.Color.Transparent;
|
AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
this.Controls.Add(this.container);
|
BackColor = System.Drawing.Color.Transparent;
|
||||||
this.Font = new System.Drawing.Font("Consolas", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
Controls.Add(container);
|
||||||
this.Name = "QueryHistoryLog";
|
Font = new System.Drawing.Font("Consolas", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte) 238));
|
||||||
this.ResumeLayout(false);
|
Margin = new System.Windows.Forms.Padding(4);
|
||||||
|
Size = new System.Drawing.Size(195, 191);
|
||||||
|
ResumeLayout(false);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
#endregion
|
||||||
|
|
||||||
#endregion
|
private System.Windows.Forms.FlowLayoutPanel container;
|
||||||
|
}
|
||||||
private System.Windows.Forms.FlowLayoutPanel container;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
105
Query/Form/QueryTextBox.Designer.cs
generated
105
Query/Form/QueryTextBox.Designer.cs
generated
@ -1,61 +1,58 @@
|
|||||||
namespace Query.Form {
|
namespace Query.Form {
|
||||||
partial class QueryTextBox {
|
partial class QueryTextBox {
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required designer variable.
|
/// Required designer variable.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private System.ComponentModel.IContainer components = null;
|
private System.ComponentModel.IContainer components = null;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clean up any resources being used.
|
/// Clean up any resources being used.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||||
protected override void Dispose(bool disposing) {
|
protected override void Dispose(bool disposing) {
|
||||||
if (disposing && (components != null)) {
|
if (disposing && (components != null)) {
|
||||||
components.Dispose();
|
components.Dispose();
|
||||||
}
|
}
|
||||||
base.Dispose(disposing);
|
base.Dispose(disposing);
|
||||||
}
|
}
|
||||||
|
|
||||||
#region Component Designer generated code
|
#region Component Designer generated code
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required method for Designer support - do not modify
|
/// Required method for Designer support - do not modify
|
||||||
/// the contents of this method with the code editor.
|
/// the contents of this method with the code editor.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent() {
|
private void InitializeComponent() {
|
||||||
this.tb = new CustomTextBox();
|
tb = new Query.Form.QueryTextBox.CustomTextBox();
|
||||||
this.SuspendLayout();
|
SuspendLayout();
|
||||||
//
|
//
|
||||||
// tb
|
// tb
|
||||||
//
|
//
|
||||||
this.tb.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
tb.Anchor = ((System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right));
|
||||||
| System.Windows.Forms.AnchorStyles.Left)
|
tb.BackColor = System.Drawing.Color.FromArgb(((int) ((byte) 36)), ((int) ((byte) 36)), ((int) ((byte) 36)));
|
||||||
| System.Windows.Forms.AnchorStyles.Right)));
|
tb.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||||
this.tb.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(36)))), ((int)(((byte)(36)))), ((int)(((byte)(36)))));
|
tb.Font = new System.Drawing.Font("Consolas", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte) 238));
|
||||||
this.tb.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
tb.ForeColor = System.Drawing.Color.FromArgb(((int) ((byte) 240)), ((int) ((byte) 240)), ((int) ((byte) 240)));
|
||||||
this.tb.Font = new System.Drawing.Font("Consolas", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
tb.Location = new System.Drawing.Point(11, 11);
|
||||||
this.tb.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))));
|
tb.Margin = new System.Windows.Forms.Padding(11);
|
||||||
this.tb.Location = new System.Drawing.Point(5, 6);
|
tb.Name = "tb";
|
||||||
this.tb.Margin = new System.Windows.Forms.Padding(5);
|
tb.Size = new System.Drawing.Size(670, 28);
|
||||||
this.tb.Name = "tb";
|
tb.TabIndex = 0;
|
||||||
this.tb.Size = new System.Drawing.Size(509, 23);
|
//
|
||||||
this.tb.TabIndex = 0;
|
// QueryTextBox
|
||||||
//
|
//
|
||||||
// QueryTextBox
|
AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F);
|
||||||
//
|
AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
BackColor = System.Drawing.Color.FromArgb(((int) ((byte) 36)), ((int) ((byte) 36)), ((int) ((byte) 36)));
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
Controls.Add(tb);
|
||||||
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(36)))), ((int)(((byte)(36)))), ((int)(((byte)(36)))));
|
Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
this.Controls.Add(this.tb);
|
Size = new System.Drawing.Size(692, 50);
|
||||||
this.Name = "QueryTextBox";
|
ResumeLayout(false);
|
||||||
this.Size = new System.Drawing.Size(519, 33);
|
PerformLayout();
|
||||||
this.ResumeLayout(false);
|
}
|
||||||
this.PerformLayout();
|
|
||||||
|
|
||||||
}
|
#endregion
|
||||||
|
|
||||||
#endregion
|
private Query.Form.QueryTextBox.CustomTextBox tb;
|
||||||
|
}
|
||||||
private CustomTextBox tb;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,7 @@ static class Program {
|
|||||||
[STAThread]
|
[STAThread]
|
||||||
private static void Main() {
|
private static void Main() {
|
||||||
Application.EnableVisualStyles();
|
Application.EnableVisualStyles();
|
||||||
|
Application.SetHighDpiMode(HighDpiMode.PerMonitorV2);
|
||||||
Application.SetCompatibleTextRenderingDefault(false);
|
Application.SetCompatibleTextRenderingDefault(false);
|
||||||
Application.Run(new MainForm());
|
Application.Run(new MainForm());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user