Beispiel #1
0
 public ScientificResearchAcivity()
 {
     InitializeComponent();
     Data.form.Text       = "Научно-исследовательская деятельность";
     panelMain.AutoScroll = true;
     scientificResearch   = new ScientificResearch(new double[] { 2, 3, 4, 5, 6 },
                                                   new double[] { 8 },
                                                   new double[] { 8 },
                                                   new double[] { 2, 3, 4, 5, 6 });
     fields = new List <Control>()
     {
         maskedTextBoxPeriod
     };
     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 };
     tablesC = new DataGridView[] { tableCE1, tableCD1 };
     fields.AddRange(tables);
     fields.AddRange(tablesA);
     fields.AddRange(tablesB);
     fields.AddRange(tablesC);
     result.Text = "0";
     radioButton1And1And1.Checked = true;
 }
Beispiel #2
0
        private void delete_Click(object sender, EventArgs e)
        {
            if (dataGridView2.RowCount == 0)
            {
                return;
            }
            int row = dataGridView2.CurrentRow.Index;
            int id  = Convert.ToInt32(dataGridView2[0, row].Value);

            ScientificResearch.DeleteDataBase(id);
            dataGridView2.Rows.RemoveAt(row);
        }
Beispiel #3
0
        private void downloadD2_Click(object sender, EventArgs e)
        {
            if (dataGridView2.RowCount == 0)
            {
                return;
            }
            int row = dataGridView2.CurrentRow.Index;
            int id  = Convert.ToInt32(dataGridView2[0, row].Value);
            ScientificResearch scientificResearch = new ScientificResearch(new double[] { 2, 3, 4, 5, 6 },
                                                                           new double[] { 8 },
                                                                           new double[] { 8 },
                                                                           new double[] { 2, 3, 4, 5, 6 });

            scientificResearch.SetInObjectFromDataBase(id);
            scientificResearch.SetInWord();
        }