示例#1
0
 /// <summary>
 /// Load Disc Pane and disable all others.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void discInfoToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (infoPane.active)
     {
         contentPane.Enable();
         infoPane.Disable();
         editPane.Disable();
         contentPane.load_data(gvTitles.SelectedCells[0].Value.ToString());
     }
 }
示例#2
0
文件: mainView.cs 项目: jollywho/LFI
        /// <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);
        }
示例#3
0
        /// <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);
        }