private void editCompanyName_Click(object sender, RoutedEventArgs e)
        {
            UtilityCompanyInput.GetBindingExpression(TextBox.TextProperty).UpdateTarget();
            CompanyUtilityBillTypeSelection.GetBindingExpression(ComboBox.SelectedValueProperty).UpdateTarget();

            this.utilityFormPanel.Visibility = this.addBillTypePanel.Visibility = Visibility.Collapsed;
            this.cancelButton.Visibility     = this.addCompanyNamePanel.Visibility = Visibility.Visible;
            companyNameHeader.Text           = "Edit Company Name";
            this.AddSaveUtilityBtn.Text      = "Update";
            ErrorNotification.Visibility     = Visibility.Collapsed;
        }
        private bool addCompany()
        {
            if (UtilityCompanyInput.NoOfErrorsOnScreen == 0 &&
                CompanyUtilityBillTypeSelection.SelectedIndex != -1)
            {
                UtilityCompanyInput.GetBindingExpression(TextBox.TextProperty).UpdateSource();
                CompanyUtilityBillTypeSelection.GetBindingExpression(ComboBox.SelectedValueProperty).UpdateSource();

                this.AddSaveUtilityBtn.SetBinding(Button.CommandProperty, new Binding("AddUtilityCompanyCommand"));
                ShowUtilityFormPanel();
                return(true);
            }
            return(false);
        }