From 0ee173475eb5bf9737cbfa6886b7f673b05df76d Mon Sep 17 00:00:00 2001 From: Faryan Rezagholi Date: Sun, 10 Mar 2019 16:31:55 +0100 Subject: [PATCH] introduced new user control --- mRemoteV1/UI/Controls/Base/NGSearchBox.cs | 25 ++++ mRemoteV1/UI/Controls/Base/NGSearchBox.resx | 123 ++++++++++++++++++ .../Window/ConnectionTreeWindow.Designer.cs | 6 +- mRemoteV1/mRemoteV1.csproj | 6 + 4 files changed, 157 insertions(+), 3 deletions(-) create mode 100644 mRemoteV1/UI/Controls/Base/NGSearchBox.cs create mode 100644 mRemoteV1/UI/Controls/Base/NGSearchBox.resx diff --git a/mRemoteV1/UI/Controls/Base/NGSearchBox.cs b/mRemoteV1/UI/Controls/Base/NGSearchBox.cs new file mode 100644 index 000000000..fa9dc4d92 --- /dev/null +++ b/mRemoteV1/UI/Controls/Base/NGSearchBox.cs @@ -0,0 +1,25 @@ +using System; +using System.Drawing; +using System.Windows.Forms; +using mRemoteNG.Themes; + +namespace mRemoteNG.UI.Controls.Base +{ + public class NGSearchBox : NGTextBox + { + public NGSearchBox() + { + InitializeComponent(); + } + + private void InitializeComponent() + { + SuspendLayout(); + // + // NGTextBox + // + Font = new Font("Segoe UI", 8.25F, FontStyle.Regular, GraphicsUnit.Point, 0); + ResumeLayout(false); + } + } +} \ No newline at end of file diff --git a/mRemoteV1/UI/Controls/Base/NGSearchBox.resx b/mRemoteV1/UI/Controls/Base/NGSearchBox.resx new file mode 100644 index 000000000..e5858cc29 --- /dev/null +++ b/mRemoteV1/UI/Controls/Base/NGSearchBox.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + False + + \ No newline at end of file diff --git a/mRemoteV1/UI/Window/ConnectionTreeWindow.Designer.cs b/mRemoteV1/UI/Window/ConnectionTreeWindow.Designer.cs index 821c74960..d25d46f53 100644 --- a/mRemoteV1/UI/Window/ConnectionTreeWindow.Designer.cs +++ b/mRemoteV1/UI/Window/ConnectionTreeWindow.Designer.cs @@ -1,4 +1,4 @@ - + using mRemoteNG.Connection; using mRemoteNG.Tree; @@ -31,7 +31,7 @@ namespace mRemoteNG.UI.Window this.mMenSortAscending = new System.Windows.Forms.ToolStripMenuItem(); this.vsToolStripExtender = new WeifenLuo.WinFormsUI.Docking.VisualStudioToolStripExtender(this.components); this.PictureBoxSearch = new mRemoteNG.UI.Controls.Base.NGPictureBox(this.components); - this.txtSearch = new mRemoteNG.UI.Controls.Base.NGTextBox(); + this.txtSearch = new mRemoteNG.UI.Controls.Base.NGSearchBox(); this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); this.mMenFavorites = new System.Windows.Forms.ToolStripMenuItem(); ((System.ComponentModel.ISupportInitialize)(this.olvConnections)).BeginInit(); @@ -222,7 +222,7 @@ namespace mRemoteNG.UI.Window private Controls.ConnectionTree olvConnections; private WeifenLuo.WinFormsUI.Docking.VisualStudioToolStripExtender vsToolStripExtender; internal Controls.Base.NGPictureBox PictureBoxSearch; - internal Controls.Base.NGTextBox txtSearch; + internal Controls.Base.NGSearchBox txtSearch; public System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; internal System.Windows.Forms.ToolStripMenuItem mMenFavorites; } diff --git a/mRemoteV1/mRemoteV1.csproj b/mRemoteV1/mRemoteV1.csproj index d59dab423..adbbc84d5 100644 --- a/mRemoteV1/mRemoteV1.csproj +++ b/mRemoteV1/mRemoteV1.csproj @@ -395,6 +395,9 @@ Component + + Component + Component @@ -835,6 +838,9 @@ NGRadioButton.cs + + NGSearchBox.cs + NGTextBox.cs