Esempio n. 1
0
 private void btnResetQuery_Click(object sender, EventArgs e)
 {
     foreach (TableInDiagram t in tablesInForm)
     {
         for (int i = 0; i < t.Fields.Count; i++)
         {
             Field f = t.Fields[i];
             f.Brush     = Brushes.Black;
             t.Fields[i] = f;
         }
     }
     mainSelectQuery          = new SelectQuery();
     mainInsertQuery          = new InsertQuery();
     mainUpdateQuery          = new UpdateQuery();
     mainDeleteQuery          = new DeleteQuery();
     rtbQueryConstructor.Text = "";
     dgvAlias.Rows.Clear();
     dgvJoin.Rows.Clear();
     pbDiagram.Invalidate();
     dgvInsertFields.Rows.Clear();
     rtbInsertSelectQuery.Text = "Введи SELECT запрос для команды INSERT";
     dgvUpdateFields.Rows.Clear();
     dgvDeleteFields.Rows.Clear();
     rtbDeleteWhere.Text   = "";
     tbDeleteLimit.Text    = "";
     cbDeleteLow.Checked   = false;
     cbDeleteQuick.Checked = false;
 }
Esempio n. 2
0
 private void OpenInsertConstructor()
 {
     if (!isOpenConstructior)
     {
         isOpenConstructior = true;
         mainInsertQuery    = new InsertQuery();
     }
     isOpenInsertInConstructor = true;
     mainInsertQuery           = new InsertQuery();
     ResizeElements();
 }
Esempio n. 3
0
 private void ResetInsertConstructor()
 {
     rtbInsertSelectQuery.Text = "Введи SELECT запрос для команды INSERT";
     dgvInsertFields.Rows.Clear();
     mainInsertQuery = new InsertQuery();
 }