public void AddUserControl(EDDiscovery.UserControls.UserControlCommonBase c) { UserControl = c; c.Dock = DockStyle.None; c.Location = new Point(0, 10); c.Size = new Size(200, 200); this.Controls.Add(c); }
public void AddUserControlTab(EDDiscovery.UserControls.UserControlCommonBase c, string title, int iconindex = -1) { c.Dock = DockStyle.Fill; TabPage tp = new TabPage(); tp.ImageIndex = iconindex; tp.Text = title; tp.Controls.Add(c); ctc.TabPages.Add(tp); }
public void ShowScanData(EDDiscovery.EliteDangerous.JournalEvents.JournalScan scan) { if ( IsSurfaceScanOn ) { scantext = scan.DisplayString(); Display(current_historylist); SetSurfaceScanBehaviour(null); // set up timers etc. } }
public void Init(EDDiscovery.UserControls.UserControlCommonBase c, string title, bool winborder, string rf , bool deftopmostp = false , bool defwindowintaskbar = true ) { UserControl = c; c.Dock = DockStyle.None; c.Location = new Point(0, 10); c.Size = new Size(200, 200); this.Controls.Add(c); transparencycolor = c.ColorTransparency; wintitle = label_index.Text = this.Text = title; // label index always contains the wintitle, but may not be shown curwindowsborder = defwindowsborder = winborder; dbrefname = "PopUpForm" + rf; deftopmost = deftopmostp; deftransparent = false; labelControlText.Text = ""; // always starts blank.. this.ShowInTaskbar = SQLiteDBClass.GetSettingBool(dbrefname + "Taskbar", defwindowintaskbar); displayTitle = SQLiteDBClass.GetSettingBool(dbrefname + "ShowTitle", true); UpdateControls(); Invalidate(); }