//poziva pri otvaranju prozora AddOffice ali pri editovanju nekog office-a public AddOfficeViewModel(AddOffice addOfficeOpen, vwOffice OfficeEdit) { office = OfficeEdit; addOffice = addOfficeOpen; }
public AddOffice(vwOffice officeEdit) { InitializeComponent(); this.DataContext = new AddOfficeViewModel(this, officeEdit); }
//poziva pri otvaranju prozora AddOffice pri dodavanju novi h public AddOfficeViewModel(AddOffice addOfficeOpen) { office = new vwOffice(); addOffice = addOfficeOpen; }