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(); }
private void btnAddNewAddress_Click(object sender, RoutedEventArgs e) { EditPostAddressWindow win = new EditPostAddressWindow(); win.ShowDialog(); }