Exemplo n.º 1
0
        private void DetailsButton_Click(object sender, EventArgs e)
        {
            Topics       top = new Topics();
            TopicDetails tpd;

            foreach (DataGridViewRow row in dataGridView1.SelectedRows)
            {
                top.ID = (int)row.Cells[0].Value;
            }
            top = DependencyFacade.GetTopicData(top);
            if (top != null)
            {
                if (LoginPanel.TeacherID == top.TeacherID)
                {
                    tpd = new TopicDetails(0, top);
                }
                else
                {
                    tpd = new TopicDetails(2, top);
                }
                tpd.ShowDialog();
            }
        }
Exemplo n.º 2
0
        private void AddButton_Click(object sender, EventArgs e)
        {
            TopicDetails tpd = new TopicDetails(1, searchCrit);

            tpd.ShowDialog();
        }