using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using BPA.Helper;
using BPASmart.Model;
namespace BPASmart.PageLoad
{
///
/// Interaction logic for MainWindow.xaml
///
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
this.Loaded += MainWindow_Loaded;
}
List frameworkElements = new List();
private void MainWindow_Loaded(object sender, RoutedEventArgs e)
{
Serialization.Read();
if (!string.IsNullOrEmpty(Serialization.Data.StartPageName))
{
string path = $"{AppDomain.CurrentDomain.BaseDirectory}{FileConfigModel.PageDirName}\\{Serialization.Data.StartPageName}.lay";
if (File.Exists(path))
{
runCanvas.LoadingData(path);
}
}
}
}
}