Beispiel #1
0
        public СulturalСreativeActivity()
        {
            InitializeComponent();
            Data.form.Text       = "Культурно-творческая деятельность";
            panelMain.AutoScroll = true;
            culturalCreative     = new CulturalСreative(new double[] { 2, 3, 4, 5, 6 },
                                                        new double[] { 2, 3, 4, 5, 6 },
                                                        new double[] { 8 });
            fields = new List <Control>()
            {
            };

            tables = new DataGridView[] { tableE1, tableD1,
                                          tableE2, tableD2,
                                          tableE3, tableD3,
                                          tableE4, tableD4,
                                          tableE5, tableD5, };

            tablesA = new DataGridView[] { tableAE1, tableAD1,
                                           tableAE2, tableAD2,
                                           tableAE3, tableAD3,
                                           tableAE4, tableAD4,
                                           tableAE5, tableAD5 };

            tablesB = new DataGridView[] { tableBE1, tableBD1 };

            fields.AddRange(tables);
            fields.AddRange(tablesA);
            fields.AddRange(tablesB);
            result.Text = "0";
        }
Beispiel #2
0
        private void delete3_Click(object sender, EventArgs e)
        {
            if (dataGridView3.RowCount == 0)
            {
                return;
            }
            int row = dataGridView3.CurrentRow.Index;
            int id  = Convert.ToInt32(dataGridView3[0, row].Value);

            CulturalСreative.DeleteDataBase(id);
            dataGridView3.Rows.RemoveAt(row);
        }
Beispiel #3
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (dataGridView3.RowCount == 0)
            {
                return;
            }
            int row = dataGridView3.CurrentRow.Index;
            int id  = Convert.ToInt32(dataGridView3[0, row].Value);

            CulturalСreative culturalСreative = new CulturalСreative(new double[] { 2, 3, 4, 5, 6 },
                                                                     new double[] { 2, 3, 4, 5, 6 },
                                                                     new double[] { 8 });

            culturalСreative.SetInObjectFromDataBase(id);
            culturalСreative.SetInWord();
        }