Jj. ok, to mě taky napadlo.
Ale teď zase nechápu, jak mám zapsat ten konstruktor ve Formu2.
Mám tam:
public CStSmlouvy(SqlConnection conn, string table, string columnName, int id = 0)
{
InitializeComponent();
}
A píše, že konstruktor:
There is no argument given that corresponds to the required formal parameter 'conn'
Ha! Victory !
public CStSmlouvy(SqlConnection conn, string table, string columnName, int id = 0) : base (conn, table, columnName, id = 0)