Exemplo n.º 1
0
        private void InfoButton_Click(object sender, EventArgs e)
        {
            Sections sec = new Sections();
            Topics   top = new Topics();

            foreach (DataGridViewRow row in dataGridView1.SelectedRows)
            {
                if (row.Cells[4].Value != null)
                {
                    top.ID    = (int)row.Cells[4].Value;
                    top.Title = row.Cells[5].Value.ToString();
                }
                sec.ID = (int)row.Cells[0].Value;
            }
            sec = DependencyFacade.GetSection(sec);
            top = DependencyFacade.GetTopicData(top);
            MoreInfo mri = new MoreInfo(0, sec, top);

            mri.ShowDialog();
        }