/// <summary> /// Public interface to load Info Pane. /// </summary> public void load_infoPane() { try { editPane.Disable(); contentPane.Disable(); if (gvTitles.Rows.Count > 0) { scrollpos = gvTitles.FirstDisplayedScrollingRowIndex; } infoPane.Enable(); gvTitles.Enabled = true; panel1.Enabled = true; populateList(); Enable(); if (gvTitles.Rows.Count > 0) { gvTitles.FirstDisplayedScrollingRowIndex = scrollpos; } } catch (Exception ex) { BetterDialog.ShowDialog("Main Load", "Error : " + ex.Message, "", "", "OK", null, BetterDialog.ImageStyle.Icon); } }
/// <summary> /// Load child Panes and components. /// </summary> public mainView(MainForm main) { InitializeComponent(); caller = main; DoubleBuffered = true; btnCategory_Click(btnCate_TV, null); populateList(); infoPane = new infoPane(); contentPane = new contentsPane(caller); editPane = new editPane(); panelMain.Controls.Add(infoPane); panelMain.Controls.Add(contentPane); panelMain.Controls.Add(editPane); infoPane.Enable(); contentPane.Disable(); editPane.Disable(); txtSearch.Enter += new EventHandler(c_Enter); gvTitles.Enter += new EventHandler(c_Enter); }