/// <summary>Initializes a new instance of the <see cref="RegionsForm"/> class.</summary> /// <param name="con">The con.</param> /// <exception cref="ArgumentNullException">con</exception> public RegionsForm(NpgsqlConnection con) { this.con = con ?? throw new ArgumentNullException(nameof(con)); regionsService = new RegionsService(con); InitializeComponent(); // add test data to work with. AddTestData(); }