Esempio n. 1
0
        private void btnUpdateAddress_Click(object sender, RoutedEventArgs e)
        {
            PostAddressUIModel address = this.lvPostAddress.SelectedItem as PostAddressUIModel;

            if (address == null)
            {
                MyMessageBox.ShowInfo("请选择要修改的地址");
                return;
            }

            EditPostAddressWindow win = new EditPostAddressWindow(address);

            win.ShowDialog();
        }
Esempio n. 2
0
        private void btnAddNewAddress_Click(object sender, RoutedEventArgs e)
        {
            EditPostAddressWindow win = new EditPostAddressWindow();

            win.ShowDialog();
        }