From 16523f5057578ce186532c73e91fdaebcebf553a Mon Sep 17 00:00:00 2001 From: David Date: Fri, 22 Jun 2018 17:13:23 +0200 Subject: [PATCH] Version 0.05 release --- README.md | 3 +++ X-Plane Voice Control/MainForm.Designer.cs | 19 ++++++++++++++++--- X-Plane Voice Control/MainForm.cs | 5 +++++ .../Properties/AssemblyInfo.cs | 4 ++-- 4 files changed, 26 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f3aa1ca..84f30bd 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,9 @@ You need ExtPlane Plugin installed ([Download](https://github.com/vranki/ExtPlan * set __[connect / disconnect] [left / right] [APU / engine] generator__ please * Ground power * set __[connect / disconnect] the ground power__ please +* Lights + * set __set [logo / position / beacon / wing / wheel] lights to [off / on]__ please + __Cheat sheet:__ * __Needed__ diff --git a/X-Plane Voice Control/MainForm.Designer.cs b/X-Plane Voice Control/MainForm.Designer.cs index df0c84a..38a4975 100644 --- a/X-Plane Voice Control/MainForm.Designer.cs +++ b/X-Plane Voice Control/MainForm.Designer.cs @@ -29,6 +29,7 @@ protected override void Dispose(bool disposing) private void InitializeComponent() { this.buttonListen = new System.Windows.Forms.Button(); + this.labelInfo = new System.Windows.Forms.Label(); this.SuspendLayout(); // // buttonListen @@ -38,17 +39,27 @@ private void InitializeComponent() this.buttonListen.Location = new System.Drawing.Point(14, 14); this.buttonListen.Margin = new System.Windows.Forms.Padding(4); this.buttonListen.Name = "buttonListen"; - this.buttonListen.Size = new System.Drawing.Size(97, 26); + this.buttonListen.Size = new System.Drawing.Size(67, 26); this.buttonListen.TabIndex = 0; - this.buttonListen.Text = "Start listening"; + this.buttonListen.Text = "Connect"; this.buttonListen.UseVisualStyleBackColor = true; this.buttonListen.Click += new System.EventHandler(this.ButtonListen_Click); // + // labelInfo + // + this.labelInfo.AutoSize = true; + this.labelInfo.Location = new System.Drawing.Point(11, 106); + this.labelInfo.Name = "labelInfo"; + this.labelInfo.Size = new System.Drawing.Size(96, 16); + this.labelInfo.TabIndex = 1; + this.labelInfo.Text = "Made by Najsr"; + // // MainForm // this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(252, 249); + this.ClientSize = new System.Drawing.Size(252, 136); + this.Controls.Add(this.labelInfo); this.Controls.Add(this.buttonListen); this.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Margin = new System.Windows.Forms.Padding(4); @@ -57,6 +68,7 @@ private void InitializeComponent() this.Padding = new System.Windows.Forms.Padding(10); this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "C# Voice control"; + this.Load += new System.EventHandler(this.MainForm_Load); this.ResumeLayout(false); this.PerformLayout(); @@ -65,6 +77,7 @@ private void InitializeComponent() #endregion private System.Windows.Forms.Button buttonListen; + private System.Windows.Forms.Label labelInfo; } } diff --git a/X-Plane Voice Control/MainForm.cs b/X-Plane Voice Control/MainForm.cs index 8949431..3e3f32b 100644 --- a/X-Plane Voice Control/MainForm.cs +++ b/X-Plane Voice Control/MainForm.cs @@ -77,5 +77,10 @@ private void SpeechRecognize_SpeechRecognized(object sender, SpeechRecognizedEve Console.WriteLine($"Recognized text: {e.Result.Text}. Calling Class {class_.GetType().Name}"); Console.ForegroundColor = ConsoleColor.White; } + + private void MainForm_Load(object sender, EventArgs e) + { + labelInfo.Text += " 0." + Assembly.GetExecutingAssembly().GetName().Version.Minor.ToString("00"); + } } } diff --git a/X-Plane Voice Control/Properties/AssemblyInfo.cs b/X-Plane Voice Control/Properties/AssemblyInfo.cs index 806575d..356662b 100644 --- a/X-Plane Voice Control/Properties/AssemblyInfo.cs +++ b/X-Plane Voice Control/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ // 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("0.03.0.0")] -[assembly: AssemblyFileVersion("0.03.0.0")] +[assembly: AssemblyVersion("0.05.0.0")] +[assembly: AssemblyFileVersion("0.05.0.0")]