Beispiel #1
0
 private void consoleToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (iFormUserLog.IsDisposed)
     {
         iFormUserLog = new FormUserLog(Icon);
     }
     iFormUserLog.SetBackColour(iViewSupport.BackColour);
     iFormUserLog.SetForeColour(iViewSupport.ForeColour);
     iFormUserLog.SetFont(iViewSupport.FontSmall);
     iFormUserLog.Show();
 }
Beispiel #2
0
        public FormLinnSetup(HelperLinnSetup aHelper, Diagnostics aDiagnostics, AppletManager aManager)
        {
            iManager     = aManager;
            iHelper      = aHelper;
            iDiagnostics = aDiagnostics;

            iFormUserLog = new FormUserLog(iHelper.Icon);
            iFormUserLog.SetBackColour(Color.Black);
            iFormUserLog.SetForeColour(Color.White);

            InitializeComponent();

            this.WindowState = FormWindowState.Maximized;
            this.Text        = iHelper.Product;
            this.Icon        = iHelper.Icon;

            releaseNotesToolStripMenuItem.Image     = Linn.Toolkit.WinForms.Properties.Resources.Rss;
            betaReleaseNotesToolStripMenuItem.Image = Linn.Toolkit.WinForms.Properties.Resources.Rss;

            // select view
            if (aHelper.ApplicationOptions.ViewDetails)
            {
                tableLayoutPanel1.Visible           = false;
                listView1.Visible                   = true;
                deviceDetailsToolStripMenuItem.Text = "Icons";
            }

            // set up column sorting
            listView1.ListViewItemSorter = new ComparerListView(0); // default to sort by room

            //create tabs for applets
            for (int i = 0; i < iManager.AppletNames.Count; i++)
            {
                TabPage page = new TabPage(iManager.AppletNames[i]);
                page.Tag = i;
                tabControl1.TabPages.Add(page);
            }

            statusStrip1.Padding = new Padding(3, 0, 3, 0);
            Closed += EventFormClosedHandler;
        }