Пример #1
0
        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;
            }
        }
Пример #2
0
 private void DesignerOnBlueprintChanged(object sender, BlueprintChangedArgs blueprintChangedArgs)
 {
     FileStatus.IsSaveNeeded = blueprintChangedArgs.ChangesMade;
     FileStatusChanged?.Invoke(this, new FileStatusChangedArgs(FileStatus));
 }