|
@@ -40,11 +40,9 @@ namespace SAGA.MBI.WinView.Space
|
|
{
|
|
{
|
|
this.IsLoadHistroyData = false;
|
|
this.IsLoadHistroyData = false;
|
|
InitializeComponent();
|
|
InitializeComponent();
|
|
-
|
|
|
|
tv.ItemsSource = Items;
|
|
tv.ItemsSource = Items;
|
|
this.Loaded += MainWindow_Loaded;
|
|
this.Loaded += MainWindow_Loaded;
|
|
this.Closed += WinCreateSpaces_Closed;
|
|
this.Closed += WinCreateSpaces_Closed;
|
|
-
|
|
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
@@ -69,8 +67,6 @@ namespace SAGA.MBI.WinView.Space
|
|
private List<XYZ> m_columnsLocation;
|
|
private List<XYZ> m_columnsLocation;
|
|
|
|
|
|
public List<int> DeletedPolylines = new List<int>();//被删除的已存在的虚拟墙的Id
|
|
public List<int> DeletedPolylines = new List<int>();//被删除的已存在的虚拟墙的Id
|
|
- //建筑与楼层列表数据
|
|
|
|
- private ObservableCollection<TreeNodeItem> items;
|
|
|
|
//最大值X
|
|
//最大值X
|
|
double m_minX = double.MaxValue;
|
|
double m_minX = double.MaxValue;
|
|
double m_maxX = 0.0;
|
|
double m_maxX = 0.0;
|
|
@@ -88,7 +84,6 @@ namespace SAGA.MBI.WinView.Space
|
|
public ObservableCollection<TreeNodeItem> Items
|
|
public ObservableCollection<TreeNodeItem> Items
|
|
{
|
|
{
|
|
get => new ObservableCollection<TreeNodeItem>(DalModeFileManange.GetMissFileFloors(false));
|
|
get => new ObservableCollection<TreeNodeItem>(DalModeFileManange.GetMissFileFloors(false));
|
|
- set => items = value;
|
|
|
|
}
|
|
}
|
|
private void MainWindow_Loaded(object sender, RoutedEventArgs e)
|
|
private void MainWindow_Loaded(object sender, RoutedEventArgs e)
|
|
{
|
|
{
|
|
@@ -747,14 +742,12 @@ namespace SAGA.MBI.WinView.Space
|
|
MessageBox.Show("无法找到名称以-saga结尾的视图!");
|
|
MessageBox.Show("无法找到名称以-saga结尾的视图!");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
-
|
|
|
|
bool result = LoadData();
|
|
bool result = LoadData();
|
|
if (!result)
|
|
if (!result)
|
|
{
|
|
{
|
|
MessageBox.Show("模型文件没有找到相关数据!");
|
|
MessageBox.Show("模型文件没有找到相关数据!");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
-
|
|
|
|
ExecuteCmd.ExecuteCommand(() =>
|
|
ExecuteCmd.ExecuteCommand(() =>
|
|
{
|
|
{
|
|
context.CreateSpaces();
|
|
context.CreateSpaces();
|