public DeleteQuery(Table tab) { tableName = tab.tableName; fields = new List<Field>(); if (tab.columns.Count > 0) { fields.Add(tab.columns[0]); } }
public SearchDialog(Table tab) { src=tab; constraints = new List<string>(); InitializeComponent(); for (int i = 0; i < src.columns.Count; i++) { comboBox1.Items.Add(src.columns[i].label); } curr = null; }
public DataManager(DataBase db, Table tab) { dataBase = db; table = tab; removalTab = tab; editRef = new System.Windows.Forms.ContextMenuStrip(); ToolStripMenuItem toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); editRef.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { toolStripMenuItem1 }); editRef.Name = "editMenuStrip"; editRef.Size = new System.Drawing.Size(153, 48); toolStripMenuItem1.Size = new System.Drawing.Size(152, 22); toolStripMenuItem1.Text = "Edytuj"; }
public UpdateQuery(Table tab) { tableName = tab.tableName; fields = new List<Field>(); for (int i = 0; i < tab.columns.Count; i++) { if (tab.columns[i].visible) { fields.Add(tab.columns[i]); } } }
public SelectQuery(Table tab) { tableName = tab.tableName; conditions = new List<string>(); fields = new List<Field>(); order = ""; for (int i = 0; i < tab.columns.Count; i++) { if (tab.columns[i].visible) { fields.Add(tab.columns[i]); } } }
public InsertQuery(Table tab) { tableName = tab.tableName; fields = new List<Field>(); values = new List<List<string>>(); for (int i = 0; i < tab.columns.Count; i++) { if (tab.columns[i].visible) { fields.Add(tab.columns[i]); } } }