项目结构调整

This commit is contained in:
艾竹
2023-04-16 20:11:40 +08:00
parent cbfbf96033
commit 81f91f3f35
2124 changed files with 218 additions and 5516 deletions

View File

@@ -0,0 +1,71 @@
using System.Windows;
using AIStudio.Wpf.DiagramDesigner;
namespace AIStudio.Wpf.Mind.Controls
{
/// <summary>
/// NodeDTSWindow.xaml 的交互逻辑
/// </summary>
public partial class NodeDTSWindow : Window
{
public NodeDTSWindow(string title, string content)
{
InitializeComponent();
var viewmodel = new NodeDTSWindowViewModel();
viewmodel.Title = title;
viewmodel.Content = content;
this.DataContext = viewmodel;
}
public string ContentString
{
get
{
return (this.DataContext as NodeDTSWindowViewModel).Content;
}
}
private void btnOK_Click(object sender, RoutedEventArgs e)
{
this.DialogResult = true;
this.Close();
}
private void btnCancel_Click(object sender, RoutedEventArgs e)
{
this.DialogResult = false;
this.Close();
}
}
public class NodeDTSWindowViewModel : BindableBase
{
private string _title;
public string Title
{
get
{
return _title;
}
set
{
SetProperty(ref _title, value);
}
}
private string _content;
public string Content
{
get
{
return _content;
}
set
{
SetProperty(ref _content, value);
}
}
}
}