MRI Capability
MyConfig for ItemInfo Fixed various problems with DisplayTabControl VEPROMS ribbon for DisplayTabPanel
This commit is contained in:
@@ -12,7 +12,13 @@ namespace Volian.Controls.Library
|
||||
public partial class DisplayTabPanel : DevComponents.DotNetBar.PanelDockContainer
|
||||
{
|
||||
private DisplayTabControl _MyTabControl;
|
||||
private DisplayTabRibbon _MyTabRibbon;
|
||||
private Volian.Controls.Library.DisplayPanel _MyPanel;
|
||||
public Volian.Controls.Library.DisplayPanel MyPanel
|
||||
{
|
||||
get { return _MyPanel; }
|
||||
set { _MyPanel = value; }
|
||||
}
|
||||
private DisplayTabItem _TabItem;
|
||||
public DisplayTabItem TabItem
|
||||
{
|
||||
@@ -24,6 +30,10 @@ namespace Volian.Controls.Library
|
||||
get { return _MyPanel.ItemSelected; }
|
||||
set { _MyPanel.ItemSelected = value; }
|
||||
}
|
||||
public DisplayItem SelectedItem
|
||||
{
|
||||
get { return _MyPanel._ItemLookup[_MyPanel.ItemSelected.ItemID]; }
|
||||
}
|
||||
public ItemInfo MyItem
|
||||
{
|
||||
get { return _MyPanel.MyItem; }
|
||||
@@ -35,10 +45,25 @@ namespace Volian.Controls.Library
|
||||
InitializeComponent();
|
||||
SetupDisplayTabPanel();
|
||||
SetupDisplayPanel();
|
||||
SetupDisplayTabRibbon();
|
||||
}
|
||||
private void SetupDisplayTabRibbon()
|
||||
{
|
||||
_MyTabRibbon = new DisplayTabRibbon();
|
||||
_MyTabRibbon.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
_MyTabRibbon.Location = new System.Drawing.Point(0, 0);
|
||||
_MyTabRibbon.Name = "displayTabRibbon1";
|
||||
_MyTabRibbon.RichTextBox = null;
|
||||
this.Controls.Add(_MyTabRibbon);
|
||||
}
|
||||
private void SetupDisplayTabPanel()
|
||||
{
|
||||
Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.Enter += new EventHandler(DisplayTabPanel_Enter);
|
||||
}
|
||||
void DisplayTabPanel_Enter(object sender, EventArgs e)
|
||||
{
|
||||
if (ItemSelected != null) _MyPanel.ItemShow();
|
||||
}
|
||||
private void SetupDisplayPanel()
|
||||
{
|
||||
|
Reference in New Issue
Block a user