private void DesignerOnBlueprintChanged(object sender, BlueprintChangedArgs blueprintChangedArgs) { var changesMade = blueprintChangedArgs.ChangesMade; if (!changesMade) { content.TextChanged -= OnTextChanged; } content.Text = blueprintChangedArgs.Blueprint; if (!changesMade) { content.TextChanged += OnTextChanged; } }
private void DesignerOnBlueprintChanged(object sender, BlueprintChangedArgs blueprintChangedArgs) { FileStatus.IsSaveNeeded = blueprintChangedArgs.ChangesMade; FileStatusChanged?.Invoke(this, new FileStatusChangedArgs(FileStatus)); }