Handle tabs defined in format as {LNK Step Num} for deviation documents
If can’t find an edit window, for example from search results that list ‘hidden’ data, give message –not crash
This commit is contained in:
@@ -57,6 +57,11 @@ namespace Volian.Controls.Library
|
||||
set
|
||||
{
|
||||
_MyStepPanel.SelectedEditItem = _MyStepPanel.GetEditItem(value);
|
||||
if (_MyStepPanel.SelectedEditItem == null)
|
||||
{
|
||||
MessageBox.Show("The selected item is not available in the editor. One possible cause is that the data is 'not editable', check the section properties 'Editable Data' checkbox.", "Inaccessible Data", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
return;
|
||||
}
|
||||
if (_MyStepPanel.SelectedEditItem != null)
|
||||
_MyStepPanel.SelectedEditItem.ItemSelect();
|
||||
if (!_MyStepPanel.ItemSelectionChangeShown) _MyStepPanel.OnItemSelectedChanged(this, new ItemSelectedChangedEventArgs(_MyStepPanel.SelectedEditItem));
|
||||
|
Reference in New Issue
Block a user