예제 #1
0
        private void btnManageContacts_Click(object sender, EventArgs e)
        {
            ContactPortalScreen cps = new ContactPortalScreen(companyId);

            cps.MdiParent = this.MdiParent;
            cps.Show();
            this.Close();
        }
예제 #2
0
        private void btnContacts_Click(object sender, EventArgs e)
        {
            //editee = Globals.companies[companyId];
            //ContactPortalScreen cps = new ContactPortalScreen(editee);
            ContactPortalScreen cps = new ContactPortalScreen(companyId);

            cps.MdiParent = this.MdiParent;
            cps.Show();
            this.Close();
        }
        private void btnDeleteContact_Click(object sender, EventArgs e)
        {
            //Globals.contacts.RemoveAt(contactId);
            CompanyContact.deleteCompanyContact(contactId);
            MessageBox.Show("Contact Deleted");

            ContactPortalScreen cp = new ContactPortalScreen(owningCompany);

            cp.MdiParent = this.MdiParent;
            cp.Show();
            this.Close();
        }