Beispiel #1
0
        public MainWindow()
        {
            InitializeComponent();

            try
            {
                _storage = new SoftInfoSerializer().Load(StoragePath);
            }
            catch (Exception ex)
            {
                _storage = new SoftInfoStorage();
            }
            foreach (var softInfo in _storage)
            {
                ViewSoftInfo(softInfo);
            }
        }
        public MainWindow()
        {
            InitializeComponent();

            try
            {
                _storage = new SoftInfoSerializer().Load(StoragePath);
            }
            catch (Exception ex)
            {
                _storage = new SoftInfoStorage();
            }
            foreach (var softInfo in _storage)
            {
                ViewSoftInfo(softInfo);
            }
        }