mirror of
https://github.com/chylex/Query.git
synced 2025-07-05 15:04:38 +02:00
Compare commits
No commits in common. "2b9d5bba8f1277545fc1068ddb8b6e42e304b918" and "71bf0a5c4985d10ce126978970b219c03c4f6bbd" have entirely different histories.
2b9d5bba8f
...
71bf0a5c49
@ -36,28 +36,14 @@ public abstract record Number : IAdditionOperators<Number, Number, Number>,
|
||||
public override Number Pow(Number exponent) {
|
||||
if (exponent is Rational { Value: {} rationalExponent }) {
|
||||
Fraction fractionExponent = rationalExponent.GetImproperFraction();
|
||||
|
||||
if (fractionExponent.Numerator >= 0 && fractionExponent.Denominator == 1) {
|
||||
if (fractionExponent.Denominator == 1 && fractionExponent.Numerator >= 0) {
|
||||
try {
|
||||
return new Rational(BigRational.Pow(Value, fractionExponent.Numerator));
|
||||
} 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 PowAsDecimal(exponent);
|
||||
|
||||
Number PowAsDecimal(Number number) {
|
||||
return new Decimal(AsDecimal).Pow(number);
|
||||
}
|
||||
return new Decimal(AsDecimal).Pow(exponent);
|
||||
}
|
||||
|
||||
public override string ToString(IFormatProvider? formatProvider) {
|
||||
|
146
Query/Form/MainForm.Designer.cs
generated
146
Query/Form/MainForm.Designer.cs
generated
@ -23,107 +23,109 @@
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent() {
|
||||
components = new System.ComponentModel.Container();
|
||||
this.components = new System.ComponentModel.Container();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
|
||||
queryLog = new Query.Form.QueryHistoryLog();
|
||||
queryBox = new Query.Form.QueryTextBox();
|
||||
trayIcon = new System.Windows.Forms.NotifyIcon(components);
|
||||
contextMenuTray = new System.Windows.Forms.ContextMenuStrip(components);
|
||||
showToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
hookToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
contextMenuTray.SuspendLayout();
|
||||
SuspendLayout();
|
||||
this.queryLog = new QueryHistoryLog();
|
||||
this.queryBox = new QueryTextBox();
|
||||
this.trayIcon = new System.Windows.Forms.NotifyIcon(this.components);
|
||||
this.contextMenuTray = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||
this.showToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.hookToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.contextMenuTray.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// queryLog
|
||||
//
|
||||
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));
|
||||
queryLog.BackColor = System.Drawing.Color.Transparent;
|
||||
queryLog.Font = new System.Drawing.Font("Consolas", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte) 238));
|
||||
queryLog.Location = new System.Drawing.Point(7, 8);
|
||||
queryLog.Margin = new System.Windows.Forms.Padding(7, 8, 7, 8);
|
||||
queryLog.Name = "queryLog";
|
||||
queryLog.Size = new System.Drawing.Size(696, 296);
|
||||
queryLog.TabIndex = 1;
|
||||
this.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)));
|
||||
this.queryLog.BackColor = System.Drawing.Color.Transparent;
|
||||
this.queryLog.Font = new System.Drawing.Font("Consolas", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||
this.queryLog.Location = new System.Drawing.Point(5, 5);
|
||||
this.queryLog.Margin = new System.Windows.Forms.Padding(5);
|
||||
this.queryLog.Name = "queryLog";
|
||||
this.queryLog.Size = new System.Drawing.Size(522, 192);
|
||||
this.queryLog.TabIndex = 1;
|
||||
//
|
||||
// queryBox
|
||||
//
|
||||
queryBox.BackColor = System.Drawing.Color.FromArgb(((int) ((byte) 36)), ((int) ((byte) 36)), ((int) ((byte) 36)));
|
||||
queryBox.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
queryBox.Location = new System.Drawing.Point(0, 312);
|
||||
queryBox.Margin = new System.Windows.Forms.Padding(0);
|
||||
queryBox.Name = "queryBox";
|
||||
queryBox.Size = new System.Drawing.Size(709, 50);
|
||||
queryBox.TabIndex = 0;
|
||||
this.queryBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.queryBox.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(36)))), ((int)(((byte)(36)))), ((int)(((byte)(36)))));
|
||||
this.queryBox.Location = new System.Drawing.Point(0, 202);
|
||||
this.queryBox.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.queryBox.Name = "queryBox";
|
||||
this.queryBox.Size = new System.Drawing.Size(532, 33);
|
||||
this.queryBox.TabIndex = 0;
|
||||
//
|
||||
// trayIcon
|
||||
//
|
||||
trayIcon.ContextMenuStrip = contextMenuTray;
|
||||
trayIcon.Icon = ((System.Drawing.Icon) resources.GetObject("trayIcon.Icon"));
|
||||
trayIcon.Text = "Query";
|
||||
trayIcon.Visible = true;
|
||||
trayIcon.Click += trayIcon_Click;
|
||||
this.trayIcon.ContextMenuStrip = this.contextMenuTray;
|
||||
this.trayIcon.Icon = ((System.Drawing.Icon)(resources.GetObject("trayIcon.Icon")));
|
||||
this.trayIcon.Text = "Query";
|
||||
this.trayIcon.Visible = true;
|
||||
this.trayIcon.Click += new System.EventHandler(this.trayIcon_Click);
|
||||
//
|
||||
// contextMenuTray
|
||||
//
|
||||
contextMenuTray.ImageScalingSize = new System.Drawing.Size(20, 20);
|
||||
contextMenuTray.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
showToolStripMenuItem, hookToolStripMenuItem, exitToolStripMenuItem
|
||||
});
|
||||
contextMenuTray.Name = "contextMenuTray";
|
||||
contextMenuTray.ShowImageMargin = false;
|
||||
contextMenuTray.ShowItemToolTips = false;
|
||||
contextMenuTray.Size = new System.Drawing.Size(90, 76);
|
||||
this.contextMenuTray.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.showToolStripMenuItem,
|
||||
this.hookToolStripMenuItem,
|
||||
this.exitToolStripMenuItem});
|
||||
this.contextMenuTray.Name = "contextMenuTray";
|
||||
this.contextMenuTray.ShowImageMargin = false;
|
||||
this.contextMenuTray.ShowItemToolTips = false;
|
||||
this.contextMenuTray.Size = new System.Drawing.Size(128, 92);
|
||||
//
|
||||
// showToolStripMenuItem
|
||||
//
|
||||
showToolStripMenuItem.Name = "showToolStripMenuItem";
|
||||
showToolStripMenuItem.Size = new System.Drawing.Size(89, 24);
|
||||
showToolStripMenuItem.Text = "Show";
|
||||
showToolStripMenuItem.Click += showToolStripMenuItem_Click;
|
||||
this.showToolStripMenuItem.Name = "showToolStripMenuItem";
|
||||
this.showToolStripMenuItem.Size = new System.Drawing.Size(127, 22);
|
||||
this.showToolStripMenuItem.Text = "Show";
|
||||
this.showToolStripMenuItem.Click += new System.EventHandler(this.showToolStripMenuItem_Click);
|
||||
//
|
||||
// hookToolStripMenuItem
|
||||
//
|
||||
hookToolStripMenuItem.Name = "hookToolStripMenuItem";
|
||||
hookToolStripMenuItem.Size = new System.Drawing.Size(89, 24);
|
||||
hookToolStripMenuItem.Text = "Hook";
|
||||
hookToolStripMenuItem.Click += hookToolStripMenuItem_Click;
|
||||
this.hookToolStripMenuItem.Name = "hookToolStripMenuItem";
|
||||
this.hookToolStripMenuItem.Size = new System.Drawing.Size(127, 22);
|
||||
this.hookToolStripMenuItem.Text = "Hook";
|
||||
this.hookToolStripMenuItem.Click += new System.EventHandler(this.hookToolStripMenuItem_Click);
|
||||
//
|
||||
// exitToolStripMenuItem
|
||||
//
|
||||
exitToolStripMenuItem.Name = "exitToolStripMenuItem";
|
||||
exitToolStripMenuItem.Size = new System.Drawing.Size(89, 24);
|
||||
exitToolStripMenuItem.Text = "Exit";
|
||||
exitToolStripMenuItem.Click += exitToolStripMenuItem_Click;
|
||||
this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
|
||||
this.exitToolStripMenuItem.Size = new System.Drawing.Size(127, 22);
|
||||
this.exitToolStripMenuItem.Text = "Exit";
|
||||
this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click);
|
||||
//
|
||||
// MainForm
|
||||
//
|
||||
AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F);
|
||||
AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
BackColor = System.Drawing.Color.FromArgb(((int) ((byte) 64)), ((int) ((byte) 64)), ((int) ((byte) 64)));
|
||||
ClientSize = new System.Drawing.Size(709, 362);
|
||||
ControlBox = false;
|
||||
Controls.Add(queryLog);
|
||||
Controls.Add(queryBox);
|
||||
FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
||||
Icon = ((System.Drawing.Icon) resources.GetObject("$this.Icon"));
|
||||
Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||
MaximizeBox = false;
|
||||
MinimizeBox = false;
|
||||
ShowInTaskbar = false;
|
||||
Text = "Query";
|
||||
Deactivate += MainForm_Deactivate;
|
||||
Shown += MainForm_Shown;
|
||||
LocationChanged += MainForm_LocationChanged;
|
||||
SizeChanged += MainForm_SizeChanged;
|
||||
contextMenuTray.ResumeLayout(false);
|
||||
ResumeLayout(false);
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
|
||||
this.ClientSize = new System.Drawing.Size(532, 235);
|
||||
this.ControlBox = false;
|
||||
this.Controls.Add(this.queryLog);
|
||||
this.Controls.Add(this.queryBox);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "MainForm";
|
||||
this.ShowInTaskbar = false;
|
||||
this.Text = "Query";
|
||||
this.Deactivate += new System.EventHandler(this.MainForm_Deactivate);
|
||||
this.Shown += new System.EventHandler(this.MainForm_Shown);
|
||||
this.contextMenuTray.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private Query.Form.QueryTextBox queryBox;
|
||||
private Query.Form.QueryHistoryLog queryLog;
|
||||
private QueryTextBox queryBox;
|
||||
private QueryHistoryLog queryLog;
|
||||
private System.Windows.Forms.NotifyIcon trayIcon;
|
||||
private System.Windows.Forms.ContextMenuStrip contextMenuTray;
|
||||
private System.Windows.Forms.ToolStripMenuItem showToolStripMenuItem;
|
||||
|
@ -45,7 +45,10 @@ sealed partial class MainForm : System.Windows.Forms.Form {
|
||||
}
|
||||
|
||||
private void MainForm_Shown(object? sender, EventArgs e) {
|
||||
FixLocation();
|
||||
if (Screen.PrimaryScreen is {} primaryScreen) {
|
||||
Rectangle screenRect = primaryScreen.WorkingArea;
|
||||
Location = new Point(screenRect.X + screenRect.Width - Width, screenRect.Y + screenRect.Height - Height);
|
||||
}
|
||||
|
||||
if (!isLoaded) {
|
||||
isLoaded = true;
|
||||
@ -53,25 +56,6 @@ 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) {
|
||||
SetShown(false);
|
||||
}
|
||||
@ -104,8 +88,10 @@ sealed partial class MainForm : System.Windows.Forms.Form {
|
||||
}
|
||||
|
||||
private void focusTimer_Tick(object? sender, EventArgs e) {
|
||||
WindowState = FormWindowState.Minimized;
|
||||
Show();
|
||||
Activate();
|
||||
WindowState = FormWindowState.Normal;
|
||||
|
||||
queryBox.Focus();
|
||||
focusTimer.Stop();
|
||||
|
@ -1,5 +1,64 @@
|
||||
<?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">
|
||||
@ -53,19 +112,19 @@
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
<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=8.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="trayIcon.TrayLocation" type="System.Drawing.Point, System.Drawing.Primitives, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<metadata name="trayIcon.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<metadata name="contextMenuTray.TrayLocation" type="System.Drawing.Point, System.Drawing.Primitives, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<metadata name="contextMenuTray.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>112, 17</value>
|
||||
</metadata>
|
||||
<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.Common" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="trayIcon.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
AAABAAEAGBgAAAEAIACICQAAFgAAACgAAAAYAAAAMAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAkJCT/JCQk/yQkJP8kJCT/JCQk/yQkJP8kJCT/JCQk/yQkJP8kJCT/JCQk/yQkJP8kJCT/JCQk/yQk
|
||||
@ -111,7 +170,7 @@
|
||||
AEE=
|
||||
</value>
|
||||
</data>
|
||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing.Common" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
AAABAAEAGBgAAAEAIACICQAAFgAAACgAAAAYAAAAMAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAkJCT/JCQk/yQkJP8kJCT/JCQk/yQkJP8kJCT/JCQk/yQkJP8kJCT/JCQk/yQkJP8kJCT/JCQk/yQk
|
||||
|
39
Query/Form/QueryHistoryLog.Designer.cs
generated
39
Query/Form/QueryHistoryLog.Designer.cs
generated
@ -23,32 +23,31 @@
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent() {
|
||||
container = new System.Windows.Forms.FlowLayoutPanel();
|
||||
SuspendLayout();
|
||||
this.container = new System.Windows.Forms.FlowLayoutPanel();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// container
|
||||
//
|
||||
container.AutoScroll = true;
|
||||
container.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
container.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
|
||||
container.ForeColor = System.Drawing.Color.FromArgb(((int) ((byte) 240)), ((int) ((byte) 240)), ((int) ((byte) 240)));
|
||||
container.Location = new System.Drawing.Point(0, 0);
|
||||
container.Margin = new System.Windows.Forms.Padding(4);
|
||||
container.Name = "container";
|
||||
container.Size = new System.Drawing.Size(195, 191);
|
||||
container.TabIndex = 0;
|
||||
container.WrapContents = false;
|
||||
this.container.AutoScroll = true;
|
||||
this.container.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.container.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
|
||||
this.container.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))));
|
||||
this.container.Location = new System.Drawing.Point(0, 0);
|
||||
this.container.Name = "container";
|
||||
this.container.Size = new System.Drawing.Size(150, 150);
|
||||
this.container.TabIndex = 0;
|
||||
this.container.WrapContents = false;
|
||||
//
|
||||
// QueryHistoryLog
|
||||
//
|
||||
AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F);
|
||||
AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
BackColor = System.Drawing.Color.Transparent;
|
||||
Controls.Add(container);
|
||||
Font = new System.Drawing.Font("Consolas", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte) 238));
|
||||
Margin = new System.Windows.Forms.Padding(4);
|
||||
Size = new System.Drawing.Size(195, 191);
|
||||
ResumeLayout(false);
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 22F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.BackColor = System.Drawing.Color.Transparent;
|
||||
this.Controls.Add(this.container);
|
||||
this.Font = new System.Drawing.Font("Consolas", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||
this.Name = "QueryHistoryLog";
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
45
Query/Form/QueryTextBox.Designer.cs
generated
45
Query/Form/QueryTextBox.Designer.cs
generated
@ -23,36 +23,39 @@
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent() {
|
||||
tb = new Query.Form.QueryTextBox.CustomTextBox();
|
||||
SuspendLayout();
|
||||
this.tb = new CustomTextBox();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// tb
|
||||
//
|
||||
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));
|
||||
tb.BackColor = System.Drawing.Color.FromArgb(((int) ((byte) 36)), ((int) ((byte) 36)), ((int) ((byte) 36)));
|
||||
tb.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||
tb.Font = new System.Drawing.Font("Consolas", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte) 238));
|
||||
tb.ForeColor = System.Drawing.Color.FromArgb(((int) ((byte) 240)), ((int) ((byte) 240)), ((int) ((byte) 240)));
|
||||
tb.Location = new System.Drawing.Point(11, 11);
|
||||
tb.Margin = new System.Windows.Forms.Padding(11);
|
||||
tb.Name = "tb";
|
||||
tb.Size = new System.Drawing.Size(670, 28);
|
||||
tb.TabIndex = 0;
|
||||
this.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)));
|
||||
this.tb.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(36)))), ((int)(((byte)(36)))), ((int)(((byte)(36)))));
|
||||
this.tb.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||
this.tb.Font = new System.Drawing.Font("Consolas", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||
this.tb.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))));
|
||||
this.tb.Location = new System.Drawing.Point(5, 6);
|
||||
this.tb.Margin = new System.Windows.Forms.Padding(5);
|
||||
this.tb.Name = "tb";
|
||||
this.tb.Size = new System.Drawing.Size(509, 23);
|
||||
this.tb.TabIndex = 0;
|
||||
//
|
||||
// QueryTextBox
|
||||
//
|
||||
AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F);
|
||||
AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
BackColor = System.Drawing.Color.FromArgb(((int) ((byte) 36)), ((int) ((byte) 36)), ((int) ((byte) 36)));
|
||||
Controls.Add(tb);
|
||||
Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||
Size = new System.Drawing.Size(692, 50);
|
||||
ResumeLayout(false);
|
||||
PerformLayout();
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(36)))), ((int)(((byte)(36)))), ((int)(((byte)(36)))));
|
||||
this.Controls.Add(this.tb);
|
||||
this.Name = "QueryTextBox";
|
||||
this.Size = new System.Drawing.Size(519, 33);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private Query.Form.QueryTextBox.CustomTextBox tb;
|
||||
private CustomTextBox tb;
|
||||
}
|
||||
}
|
||||
|
@ -8,7 +8,6 @@ static class Program {
|
||||
[STAThread]
|
||||
private static void Main() {
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetHighDpiMode(HighDpiMode.PerMonitorV2);
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.Run(new MainForm());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user