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; } } }
private void TutorInput_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { TutorDetalj tutor = new TutorDetalj(TutorId); tutor.ShowDialog(); tutor.MdiParent = this.MdiParent; }
private void DetaljBtn_Click(object sender, EventArgs e) { if (TutorGridView.SelectedRows.Count != 0) { TutorDetalj tutorDetalj = new TutorDetalj(Convert.ToInt32(TutorGridView.SelectedRows[0].Cells[0].Value)); tutorDetalj.ShowDialog(); tutorDetalj.MdiParent = this.MdiParent; } }
private void tutorBtn_Click(object sender, EventArgs e) { Tutor_UI.Users.TutorDetalj tutor = new TutorDetalj(prijava.TutorId); tutor.ShowDialog(); }