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; }
public TargetMediator(Target aTarget, AppletManager aManager) { iTarget = aTarget; iApplets = aManager.CreateApplets(iTarget); iCurrentApplet = iApplets[0]; }