void getFrameForDetail(Control ctrl) { if (ctrl is Class.uc_ClassInformation) { this.uc_ClassInfor = ctrl as Class.uc_ClassInformation; } else if (ctrl is ScoreBoard.uc_ScoreBoardOfClass) { this.uc_ScoreBoard = ctrl as ScoreBoard.uc_ScoreBoardOfClass; } ctrl.Dock = DockStyle.Fill; FrameMain.Controls.Clear(); FrameMain.Controls.Add(ctrl); }
private void btn_LookUp_ScoreBoardList_Click(object sender, EventArgs e) { if (grd_ScoreBoardList_View.SelectedRowsCount <= 0) { return; } string TENLOP = ClassBLL.Instance.getTextFromGridControl(grd_ScoreBoardList_View, "TENLOP"); int MALOP = int.Parse(ClassBLL.Instance.getTextFromGridControl(grd_ScoreBoardList_View, "MALOP")); uc_ScoreBoardOfClass uc = new uc_ScoreBoardOfClass(TENLOP, MALOP); if (getFrameForLookUp != null) { getFrameForLookUp(uc); } }