删除几个非mit的引用

This commit is contained in:
艾竹
2024-02-20 22:14:30 +08:00
parent a0439f6b88
commit 2a97a90ac8
8 changed files with 98 additions and 400 deletions

View File

@@ -10,10 +10,8 @@ using System.Windows.Input;
using System.Windows.Media;
using AIStudio.Wpf.DiagramDesigner.Geometrys;
using AIStudio.Wpf.DiagramDesigner.Helpers;
using AIStudio.Wpf.DiagramDesigner.Layout;
using AIStudio.Wpf.DiagramDesigner.Models;
using Newtonsoft.Json;
using static System.Net.Mime.MediaTypeNames;
namespace AIStudio.Wpf.DiagramDesigner
{
@@ -680,17 +678,7 @@ namespace AIStudio.Wpf.DiagramDesigner
{
return this._fitHeightCommand ?? (this._fitHeightCommand = new SimpleCommand(ExecuteEnable, ExecuteFitHeightCommand));
}
}
private ICommand _autoLayoutCommand;
public ICommand AutoLayoutCommand
{
get
{
return this._autoLayoutCommand ?? (this._autoLayoutCommand = new SimpleCommand(ExecuteEnable, ExecuteAutoLayoutCommand));
}
}
}
private ICommand _groupCommand;
public ICommand GroupCommand
@@ -2462,12 +2450,6 @@ namespace AIStudio.Wpf.DiagramDesigner
FitViewModel = new FitViewModel() { BoundingRect = DiagramViewModelHelper.GetBoundingRectangle(Items.OfType<DesignerItemViewModelBase>()), FitMode = FitMode.FitHeight };
}
}
private void ExecuteAutoLayoutCommand(object parameter)
{
ForceDirectedLayouter layouter = new ForceDirectedLayouter();
layouter.Layout(new Configuration { Network = this }, 10000);
}
#endregion
#region