示例#1
0
        public async void LoadNetworkAsync(string fileName)
        {
            if (string.IsNullOrEmpty(fileName))
            {
                return;
            }

            var data = await _fileService.ReadFromFileAsync <NetworkDataModel>(fileName, new NetworkDataModelReadStrategy());

            var networkModel = new NetworkModel(data);

            DefaultStorage.AddInstance(networkModel);
        }