Exemplo n.º 1
0
        public async void SaveRoutesInFile(string text)
        {
            string file = Routes.Aggregate <Route, string>(null, (current, route) => current + (route.FlightLeg + Environment.NewLine));

            if (text.Length == 0 || text == "" || file.Length == 0 || file == "")
            {
                return;
            }
            await RemoteSave.SaveContentToFtp(file, text, RemoteSave.State.ROUTE);

            _viewModel.Routes = null;
            FileList          = model.GetFiles();
        }