/// <summary>
 /// Used for handling DoubleClick event,
 /// Which will open a new instance of AddressWindow to edit the double clicked address.
 /// </summary>
 private void lvAddresses_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     if (lvAddresses.SelectedItem != null)
     {
         var myWin = new AddressWindow((BitcoinAddress)lvAddresses.SelectedItem);
         myWin.Owner = this;
         myWin.ShowDialog();
         if (myWin.IsChanged)
         {
             lvAddresses.Items.Refresh();
             btnSave.IsEnabled = true;
         }
     }
 }
        private void NewAddress_Click(object sender, RoutedEventArgs e)
        {
            var myWin = new AddressWindow();

            myWin.Owner = this;
            myWin.ShowDialog();
            if (myWin.IsChanged)
            {
                WalletData.BitAddList.Add(myWin.BitcoinAddress);
                lvAddresses.Items.Refresh();
                btnSave.IsEnabled       = true;
                headerSave.IsEnabled    = true;
                btnGetBalance.IsEnabled = true;
            }
        }