Fixed DSO Framer:
1. Open Properly if all tabs are closed 2. Open to a full window view 3. Set Current Item in the Tab Control Fixed Display Panel so that when you click on an item in an inactive panel, the item clicked-on become the selected item.
This commit is contained in:
@@ -12,6 +12,12 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
private DisplayTabControl _MyTabControl;
|
||||
private ItemInfo _MyItem;
|
||||
|
||||
public ItemInfo MyItem
|
||||
{
|
||||
get { return _MyItem; }
|
||||
set { _MyItem = value; }
|
||||
}
|
||||
private DisplayTabPanel _MyTabPanel;
|
||||
private string _MyKey;
|
||||
public string MyKey
|
||||
@@ -24,6 +30,11 @@ namespace Volian.Controls.Library
|
||||
set { _MyTabPanel = value; }
|
||||
}
|
||||
private DSOTabPanel _MyDSOTabPanel;
|
||||
public DSOTabPanel MyDSOTabPanel
|
||||
{
|
||||
get { return _MyDSOTabPanel; }
|
||||
set { _MyDSOTabPanel = value; }
|
||||
}
|
||||
public ItemInfo ItemSelected
|
||||
{
|
||||
get { return _MyTabPanel.ItemSelected; }
|
||||
@@ -41,9 +52,7 @@ namespace Volian.Controls.Library
|
||||
SetupDisplayPanel();
|
||||
else
|
||||
SetupDSOPanel();
|
||||
this.Disposed+=new EventHandler(DisplayTabItem_Disposed);
|
||||
//_MyTabPanel.HandleDestroyed += new EventHandler(_MyTabPanel_HandleDestroyed);
|
||||
//_MyTabPanel.Disposed += new EventHandler(_MyTabPanel_Disposed);
|
||||
Name = string.Format("DisplayTabItem {0}", myItem.ItemID);
|
||||
}
|
||||
void DisplayTabItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
@@ -54,18 +63,6 @@ namespace Volian.Controls.Library
|
||||
if(myTabPanel == null) return;
|
||||
_MyTabControl.OnItemSelectedChanged(this,new DisplayPanelEventArgs(MyTabPanel.SelectedItem,null));
|
||||
}
|
||||
//void _MyTabPanel_Disposed(object sender, EventArgs e)
|
||||
//{
|
||||
// Console.WriteLine("_MyTabPanel_Disposed");
|
||||
//}
|
||||
//void _MyTabPanel_HandleDestroyed(object sender, EventArgs e)
|
||||
//{
|
||||
// Console.WriteLine("_MyTabPanel_HandleDestroyed");
|
||||
//}
|
||||
void DisplayTabItem_Disposed(object sender, EventArgs e)
|
||||
{
|
||||
Console.WriteLine("DisplayTabItem_Disposed");
|
||||
}
|
||||
private void SetupDisplayPanel()
|
||||
{
|
||||
((System.ComponentModel.ISupportInitialize)(_MyTabControl.MyBar)).BeginInit();
|
||||
@@ -81,14 +78,12 @@ namespace Volian.Controls.Library
|
||||
//
|
||||
_MyTabControl.Controls.Add(_MyTabPanel);
|
||||
_MyTabControl.MyBar.Items.Add(this);
|
||||
// TODO: Cleanup _MyTabControl.Tabs.Add(this);
|
||||
//
|
||||
// tabPanel
|
||||
//
|
||||
_MyTabPanel.TabItem = this;
|
||||
((System.ComponentModel.ISupportInitialize)(_MyTabControl.MyBar)).EndInit();
|
||||
_MyTabControl.MyBar.ResumeLayout(false);
|
||||
//_MyTabPanel.MyItem = _MyItem;
|
||||
}
|
||||
private void SetupDSOPanel()
|
||||
{
|
||||
@@ -110,7 +105,6 @@ namespace Volian.Controls.Library
|
||||
//
|
||||
_MyTabControl.SelectedTab = this;
|
||||
_MyDSOTabPanel.TabItem = this;
|
||||
//_MyTabControl.SetToolTip(this, "Header", "Footer", "Body");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user