public Search(MySqlController controller, string table) { InitializeComponent(); listOfControls = new List <Control>(); this.controller = controller; this.table = table; this.y = mySqlOperator.Location.Y; operatorX = mySqlOperator.Location.X; columnsX = columns.Location.X; equalX = equal.Location.X; resultX = result.Location.X; newLineX = newLine.Location.X; delLineX = delLine.Location.X; foreach (var item in createColumns().Items) { columns.Items.Add(item.ToString()); } foreach (var item in createOperators().Items) { equal.Items.Add(item.ToString()); } listOfControls.Add(columns); listOfControls.Add(equal); listOfControls.Add(result); }
public Insert(DataGridViewColumnCollection columns, MySqlController controller, string tableName) { InitializeComponent(); map = new Dictionary <Label, Control>(); this.tableName = tableName; this.database = controller.getDataBase; this.controller = controller; addComponents(columns); }
public DB(MySqlConnection conn) { InitializeComponent(); this.conn = conn; controller = new MySqlController(conn, dataGridView1); }