public EMailSendWindow(ImageShrinkerViewModel imageShrinkerViewModel) { InitializeComponent(); DataContext = this; Loaded += EMailSendWindow_Loaded; _imageShrinkerViewModel = imageShrinkerViewModel; _addressBookViewModel = new AddressBookViewModel(); Subject = string.Format("Bilder: {0}", imageShrinkerViewModel.ArchiveName); }
public AddressbookWindow(AddressBookViewModel addressBookViewModel) { InitializeComponent(); _addressBookViewModel = addressBookViewModel; DataContext = addressBookViewModel; }