This commit is contained in:
parent
9bdfbdf1da
commit
579a1502d6
@ -48,6 +48,8 @@ namespace Volian.Controls.Library
|
|||||||
{
|
{
|
||||||
_InitializingLibDocList = true;
|
_InitializingLibDocList = true;
|
||||||
listBoxLibDocs.Items.Clear();
|
listBoxLibDocs.Items.Clear();
|
||||||
|
tbComment.Clear();
|
||||||
|
tbName.Clear();
|
||||||
groupPanelLibDocs.Style.BackColor = Color.Yellow;
|
groupPanelLibDocs.Style.BackColor = Color.Yellow;
|
||||||
btnSave.Enabled = false;
|
btnSave.Enabled = false;
|
||||||
btnCancel.Enabled = false;
|
btnCancel.Enabled = false;
|
||||||
@ -62,7 +64,6 @@ namespace Volian.Controls.Library
|
|||||||
#region Events
|
#region Events
|
||||||
private void listBoxLibDocs_Click(object sender, EventArgs e)
|
private void listBoxLibDocs_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (listBoxLibDocs.SelectedIndex == _SelectedLibDoc) return;
|
|
||||||
UpdateUsageList();
|
UpdateUsageList();
|
||||||
}
|
}
|
||||||
public void RefreshLibDocPanel(DisplayTabControl tc)
|
public void RefreshLibDocPanel(DisplayTabControl tc)
|
||||||
@ -70,10 +71,11 @@ namespace Volian.Controls.Library
|
|||||||
int cursel = listBoxLibDocs.SelectedIndex;
|
int cursel = listBoxLibDocs.SelectedIndex;
|
||||||
LibDocListFillIn(tc);
|
LibDocListFillIn(tc);
|
||||||
listBoxLibDocs.SelectedIndex = cursel;
|
listBoxLibDocs.SelectedIndex = cursel;
|
||||||
UpdateUsageList(); // do I need this or does it happen on the above.
|
UpdateUsageList();
|
||||||
}
|
}
|
||||||
private void UpdateUsageList()
|
private void UpdateUsageList()
|
||||||
{
|
{
|
||||||
|
if (listBoxLibDocs.SelectedIndex == -1) return;
|
||||||
groupPanelLibDocs.Style.BackColor = Color.Orange;
|
groupPanelLibDocs.Style.BackColor = Color.Orange;
|
||||||
_SelectedLibDoc = listBoxLibDocs.SelectedIndex;
|
_SelectedLibDoc = listBoxLibDocs.SelectedIndex;
|
||||||
listBoxUsages.Items.Clear();
|
listBoxUsages.Items.Clear();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user