Example #1
0
        void AddVCards(string[] paths)
        {
            List <VCard> vc = vcards.ToList();

            foreach (string card in paths)
            {
                vc.AddRange(VCard.ReadVCards(File.ReadAllLines(card)));
            }

            vcards = vc.ToArray();
            RefreshVCards();
        }
Example #2
0
        void LoadVCard(string path)
        {
            if (!changesSaved)
            {
                if (ChangesMade() == DialogResult.Yes)
                {
                    Save("2.1");
                }
            }

            openedPath = path;
            vcards     = VCard.ReadVCards(File.ReadAllLines(path));
            RefreshVCards();
            changesSaved = true;
        }