Пример #1
0
        private void btnEdit_Click(object sender, RoutedEventArgs e)
        {
            Storyboard sb;
            if (_isExpanded != true)
            {
                sb = this.FindResource("gridin") as Storyboard;
                sb.Begin(this);
                _isExpanded = !_isExpanded;
            }

            var selectedAccount = dcCustomerAccountsList.SelectedItem as CustomerAccountsView;

            if (selectedAccount != null)
            {
                CustomerAccountsForm.AccountNumber = selectedAccount.AccountNumber;

                var page = new CustomerAccountsForm();
                navigation.Navigate(page);
            }
            else
            {
                NullMessage();
            }
        }
Пример #2
0
        private void btnAdd_Click(object sender, RoutedEventArgs e)
        {
            CustomerAccountsForm.AccountNumber = null;
              
            Storyboard sb;
            if (_isExpanded != true)
            {
                sb = this.FindResource("gridin") as Storyboard;
                sb.Begin(this);
                _isExpanded = !_isExpanded;
            }

            var page = new CustomerAccountsForm();
            navigation.Navigate(page);
        }