This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
bpa
/
BPASmartClient
Watch
2
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
1
样式分支
fyf
2 years ago
parent
98003d7c43
commit
db97705e70
3 changed files
with
8 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-0
BPASmart.MenuLoad/App.xaml.cs
+1
-1
BeDesignerSCADA/MainWindow.xaml.cs
+2
-1
BeDesignerSCADA/ViewModel/MainViewModelNew.cs
+ 5
- 0
BPASmart.MenuLoad/App.xaml.cs
View File
@@ -52,6 +52,11 @@ namespace BPASmart.MenuLoad
run.Show();
isShow = true;
}
else
{
MessageBox.Show("未布局应用程序!");
System.Windows.Application.Current.Shutdown(0);
}
});
}
+ 1
- 1
BeDesignerSCADA/MainWindow.xaml.cs
View File
@@ -8,7 +8,7 @@ namespace BeDesignerSCADA
/// </summary>
public partial class MainWindow : Window
{
CanvasPanelNew mainCanvas = new CanvasPanelNew("");
CanvasPanelNew mainCanvas = new CanvasPanelNew(
$
"
{System.AppDomain.CurrentDomain.BaseDirectory}Layouts\\可视化界面菜单布局.yf
");
public MainWindow()
{
InitializeComponent();
+ 2
- 1
BeDesignerSCADA/ViewModel/MainViewModelNew.cs
View File
@@ -625,10 +625,11 @@ namespace BeDesignerSCADA.ViewModel
try
{
BinaryFile.SaveBinary(MenuModel, path);
MessageBox.Show("保存成功!");
}
catch (Exception ex)
{
MessageBox.Show("保存失败!原因:" +ex.Message);
}
}
/// <summary>
Write
Preview
Loading…
Cancel
Save