diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2025-01-27 10:17:36 +0200 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2025-01-27 10:17:36 +0200 |
| commit | a712332e02b8346de626e267b3cba3f819fd3743 (patch) | |
| tree | 4d613806740b6fce84054b51fc8690bebea972ec /Software/Visual_Studio/VSIX/Tango.BuildExtensions | |
| parent | e204e6ac5d04114778b5b836a3e3707e819ad349 (diff) | |
| download | Tango-a712332e02b8346de626e267b3cba3f819fd3743.tar.gz Tango-a712332e02b8346de626e267b3cba3f819fd3743.zip | |
Allow SMS notifications.
Diffstat (limited to 'Software/Visual_Studio/VSIX/Tango.BuildExtensions')
3 files changed, 7 insertions, 40 deletions
diff --git a/Software/Visual_Studio/VSIX/Tango.BuildExtensions/BuildForm.Designer.cs b/Software/Visual_Studio/VSIX/Tango.BuildExtensions/BuildForm.Designer.cs index da3796faf..1f2ca10b7 100644 --- a/Software/Visual_Studio/VSIX/Tango.BuildExtensions/BuildForm.Designer.cs +++ b/Software/Visual_Studio/VSIX/Tango.BuildExtensions/BuildForm.Designer.cs @@ -31,7 +31,6 @@ this.panel1 = new System.Windows.Forms.Panel(); this.btnCancel = new System.Windows.Forms.Button(); this.btnOK = new System.Windows.Forms.Button(); - this.chkBuildSolution = new System.Windows.Forms.CheckBox(); this.chkUpdateAndBuildPMR = new System.Windows.Forms.CheckBox(); this.chkGeneratePMR = new System.Windows.Forms.CheckBox(); this.chkGenerateObservables = new System.Windows.Forms.CheckBox(); @@ -39,7 +38,6 @@ this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.label2 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); - this.chkSQLite = new System.Windows.Forms.CheckBox(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); this.SuspendLayout(); @@ -47,10 +45,8 @@ // panel1 // this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.panel1.Controls.Add(this.chkSQLite); this.panel1.Controls.Add(this.btnCancel); this.panel1.Controls.Add(this.btnOK); - this.panel1.Controls.Add(this.chkBuildSolution); this.panel1.Controls.Add(this.chkUpdateAndBuildPMR); this.panel1.Controls.Add(this.chkGeneratePMR); this.panel1.Controls.Add(this.chkGenerateObservables); @@ -96,18 +92,6 @@ this.btnOK.Text = "START"; this.btnOK.UseVisualStyleBackColor = false; // - // chkBuildSolution - // - this.chkBuildSolution.AutoSize = true; - this.chkBuildSolution.Cursor = System.Windows.Forms.Cursors.Arrow; - this.chkBuildSolution.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.chkBuildSolution.Location = new System.Drawing.Point(27, 222); - this.chkBuildSolution.Name = "chkBuildSolution"; - this.chkBuildSolution.Size = new System.Drawing.Size(111, 20); - this.chkBuildSolution.TabIndex = 9; - this.chkBuildSolution.Text = "Build Solution."; - this.chkBuildSolution.UseVisualStyleBackColor = true; - // // chkUpdateAndBuildPMR // this.chkUpdateAndBuildPMR.AutoSize = true; @@ -174,9 +158,9 @@ this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label2.Location = new System.Drawing.Point(24, 47); this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(266, 16); + this.label2.Size = new System.Drawing.Size(261, 16); this.label2.TabIndex = 1; - this.label2.Text = "Select the components you want to initialize."; + this.label2.Text = "Select the components you want to update."; // // label1 // @@ -192,18 +176,6 @@ this.label1.Text = "Tango Build Engine"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // - // chkSQLite - // - this.chkSQLite.AutoSize = true; - this.chkSQLite.Cursor = System.Windows.Forms.Cursors.Arrow; - this.chkSQLite.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.chkSQLite.Location = new System.Drawing.Point(27, 196); - this.chkSQLite.Name = "chkSQLite"; - this.chkSQLite.Size = new System.Drawing.Size(252, 20); - this.chkSQLite.TabIndex = 12; - this.chkSQLite.Text = "Generate SQLite DB from SQL Server."; - this.chkSQLite.UseVisualStyleBackColor = true; - // // BuildForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -239,9 +211,7 @@ private System.Windows.Forms.CheckBox chkGenerateObservables; private System.Windows.Forms.CheckBox chkGeneratePMR; private System.Windows.Forms.CheckBox chkUpdateAndBuildPMR; - private System.Windows.Forms.CheckBox chkBuildSolution; private System.Windows.Forms.Button btnOK; private System.Windows.Forms.Button btnCancel; - private System.Windows.Forms.CheckBox chkSQLite; } }
\ No newline at end of file diff --git a/Software/Visual_Studio/VSIX/Tango.BuildExtensions/BuildForm.cs b/Software/Visual_Studio/VSIX/Tango.BuildExtensions/BuildForm.cs index 86ad94a13..dea7c324e 100644 --- a/Software/Visual_Studio/VSIX/Tango.BuildExtensions/BuildForm.cs +++ b/Software/Visual_Studio/VSIX/Tango.BuildExtensions/BuildForm.cs @@ -41,8 +41,6 @@ namespace Tango.BuildExtensions GenerateAndBuildObservables = chkGenerateObservables.Checked; GenerateAutoPmrMessages = chkGeneratePMR.Checked; UpdateAndBuildPmrMessages = chkUpdateAndBuildPMR.Checked; - GenerateSQLite = chkSQLite.Checked; - BuildSolution = chkBuildSolution.Checked; Close(); } diff --git a/Software/Visual_Studio/VSIX/Tango.BuildExtensions/TangoBuildCommand.cs b/Software/Visual_Studio/VSIX/Tango.BuildExtensions/TangoBuildCommand.cs index 2fc9e8249..c378628e5 100644 --- a/Software/Visual_Studio/VSIX/Tango.BuildExtensions/TangoBuildCommand.cs +++ b/Software/Visual_Studio/VSIX/Tango.BuildExtensions/TangoBuildCommand.cs @@ -181,14 +181,13 @@ namespace Tango.BuildExtensions SetVSProgress("Done!"); Wait(1000); CloseVSProgress(); + ShowMessage("Tango Build Completed Successfully!"); + DTE.Solution.Properties.Item("StartupProject").Value = current_startup_project; } catch (Exception ex) { - ShowMessage(ex.Message); - } - finally - { CloseVSProgress(); + ShowMessage($"Tango Build Failed.\n{ex.Message}"); DTE.Solution.Properties.Item("StartupProject").Value = current_startup_project; } }); @@ -227,7 +226,7 @@ namespace Tango.BuildExtensions SetVSProgress("Waiting for EDMX diagram window..."); - _window.WaitTill(() => _window.Get(SearchCriteria.ByText(edmxModelName + " [Diagram1]")) != null); + _window.WaitTill(() => _window.Get(SearchCriteria.ByText(edmxModelName + " [Diagram1]")) != null,TimeSpan.FromSeconds(30)); SetVSProgress("Cleaning up EDMX scheme..."); @@ -341,7 +340,7 @@ namespace Tango.BuildExtensions { SetVSProgress("Adding/Updating file " + Path.GetFileName(file) + "..."); observablesProject.ProjectItems.AddFromFile(file); - Wait(10); + Wait(5); } } |
