Esempio n. 1
0
        void ПервичныйКлючToolStripMenuItemClick(object sender, EventArgs e)
        {
            if (MainForm.Main_Form.toolStripButton10.Checked == true)
            {
                this.dataGridView1.CurrentRow.Cells[3].Value  = true;
                this.dataGridView1.CurrentRow.Cells[4].Value  = false;
                this.dataGridView1.CurrentRow.Cells[5].Value  = false;
                this.dataGridView1.CurrentRow.Cells[6].Value  = "Guid";
                this.dataGridView1.CurrentRow.Cells[7].Value  = "0";
                this.dataGridView1.CurrentRow.Cells[8].Value  = "0";
                this.dataGridView1.CurrentRow.Cells[9].Value  = "0";
                this.dataGridView1.CurrentRow.Cells[10].Value = "";
            }

            // Первичный ключ типа Autoincrement
            if (MainForm.Main_Form.toolStripButton11.Checked == true)
            {
                PropertyEdit pe = new PropertyEdit();
                pe.label1.Text = "Текущая таблица: " +
                                 this.dataGridView1.CurrentRow.Cells[0].Value + ".";
                pe.label2.Text = "Текущий столбец: " +
                                 this.dataGridView1.CurrentRow.Cells[1].Value + ".";
                Rejim = true;
                pe.PK = true;
                pe.FK = false;
                pe.CD = false;
                pe.tabControl1.SelectedIndex = 1;
                pe.ShowDialog();
            }
        }
Esempio n. 2
0
        void ToolStripButton2Click(object sender, EventArgs e)
        {
            PropertyEdit pe = new PropertyEdit();

            pe.label1.Text = "Текущая таблица: " +
                             this.dataGridView1.CurrentRow.Cells[0].Value + ".";
            pe.label2.Text = "Текущий столбец: " +
                             this.dataGridView1.CurrentRow.Cells[1].Value + ".";
            Rejim = false;
            pe.ShowDialog();
        }
Esempio n. 3
0
        void СтолбецДанныхToolStripMenuItemClick(object sender, EventArgs e)
        {
            PropertyEdit pe = new PropertyEdit();

            pe.label1.Text = "Текущая таблица: " +
                             this.dataGridView1.CurrentRow.Cells[0].Value + ".";
            pe.label2.Text = "Текущий столбец: " +
                             this.dataGridView1.CurrentRow.Cells[1].Value + ".";
            Rejim = true;
            pe.PK = false;
            pe.FK = false;
            pe.CD = true;
            pe.tabControl1.SelectedIndex = 2;
            pe.comboBox1.SelectedIndex   = 0;
            pe.ShowDialog();
        }