Ejemplo n.º 1
0
        public MainWindow()
        {
            InitializeComponent();

            Closing += (sender, e) => Save();

            DataContext = this;

            Closing += MainWindow_Closing;

            if (!File.Exists(configFileName))
            {
                var cfg = new BatchInspectorConfig {
                    InspectionSchemaFileName = "InspectionSchema.xaml"
                };
                for (int i = 0; i < 10; i++)
                {
                    cfg.Directories.Add(new DirectoryViewModel());
                }
                cfg.SerializeToXamlFile(configFileName);
            }

            Load();

            _inspectionController = new InspectionController();
        }
Ejemplo n.º 2
0
 public static InspectInfo GetInspectionInfo(this IInspectionController inspectionController)
 {
     return(inspectionController.InspectionResult.GetInspectionInfo(inspectionController.Coordinate));
 }