B2016-238: Don’t allow insert of step from step with no text
This commit is contained in:
parent
fddcb8d13f
commit
07fd4990df
@ -952,6 +952,11 @@ namespace Volian.Controls.Library
|
|||||||
|
|
||||||
void btnInsStep_Click(object sender, EventArgs e)
|
void btnInsStep_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
if (_MyEditItem.MyStepRTB.Text == "") // Fix B2016-238
|
||||||
|
{
|
||||||
|
MessageBox.Show(this, "Cannot insert step from empty step.", "Insert step", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||||
|
return;
|
||||||
|
}
|
||||||
string cautNoteOrder = _MyEditItem.MyItemInfo.ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.StepSectionLayoutData.CautionNoteOrder;
|
string cautNoteOrder = _MyEditItem.MyItemInfo.ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.StepSectionLayoutData.CautionNoteOrder;
|
||||||
DevComponents.DotNetBar.ButtonItem b = (DevComponents.DotNetBar.ButtonItem)sender;
|
DevComponents.DotNetBar.ButtonItem b = (DevComponents.DotNetBar.ButtonItem)sender;
|
||||||
if (b.Tag == null) return;
|
if (b.Tag == null) return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user