This commit is contained in:
parent
d29e12ff52
commit
61bea1edc4
@ -132,7 +132,8 @@ namespace Volian.Controls.Library
|
|||||||
{
|
{
|
||||||
// Update the text to reflect the content change
|
// Update the text to reflect the content change
|
||||||
MyStepRTB.MyItemInfo=MyStepRTB.MyItemInfo; // Reset Text
|
MyStepRTB.MyItemInfo=MyStepRTB.MyItemInfo; // Reset Text
|
||||||
// TODO: Need code to update tabs.
|
// TODO: Need code to update tabs ? not sure what this is - maybe for
|
||||||
|
// transitions?
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Used to connect the RichTextBox with the menus and toolbars
|
/// Used to connect the RichTextBox with the menus and toolbars
|
||||||
@ -931,7 +932,7 @@ namespace Volian.Controls.Library
|
|||||||
SetAllTabs();
|
SetAllTabs();
|
||||||
}
|
}
|
||||||
// clear tabs, clears then all so that next 'get' will calculate new.
|
// clear tabs, clears then all so that next 'get' will calculate new.
|
||||||
private void SetAllTabs()
|
public void SetAllTabs()
|
||||||
{
|
{
|
||||||
TabFormat = null; // reset TabFormat
|
TabFormat = null; // reset TabFormat
|
||||||
SetupHeader();
|
SetupHeader();
|
||||||
@ -1032,7 +1033,7 @@ namespace Volian.Controls.Library
|
|||||||
DialogResult ans = MessageBox.Show("Transitions exist to this step and cannot be adjusted automatically." +
|
DialogResult ans = MessageBox.Show("Transitions exist to this step and cannot be adjusted automatically." +
|
||||||
"\r\n\r\nDo you want to be placed on the " + (exTrans.Count > 1 ? "first " : "") + "substep with the problem Transition?" +
|
"\r\n\r\nDo you want to be placed on the " + (exTrans.Count > 1 ? "first " : "") + "substep with the problem Transition?" +
|
||||||
"\r\n\r\nSubsteps with Problem Transitions" +
|
"\r\n\r\nSubsteps with Problem Transitions" +
|
||||||
Summarize(exTrans) ,
|
exTrans.Summarize(),
|
||||||
"Cannot Delete This Step", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
|
"Cannot Delete This Step", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
|
||||||
if (ans == DialogResult.Yes)
|
if (ans == DialogResult.Yes)
|
||||||
{
|
{
|
||||||
@ -1049,7 +1050,7 @@ namespace Volian.Controls.Library
|
|||||||
DialogResult ans = MessageBox.Show("Transitions exist to substeps of this step and cannot be adjusted automatically." +
|
DialogResult ans = MessageBox.Show("Transitions exist to substeps of this step and cannot be adjusted automatically." +
|
||||||
"\r\n\r\nDo you want to be placed on the " + (exTrans.Count > 1 ? "first " : "") + "substep with the problem Transition?" +
|
"\r\n\r\nDo you want to be placed on the " + (exTrans.Count > 1 ? "first " : "") + "substep with the problem Transition?" +
|
||||||
"\r\n\r\nSubsteps with Problem Transitions:" +
|
"\r\n\r\nSubsteps with Problem Transitions:" +
|
||||||
Summarize(exTrans),
|
exTrans.Summarize(),
|
||||||
"Cannot Delete This Step", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
|
"Cannot Delete This Step", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
|
||||||
if (ans == DialogResult.Yes)
|
if (ans == DialogResult.Yes)
|
||||||
{
|
{
|
||||||
@ -1060,13 +1061,6 @@ namespace Volian.Controls.Library
|
|||||||
else
|
else
|
||||||
MessageBox.Show(ex.Message, "SQL Exception", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
MessageBox.Show(ex.Message, "SQL Exception", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||||
}
|
}
|
||||||
private string Summarize(TransitionInfoList exTrans)
|
|
||||||
{
|
|
||||||
StringBuilder sb = new StringBuilder("");
|
|
||||||
foreach (TransitionInfo trans in exTrans)
|
|
||||||
sb.Append("\r\n" + trans.PathFrom);
|
|
||||||
return sb.ToString();
|
|
||||||
}
|
|
||||||
private void RemoveFromParentsChildList()
|
private void RemoveFromParentsChildList()
|
||||||
{
|
{
|
||||||
StepItem top = this;
|
StepItem top = this;
|
||||||
@ -2095,9 +2089,5 @@ namespace Volian.Controls.Library
|
|||||||
return _MyItemInfo == null ? base.ToString() : string.Format("({0}) {1}", MyID, MyPath); // + "-" + MyItemInfo.MyContent.Text;
|
return _MyItemInfo == null ? base.ToString() : string.Format("({0}) {1}", MyID, MyPath); // + "-" + MyItemInfo.MyContent.Text;
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
private void _MyStepRTB_DoubleClick(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
RemoveItem();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user