private void btnBack_Click(object sender, EventArgs e) { FrmTopic objFrmTopic = new FrmTopic(objTopics); this.Hide(); objFrmTopic.ShowDialog(); }
private void FrmLoadTopic() { FrmTopic objFrmTopic = new FrmTopic(objTopics); this.Hide(); objFrmTopic.ShowDialog(); }
private void btnStart_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Back || e.KeyCode == Keys.Escape) { FrmTopic objFrmTopic = new FrmTopic(objTopics); this.Hide(); objFrmTopic.ShowDialog(); } }
private void btnStart_Click(object sender, EventArgs e) { QuestionsLiist = o_loginWindow.GetQuestionlist(objTopics.CourseID.ToString(), objTopics.LessonID.ToString(), objTopics.TopicID.ToString()); if (QuestionsLiist.Count > 0) { FrmQuestion objFrmQuestion = new FrmQuestion(objTopics); this.Hide(); objFrmQuestion.ShowDialog(); } else { FrmTopic objFrmTopic = new FrmTopic(objTopics); this.Hide(); objFrmTopic.ShowDialog(); } }
private void lstLessions_KeyDown(object sender, KeyEventArgs e) { try { if (e.KeyCode == Keys.Enter) { int key = (int)lstLessions.SelectedValue; FrmTopic objFrmTopic = new FrmTopic(CourseID, key.ToString()); this.Hide(); objFrmTopic.ShowDialog(); } else if (e.KeyCode == Keys.Back || e.KeyCode == Keys.Escape) { FrmCourses objCourses = new FrmCourses(CourseID); this.Hide(); objCourses.ShowDialog(); } } catch (Exception ex) { throw; } }