Example #1
0
        private void ExportToVCF()
        {
            List<ContactDB> exportList = GetCheckedContactList();
            if (exportList.Count() == 0)
            {
                MessageBox.Show(ContactManagentLibrary.Properties.Resources.choose_contact_to_export);
                return;
            }
            if (folderBrowserDialog1.ShowDialog() == DialogResult.OK)
            {
                string path = folderBrowserDialog1.SelectedPath;
                FileImExportController fileImEx = new FileImExportController();
                int res = fileImEx.ExportToVCFFile(exportList, path);

                if (res > 0)
                {
                    MessageBox.Show(ContactManagentLibrary.Properties.Resources.export_success);
                }
                else
                {
                    MessageBox.Show(ContactManagentLibrary.Properties.Resources.export_error);
                }
            }
        }