This commit is contained in:
@@ -24,6 +24,24 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
if (ItemSelectedChanged != null) ItemSelectedChanged(sender, args);
|
||||
}
|
||||
public event DisplayPanelLinkEvent LinkActiveChanged;
|
||||
internal void OnLinkActiveChanged(object sender, DisplayLinkEventArgs args)
|
||||
{
|
||||
if (LinkActiveChanged != null) LinkActiveChanged(sender, args);
|
||||
else MessageBox.Show(args.LinkInfo.LinkText, "Unhandled Link Active Changed", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
}
|
||||
public event DisplayPanelLinkEvent LinkInsertTran;
|
||||
internal void OnLinkInsertTran(object sender, DisplayLinkEventArgs args)
|
||||
{
|
||||
if (LinkInsertTran != null) LinkInsertTran(sender, args);
|
||||
else MessageBox.Show(args.LinkInfo.LinkText, "Unhandled Link Insert Tran", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
}
|
||||
public event DisplayPanelLinkEvent LinkInsertRO;
|
||||
internal void OnLinkInsertRO(object sender, DisplayLinkEventArgs args)
|
||||
{
|
||||
if (LinkInsertRO != null) LinkInsertRO(sender, args);
|
||||
else MessageBox.Show(args.LinkInfo.LinkText, "Unhandled Link Insert RO", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
}
|
||||
public event DisplayPanelLinkEvent LinkClicked;
|
||||
internal void OnLinkClicked(object sender, DisplayLinkEventArgs args)
|
||||
{
|
||||
@@ -573,6 +591,7 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
if (_Type == ParsedLinkType.NotParsed)
|
||||
{
|
||||
if (_LinkInfo == null) return;
|
||||
// First parse the string
|
||||
Match m = Regex.Match(_LinkInfo.LinkText, ".*[#]Link:([A-Za-z]*):(.*)");
|
||||
switch (m.Groups[1].Value)
|
||||
@@ -587,12 +606,13 @@ namespace Volian.Controls.Library
|
||||
_Type = (ParsedLinkType)Enum.Parse(_Type.GetType(), m.Groups[1].Value);
|
||||
if(_MyLog.IsInfoEnabled)_MyLog.InfoFormat("Link String - '{0}'", m.Groups[2].Value);
|
||||
int transitionID = Convert.ToInt32(m.Groups[2].Value.Split(" ".ToCharArray())[1]);
|
||||
foreach (TransitionInfo ti in _LinkedRTB.MyItem.MyContent.ContentTransitions)
|
||||
{
|
||||
if(_MyLog.IsInfoEnabled)_MyLog.InfoFormat("Transition ID = '{0}'", ti.TransitionID);
|
||||
if (ti.TransitionID == transitionID)
|
||||
_MyTransition = ti;
|
||||
}
|
||||
_MyTransition = TransitionInfo.Get(transitionID);
|
||||
//foreach (TransitionInfo ti in _LinkedRTB.MyItem.MyContent.ContentTransitions)
|
||||
//{
|
||||
// if(_MyLog.IsInfoEnabled)_MyLog.InfoFormat("Transition ID = '{0}'", ti.TransitionID);
|
||||
// if (ti.TransitionID == transitionID)
|
||||
// _MyTransition = ti;
|
||||
//}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user