Move pagination code to pagination.cs

Add error handler if _MyStepRTB is null
This commit is contained in:
Rich
2012-06-08 18:13:08 +00:00
parent 9b7a8ee6fa
commit c9d962d01d
4 changed files with 323 additions and 288 deletions

View File

@@ -177,6 +177,7 @@ namespace Volian.Controls.Library
void _MyStepRTB_TextChanged(object sender, EventArgs e)
{
if (_MyStepRTB == null) return;
// if we are in view mode or the edit window is empty, then don't allow inserting steps/substeps,
// page breaks, copy step, nor creating a pdf
bool allow = (_MyStepRTB.TextLength > 0);