Ejemplo n.º 1
0
        private void tsmScreenSaver_Click(object sender, EventArgs e)
        {
            try
            {
                foreach (TabPage _tab in this.tbcNSites_V.TabPages)
                {
                    if (_tab.Text == "Screen Saver")
                    {
                        tbcNSites_V.SelectedTab = _tab;
                        return;
                    }
                }

                ScreenSaverUI _ScreenSaver    = new ScreenSaverUI();
                TabPage       _ScreenSaverTab = new TabPage();
                _ScreenSaverTab.ImageIndex = 5;
                _ScreenSaver.ParentList    = this;
                displayControlOnTab(_ScreenSaver, _ScreenSaverTab);
            }
            catch (Exception ex)
            {
                ErrorMessageUI em = new ErrorMessageUI(ex.Message, this.Name, "tsmScreenSaver_Click");
                em.ShowDialog();
                return;
            }
        }
Ejemplo n.º 2
0
        private void tsmScreenSaver_Click(object sender, EventArgs e)
        {
            ScreenSaverUI _ScreenSaver    = new ScreenSaverUI();
            TabPage       _ScreenSaverTab = new TabPage();

            _ScreenSaverTab.ImageIndex = 5;
            _ScreenSaver.ParentList    = this;
            displayControlOnTab(_ScreenSaver, _ScreenSaverTab);
        }