This commit is contained in:
2010-11-16 17:29:33 +00:00
parent 96160bec38
commit e2f94d92b9
2 changed files with 18 additions and 1 deletions

View File

@@ -44,7 +44,7 @@ namespace Volian.Controls.Library
}
}
private ItemInfo MyItemInfo
{ get { return _MyStepRTB.MyItemInfo; } }
{ get { return _MyStepRTB==null?null:_MyStepRTB.MyItemInfo; } }
private DevComponents.DotNetBar.ButtonItem _DefaultContextMenu;
@@ -1254,6 +1254,7 @@ namespace Volian.Controls.Library
private void btnPdfCreate_Click(object sender, EventArgs e)
{
if (MyItemInfo == null) return; // if creating a pdf before rtb exists, return;
OnPrintRequest(new StepTabRibbonEventArgs(MyItemInfo.MyProcedure));
}
}