//poziva pri otvaranju prozora AddOffice pri dodavanju novi h public AddArtistViewModel(AddArtist addArtistOpen) { artist = new vwArtist(); addArtist = addArtistOpen; }
//poziva pri otvaranju prozora AddOffice ali pri editovanju nekog office-a public AddArtistViewModel(AddArtist addArtistOpen, vwArtist ArtistEdit) { artist = ArtistEdit; addArtist = addArtistOpen; }
public AddArtist(vwArtist artistEdit) { InitializeComponent(); this.DataContext = new AddArtistViewModel(this, artistEdit); }