Beispiel #1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            List <LogInfo> lis = (from LogInfo a in cloginfos.SelectedItems select a).ToList();

            foreach (var l in lis)
            {
                AvailableLogs.Remove(l);
            }
        }
Beispiel #2
0
        public async Task LogAll()
        {
            saveLogData();
            Logger         lgr     = new Logger();
            List <LogInfo> loglist = await lgr.LogGeocachesAsync(AvailableLogs.ToList());

            foreach (var l in loglist)
            {
                AvailableLogs.Remove(l);
            }
        }
Beispiel #3
0
        public async Task LogSelected()
        {
            if (cloginfos.SelectedItems.Count > 0)
            {
                saveLogData();
                Logger         lgr     = new Logger();
                List <LogInfo> loglist = await lgr.LogGeocachesAsync((from LogInfo a in cloginfos.SelectedItems select a).ToList());

                foreach (var l in loglist)
                {
                    AvailableLogs.Remove(l);
                }
            }
        }