/// <summary> /// Confirms that Backsight system tables exist. This checks whether a database schema /// called "ced" has been created. /// </summary> /// <param name="tf">The factory that can be used to create database tables in an /// associated database.</param> bool ConfirmTablesExist(TableFactory tf) { if (tf == null) { return(false); } if (tf.DoTablesExist()) { return(true); } CreateTablesForm ctf = new CreateTablesForm(tf); bool isCreatedOk = (ctf.ShowDialog() == DialogResult.OK); ctf.Dispose(); return(isCreatedOk); }