public FrmView() { theController = new Controller(this, "sqlite"); InitializeComponent(); dgvRecord.EditMode = DataGridViewEditMode.EditOnEnter; theController.TakeQuery("SELECT COUNT(A_ID) FROM acquisition");//, "get amount"); c = Convert.ToInt32(theController.getOutcome(0)); dgvRecord.Rows.Add((++c).ToString()); refreshDropDowns(); }
public QueryHandler(ref MySqlConnection connection, SQLconn MySql_connector, Controller controller) { conn = connection; theConnector = MySql_connector; theController = controller; }
public SQLiteQueryHandler(ref SQLiteConnection connection, SQLiteConn SQLite_connector, Controller controller) { sqlite_conn = connection; theConnector = SQLite_connector; theController = controller; }