Hide the extra row at the bottom in a DataGridview in a Winform Application

this.dataGridView.AllowUserToAddRows = false;

https://stackoverflow.com/questions/4212432/hide-the-extra-row-at-the-bottom-in-a-datagridview-in-a-winform-application
Advertisements

How to get the current product version in C#

How to get the current product version in C#

 

https://stackoverflow.com/questions/6493715/how-to-get-the-current-product-version-in-c#

VersionNumber = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();

[assembly: AssemblyVersion(“1.0.2.0”)] //this the place to update the version

Fie AssemblyInfo.cs

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(“Listener_1”)]

[assembly: AssemblyDescription(“”)]

[assembly: AssemblyConfiguration(“”)]

[assembly: AssemblyCompany(“Clal Insurance”)]

[assembly: AssemblyProduct(“Listener_1”)]

[assembly: AssemblyCopyright(“Copyright © Clal Insurance 2015”)]

[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(“3e814d74-a336-4a5e-bd6c-0162898c3045”)]

// 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.2.0”)]    //////////// HERE YOU UPDATE THE VERSION

[assembly: AssemblyFileVersion(“1.0.2.0”)]

 

Running Jenkins job after few jobs ended, using Join plug-in

example:

you have 4 jobs, job1, job2, job3, job 4

job1 executes job2 and job3, and you want to run job4 only after both job2 and job3 finished:

Jenkins Join 01

  1. Install the Join Plug in: https://wiki.jenkins.io/display/JENKINS/Join+Plugin
  2. In Job1 > Configure, Post-build Actions, add Join Trigger
    1. Select trigger from drop-down (Success/Unstable/Failure/Aborted)
    2. Check the Run post-build actions at join checkbox, it will open the Post-Join Actions section
    3. check the Trigger parameterized build on other projects checkbox
    4. in Projects to build insert the Job that should run after the parallel Jobs finished (Job4 in our example), select trigger and choos if need to pass parameters
    5. Add more post-build action in order to run the parallel Jobs from the first Job (Job2 and Job3 in our example). if you want to pass parameters use the trigger parameterized build Plug-in (Jenkins Parameterized Trigger plugin)

Jenkins Join 02