From 9c867cab6fef1e185b014ca627c2b65131a0ab6d Mon Sep 17 00:00:00 2001 From: Michael Ushakov Date: Fri, 14 Jul 2017 22:36:28 +0400 Subject: [PATCH 01/15] Simple Management GUI Concept --- .../MossbauerLab.TinyTcpServer.MnGUI.sln | 22 ++ .../MainForm.Designer.cs | 263 ++++++++++++++++++ .../MainForm.cs | 19 ++ .../MainForm.resx | 120 ++++++++ .../MossbauerLab.TinyTcpServer.MnGUI.csproj | 85 ++++++ .../Program.cs | 21 ++ .../Properties/AssemblyInfo.cs | 36 +++ .../Properties/Resources.Designer.cs | 71 +++++ .../Properties/Resources.resx | 117 ++++++++ .../Properties/Settings.Designer.cs | 30 ++ .../Properties/Settings.settings | 7 + 11 files changed, 791 insertions(+) create mode 100644 GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI.sln create mode 100644 GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/MainForm.Designer.cs create mode 100644 GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/MainForm.cs create mode 100644 GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/MainForm.resx create mode 100644 GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI.csproj create mode 100644 GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/Program.cs create mode 100644 GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/Properties/AssemblyInfo.cs create mode 100644 GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/Properties/Resources.Designer.cs create mode 100644 GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/Properties/Resources.resx create mode 100644 GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/Properties/Settings.Designer.cs create mode 100644 GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/Properties/Settings.settings diff --git a/GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI.sln b/GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI.sln new file mode 100644 index 0000000..3bea166 --- /dev/null +++ b/GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.21005.1 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MossbauerLab.TinyTcpServer.MnGUI", "MossbauerLab.TinyTcpServer.MnGUI\MossbauerLab.TinyTcpServer.MnGUI.csproj", "{ECA495EA-1125-4FFC-BC2A-54EA06C74D80}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {ECA495EA-1125-4FFC-BC2A-54EA06C74D80}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {ECA495EA-1125-4FFC-BC2A-54EA06C74D80}.Debug|Any CPU.Build.0 = Debug|Any CPU + {ECA495EA-1125-4FFC-BC2A-54EA06C74D80}.Release|Any CPU.ActiveCfg = Release|Any CPU + {ECA495EA-1125-4FFC-BC2A-54EA06C74D80}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/MainForm.Designer.cs b/GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/MainForm.Designer.cs new file mode 100644 index 0000000..0478809 --- /dev/null +++ b/GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/MainForm.Designer.cs @@ -0,0 +1,263 @@ +namespace MossbauerLab.TinyTcpServer.MnGUI +{ + partial class MainForm + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this._startButton = new System.Windows.Forms.Button(); + this._stopButton = new System.Windows.Forms.Button(); + this._restartButton = new System.Windows.Forms.Button(); + this._logsGroupBox = new System.Windows.Forms.GroupBox(); + this._logsTextBox = new System.Windows.Forms.RichTextBox(); + this._clientsListBox = new System.Windows.Forms.ListBox(); + this._serverSettingsGroup = new System.Windows.Forms.GroupBox(); + this._logLevelComboBox = new System.Windows.Forms.ComboBox(); + this._logLevelLabel = new System.Windows.Forms.Label(); + this._serverParametersBox = new System.Windows.Forms.GroupBox(); + this._serverParametersView = new System.Windows.Forms.ListView(); + this._applyButton = new System.Windows.Forms.Button(); + this._serverTypeComboBox = new System.Windows.Forms.ComboBox(); + this._portTextBox = new System.Windows.Forms.TextBox(); + this._ipAddressComboBox = new System.Windows.Forms.ComboBox(); + this._serverTypeLabel = new System.Windows.Forms.Label(); + this._portLabel = new System.Windows.Forms.Label(); + this._ipAddressLabel = new System.Windows.Forms.Label(); + this._logsGroupBox.SuspendLayout(); + this._serverSettingsGroup.SuspendLayout(); + this._serverParametersBox.SuspendLayout(); + this.SuspendLayout(); + // + // _startButton + // + this._startButton.Location = new System.Drawing.Point(624, 352); + this._startButton.Name = "_startButton"; + this._startButton.Size = new System.Drawing.Size(75, 23); + this._startButton.TabIndex = 0; + this._startButton.Text = "Start"; + this._startButton.UseVisualStyleBackColor = true; + // + // _stopButton + // + this._stopButton.Location = new System.Drawing.Point(705, 352); + this._stopButton.Name = "_stopButton"; + this._stopButton.Size = new System.Drawing.Size(75, 23); + this._stopButton.TabIndex = 1; + this._stopButton.Text = "Stop"; + this._stopButton.UseVisualStyleBackColor = true; + // + // _restartButton + // + this._restartButton.Location = new System.Drawing.Point(786, 352); + this._restartButton.Name = "_restartButton"; + this._restartButton.Size = new System.Drawing.Size(75, 23); + this._restartButton.TabIndex = 2; + this._restartButton.Text = "Restart"; + this._restartButton.UseVisualStyleBackColor = true; + // + // _logsGroupBox + // + this._logsGroupBox.Controls.Add(this._logsTextBox); + this._logsGroupBox.Location = new System.Drawing.Point(12, 381); + this._logsGroupBox.Name = "_logsGroupBox"; + this._logsGroupBox.Size = new System.Drawing.Size(849, 162); + this._logsGroupBox.TabIndex = 3; + this._logsGroupBox.TabStop = false; + this._logsGroupBox.Text = "Logs:"; + // + // _logsTextBox + // + this._logsTextBox.Location = new System.Drawing.Point(7, 20); + this._logsTextBox.Name = "_logsTextBox"; + this._logsTextBox.Size = new System.Drawing.Size(824, 136); + this._logsTextBox.TabIndex = 0; + this._logsTextBox.Text = ""; + // + // _clientsListBox + // + this._clientsListBox.FormattingEnabled = true; + this._clientsListBox.Location = new System.Drawing.Point(624, 12); + this._clientsListBox.Name = "_clientsListBox"; + this._clientsListBox.Size = new System.Drawing.Size(237, 329); + this._clientsListBox.TabIndex = 4; + // + // _serverSettingsGroup + // + this._serverSettingsGroup.Controls.Add(this._logLevelComboBox); + this._serverSettingsGroup.Controls.Add(this._logLevelLabel); + this._serverSettingsGroup.Controls.Add(this._serverParametersBox); + this._serverSettingsGroup.Controls.Add(this._applyButton); + this._serverSettingsGroup.Controls.Add(this._serverTypeComboBox); + this._serverSettingsGroup.Controls.Add(this._portTextBox); + this._serverSettingsGroup.Controls.Add(this._ipAddressComboBox); + this._serverSettingsGroup.Controls.Add(this._serverTypeLabel); + this._serverSettingsGroup.Controls.Add(this._portLabel); + this._serverSettingsGroup.Controls.Add(this._ipAddressLabel); + this._serverSettingsGroup.Location = new System.Drawing.Point(12, 12); + this._serverSettingsGroup.Name = "_serverSettingsGroup"; + this._serverSettingsGroup.Size = new System.Drawing.Size(597, 363); + this._serverSettingsGroup.TabIndex = 5; + this._serverSettingsGroup.TabStop = false; + this._serverSettingsGroup.Text = "Server settings"; + // + // _logLevelComboBox + // + this._logLevelComboBox.FormattingEnabled = true; + this._logLevelComboBox.Location = new System.Drawing.Point(96, 175); + this._logLevelComboBox.Name = "_logLevelComboBox"; + this._logLevelComboBox.Size = new System.Drawing.Size(121, 21); + this._logLevelComboBox.TabIndex = 9; + // + // _logLevelLabel + // + this._logLevelLabel.AutoSize = true; + this._logLevelLabel.Location = new System.Drawing.Point(19, 183); + this._logLevelLabel.Name = "_logLevelLabel"; + this._logLevelLabel.Size = new System.Drawing.Size(57, 13); + this._logLevelLabel.TabIndex = 8; + this._logLevelLabel.Text = "Log Level:"; + // + // _serverParametersBox + // + this._serverParametersBox.Controls.Add(this._serverParametersView); + this._serverParametersBox.Location = new System.Drawing.Point(230, 21); + this._serverParametersBox.Name = "_serverParametersBox"; + this._serverParametersBox.Size = new System.Drawing.Size(350, 330); + this._serverParametersBox.TabIndex = 7; + this._serverParametersBox.TabStop = false; + this._serverParametersBox.Text = "Server Parameters"; + // + // _serverParametersView + // + this._serverParametersView.Location = new System.Drawing.Point(16, 21); + this._serverParametersView.Name = "_serverParametersView"; + this._serverParametersView.Size = new System.Drawing.Size(317, 287); + this._serverParametersView.TabIndex = 0; + this._serverParametersView.UseCompatibleStateImageBehavior = false; + // + // _applyButton + // + this._applyButton.Location = new System.Drawing.Point(142, 133); + this._applyButton.Name = "_applyButton"; + this._applyButton.Size = new System.Drawing.Size(75, 23); + this._applyButton.TabIndex = 6; + this._applyButton.Text = "Apply"; + this._applyButton.UseVisualStyleBackColor = true; + // + // _serverTypeComboBox + // + this._serverTypeComboBox.FormattingEnabled = true; + this._serverTypeComboBox.Location = new System.Drawing.Point(97, 94); + this._serverTypeComboBox.Name = "_serverTypeComboBox"; + this._serverTypeComboBox.Size = new System.Drawing.Size(121, 21); + this._serverTypeComboBox.TabIndex = 5; + // + // _portTextBox + // + this._portTextBox.Location = new System.Drawing.Point(97, 58); + this._portTextBox.Name = "_portTextBox"; + this._portTextBox.Size = new System.Drawing.Size(121, 20); + this._portTextBox.TabIndex = 4; + // + // _ipAddressComboBox + // + this._ipAddressComboBox.FormattingEnabled = true; + this._ipAddressComboBox.Location = new System.Drawing.Point(97, 21); + this._ipAddressComboBox.Name = "_ipAddressComboBox"; + this._ipAddressComboBox.Size = new System.Drawing.Size(121, 21); + this._ipAddressComboBox.TabIndex = 3; + // + // _serverTypeLabel + // + this._serverTypeLabel.AutoSize = true; + this._serverTypeLabel.Location = new System.Drawing.Point(16, 97); + this._serverTypeLabel.Name = "_serverTypeLabel"; + this._serverTypeLabel.Size = new System.Drawing.Size(68, 13); + this._serverTypeLabel.TabIndex = 2; + this._serverTypeLabel.Text = "Server Type:"; + // + // _portLabel + // + this._portLabel.AutoSize = true; + this._portLabel.Location = new System.Drawing.Point(16, 61); + this._portLabel.Name = "_portLabel"; + this._portLabel.Size = new System.Drawing.Size(29, 13); + this._portLabel.TabIndex = 1; + this._portLabel.Text = "Port:"; + // + // _ipAddressLabel + // + this._ipAddressLabel.AutoSize = true; + this._ipAddressLabel.Location = new System.Drawing.Point(16, 29); + this._ipAddressLabel.Name = "_ipAddressLabel"; + this._ipAddressLabel.Size = new System.Drawing.Size(61, 13); + this._ipAddressLabel.TabIndex = 0; + this._ipAddressLabel.Text = "IP Address:"; + // + // MainForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(883, 567); + this.Controls.Add(this._serverSettingsGroup); + this.Controls.Add(this._clientsListBox); + this.Controls.Add(this._logsGroupBox); + this.Controls.Add(this._restartButton); + this.Controls.Add(this._stopButton); + this.Controls.Add(this._startButton); + this.Name = "MainForm"; + this.Text = "Server Management Tools"; + this._logsGroupBox.ResumeLayout(false); + this._serverSettingsGroup.ResumeLayout(false); + this._serverSettingsGroup.PerformLayout(); + this._serverParametersBox.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Button _startButton; + private System.Windows.Forms.Button _stopButton; + private System.Windows.Forms.Button _restartButton; + private System.Windows.Forms.GroupBox _logsGroupBox; + private System.Windows.Forms.ListBox _clientsListBox; + private System.Windows.Forms.GroupBox _serverSettingsGroup; + private System.Windows.Forms.Label _serverTypeLabel; + private System.Windows.Forms.Label _portLabel; + private System.Windows.Forms.Label _ipAddressLabel; + private System.Windows.Forms.ComboBox _ipAddressComboBox; + private System.Windows.Forms.TextBox _portTextBox; + private System.Windows.Forms.ComboBox _serverTypeComboBox; + private System.Windows.Forms.Button _applyButton; + private System.Windows.Forms.RichTextBox _logsTextBox; + private System.Windows.Forms.GroupBox _serverParametersBox; + private System.Windows.Forms.ListView _serverParametersView; + private System.Windows.Forms.ComboBox _logLevelComboBox; + private System.Windows.Forms.Label _logLevelLabel; + } +} + diff --git a/GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/MainForm.cs b/GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/MainForm.cs new file mode 100644 index 0000000..aae6d43 --- /dev/null +++ b/GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/MainForm.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; + +namespace MossbauerLab.TinyTcpServer.MnGUI +{ + public partial class MainForm : Form + { + public MainForm() + { + InitializeComponent(); + } + } +} diff --git a/GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/MainForm.resx b/GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/MainForm.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/MainForm.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + \ No newline at end of file diff --git a/GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI.csproj b/GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI.csproj new file mode 100644 index 0000000..e113b9b --- /dev/null +++ b/GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI.csproj @@ -0,0 +1,85 @@ + + + + + Debug + AnyCPU + {ECA495EA-1125-4FFC-BC2A-54EA06C74D80} + WinExe + Properties + MossbauerLab.TinyTcpServer.MnGUI + MossbauerLab.TinyTcpServer.MnGUI + v4.0 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + Form + + + MainForm.cs + + + + + MainForm.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + \ No newline at end of file diff --git a/GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/Program.cs b/GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/Program.cs new file mode 100644 index 0000000..eb0424a --- /dev/null +++ b/GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/Program.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Windows.Forms; + +namespace MossbauerLab.TinyTcpServer.MnGUI +{ + static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main(String[] args) + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new MainForm()); + } + } +} diff --git a/GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/Properties/AssemblyInfo.cs b/GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..d74d6e9 --- /dev/null +++ b/GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("MossbauerLab.TinyTcpServer.MnGUI")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("DDGroup")] +[assembly: AssemblyProduct("MossbauerLab.TinyTcpServer.MnGUI")] +[assembly: AssemblyCopyright("Copyright © DDGroup 2017")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("cf1dcdc3-d468-4a81-ac05-48c5c175cae0")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/Properties/Resources.Designer.cs b/GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/Properties/Resources.Designer.cs new file mode 100644 index 0000000..fd85f61 --- /dev/null +++ b/GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/Properties/Resources.Designer.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace MossbauerLab.TinyTcpServer.MnGUI.Properties +{ + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.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() + { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("MossbauerLab.TinyTcpServer.MnGUI.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git a/GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/Properties/Resources.resx b/GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/Properties/Settings.Designer.cs b/GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/Properties/Settings.Designer.cs new file mode 100644 index 0000000..ef7d3de --- /dev/null +++ b/GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace MossbauerLab.TinyTcpServer.MnGUI.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.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; + } + } + } +} diff --git a/GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/Properties/Settings.settings b/GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + From 4993f6dd0b569737786d84994ad1ab2882fdbe68 Mon Sep 17 00:00:00 2001 From: Michael Ushakov Date: Tue, 18 Jul 2017 10:42:20 +0400 Subject: [PATCH 02/15] Added libraries, some refactoring --- .../MainForm.cs | 19 ------ .../MossbauerLab.TinyTcpServer.MnGUI.csproj | 18 +++++- .../Program.cs | 1 + .../View/Forms/MainForm.cs | 55 ++++++++++++++++++ .../lib/MossbauerLab.SimpleExtensions.dll | Bin 0 -> 6144 bytes .../lib/MossbauerLab.TinyTcpServer.Core.dll | Bin 0 -> 20480 bytes .../lib/log4net.dll | Bin 0 -> 301056 bytes 7 files changed, 71 insertions(+), 22 deletions(-) delete mode 100644 GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/MainForm.cs create mode 100644 GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/View/Forms/MainForm.cs create mode 100644 GUI/MossbauerLab.TinyTcpServer.MnGUI/lib/MossbauerLab.SimpleExtensions.dll create mode 100644 GUI/MossbauerLab.TinyTcpServer.MnGUI/lib/MossbauerLab.TinyTcpServer.Core.dll create mode 100644 GUI/MossbauerLab.TinyTcpServer.MnGUI/lib/log4net.dll diff --git a/GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/MainForm.cs b/GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/MainForm.cs deleted file mode 100644 index aae6d43..0000000 --- a/GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/MainForm.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Windows.Forms; - -namespace MossbauerLab.TinyTcpServer.MnGUI -{ - public partial class MainForm : Form - { - public MainForm() - { - InitializeComponent(); - } - } -} diff --git a/GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI.csproj b/GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI.csproj index e113b9b..acca1fc 100644 --- a/GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI.csproj +++ b/GUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI/MossbauerLab.TinyTcpServer.MnGUI.csproj @@ -32,6 +32,15 @@ 4 + + ..\lib\log4net.dll + + + ..\lib\MossbauerLab.SimpleExtensions.dll + + + ..\lib\MossbauerLab.TinyTcpServer.Core.dll + @@ -44,15 +53,15 @@ - + Form - + MainForm.cs - + MainForm.cs @@ -74,6 +83,9 @@ True + + +