Esempio n. 1
0
 private void LoadContacts(string filename)
 {
     try
     {
         Contacts.ContactsDatabaseManager mgr = new ContactsDatabaseManager();
         mgr.LoadDatabaseFromFile(dataSet.Contacts, filename);
         UpdateSources();
         UpdateContactsFile(filename);
     }
     catch (Exception ex) { MessageBox.Show("" + ex); }
 }
Esempio n. 2
0
        void Login()
        {
            LoginForm form = new LoginForm();

            if (form.ShowDialog() != System.Windows.Forms.DialogResult.OK)
            {
                return;
            }
            ContactsDatabaseManager mgr = new ContactsDatabaseManager();

            mgr.LoadDatabaseFromContactList(dataSet.Contacts, form.Addresses);
            //Addresses = form.Addresses;

            UpdateSources();
        }
Esempio n. 3
0
 private void SaveContacts(string filename)
 {
     Contacts.ContactsDatabaseManager mgr = new ContactsDatabaseManager();
     mgr.SaveDatabaseToFile(dataSet.Contacts, filename);
 }
Esempio n. 4
0
        void Login()
        {
            LoginForm form = new LoginForm();
            if (form.ShowDialog() != System.Windows.Forms.DialogResult.OK)
                return;
            ContactsDatabaseManager mgr = new ContactsDatabaseManager();
            mgr.LoadDatabaseFromContactList(dataSet.Contacts, form.Addresses);
            //Addresses = form.Addresses;

            UpdateSources();
        }
Esempio n. 5
0
 private void LoadContacts(string filename)
 {
     try
     {
         Contacts.ContactsDatabaseManager mgr = new ContactsDatabaseManager();
         mgr.LoadDatabaseFromFile(dataSet.Contacts, filename);
         UpdateSources();
         UpdateContactsFile(filename);
     }
     catch (Exception ex) { MessageBox.Show("" + ex); }
 }
Esempio n. 6
0
 private void SaveContacts(string filename)
 {
     Contacts.ContactsDatabaseManager mgr = new ContactsDatabaseManager();
     mgr.SaveDatabaseToFile(dataSet.Contacts, filename);
 }