Change Manager
This commit is contained in:
@@ -598,7 +598,7 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
if (MyStepRTB.ReadOnly) return;
|
||||
if (!MyStepRTB.ActiveMode) return;
|
||||
if (!MyStepRTB.IsDirty && MyStepRTB.Text.Contains("(Resolved Transition Text)") == false) return;
|
||||
if (MyStepRTB.MyItemInfo.MyContent.Number != null && !MyStepRTB.IsDirty && MyStepRTB.Text.Contains("(Resolved Transition Text)") == false) return;
|
||||
bool success = MyStepRTB.OrigDisplayText.Save((RichTextBox)MyStepRTB);
|
||||
if (success)
|
||||
{
|
||||
@@ -707,7 +707,15 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
public override bool Empty
|
||||
{
|
||||
get { return MyStepRTB.Text == ""; }
|
||||
get
|
||||
{
|
||||
// Console.WriteLine("step rtb is dirty {0} and rtf is {1}", MyStepRTB.IsDirty, MyStepRTB.Rtf);
|
||||
// string txt = MyStepRTB.Text;
|
||||
// Console.WriteLine("step rtb is dirty {0} and rtf is {1}", MyStepRTB.IsDirty, MyStepRTB.Rtf);
|
||||
// return txt == "";
|
||||
//return MyStepRTB.IsEmpty;
|
||||
return MyStepRTB.Text == "";
|
||||
}
|
||||
set { MyStepRTB.Text = value ? "" : " "; }
|
||||
}
|
||||
//public override bool IsEmpty() // this becomes 'Empty' property, i.e. get/set.
|
||||
|
Reference in New Issue
Block a user