fyf 2 lat temu
rodzic
commit
db97705e70
3 zmienionych plików z 8 dodań i 2 usunięć
  1. +5
    -0
      BPASmart.MenuLoad/App.xaml.cs
  2. +1
    -1
      BeDesignerSCADA/MainWindow.xaml.cs
  3. +2
    -1
      BeDesignerSCADA/ViewModel/MainViewModelNew.cs

+ 5
- 0
BPASmart.MenuLoad/App.xaml.cs Wyświetl plik

@@ -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 Wyświetl plik

@@ -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 Wyświetl plik

@@ -625,10 +625,11 @@ namespace BeDesignerSCADA.ViewModel
try
{
BinaryFile.SaveBinary(MenuModel, path);
MessageBox.Show("保存成功!");
}
catch (Exception ex)
{
MessageBox.Show("保存失败!原因:" +ex.Message);
}
}
/// <summary>


Ładowanie…
Anuluj
Zapisz