Esempio n. 1
0
        private void PregledBtn_Click(object sender, EventArgs e)
        {
            int TutorId   = 0;
            int StudentId = 0;

            if (tabControl1.SelectedTab == tabControl1.TabPages["TutoriTab"])
            {
                if (BanovaniTutoriGridView.SelectedRows.Count != 0)
                {
                    TutorId = Convert.ToInt32(BanovaniTutoriGridView.SelectedRows[0].Cells[0].Value);
                    var detalji = new TutorDetalj(TutorId);
                    detalji.FormClosed += new FormClosedEventHandler(Form_Closed);
                    detalji.ShowDialog();
                    detalji.MdiParent = this.MdiParent;
                }
            }

            if (tabControl1.SelectedTab == tabControl1.TabPages["StuentiTab"])
            {
                if (BanStudentsGridView.SelectedRows.Count != 0)
                {
                    StudentId = Convert.ToInt32(BanStudentsGridView.SelectedRows[0].Cells[0].Value);
                    var studentDetalji = new StudentDetalj(StudentId);
                    studentDetalji.FormClosed += new FormClosedEventHandler(Form_Closed);
                    studentDetalji.ShowDialog();
                    studentDetalji.MdiParent = this.MdiParent;
                }
            }
        }
Esempio n. 2
0
 private void DetaljiBtn_Click(object sender, EventArgs e)
 {
     if (StudentGridView.SelectedRows.Count != 0)
     {
         StudentDetalj tutorDetalj = new StudentDetalj(Convert.ToInt32(StudentGridView.SelectedRows[0].Cells[0].Value));
         tutorDetalj.ShowDialog();
         tutorDetalj.MdiParent = this.MdiParent;
     }
 }
Esempio n. 3
0
        private void studentBtn_Click(object sender, EventArgs e)
        {
            StudentDetalj student = new StudentDetalj(prijava.StudentId);

            student.ShowDialog();
        }