Example #1
0
        /*
         * TOP BUTTONS
         */

        private void NewContactBtn_Click(object sender, RoutedEventArgs e)
        {
            ContactWindow newContactWindow = new ContactWindow();

            newContactWindow.ShowDialog();
            ParseContacts();
        }
Example #2
0
        /****
         * SIDEBAR Code
         *****/
        private void EditContactBtn_Click(object sender, RoutedEventArgs e)
        {
            var updateContact = new ContactWindow(SelectedContact)
            {
                Title = "Update contact information"
            };

            updateContact.ShowDialog();

            ParseContacts();
            CloseSideBar();
        }