Пример #1
0
 //poziva pri otvaranju prozora AddOffice ali pri editovanju nekog office-a
 public AddOfficeViewModel(AddOffice addOfficeOpen, vwOffice OfficeEdit)
 {
     office    = OfficeEdit;
     addOffice = addOfficeOpen;
 }
Пример #2
0
 public AddOffice(vwOffice officeEdit)
 {
     InitializeComponent();
     this.DataContext = new AddOfficeViewModel(this, officeEdit);
 }
Пример #3
0
 //poziva pri otvaranju prozora AddOffice pri dodavanju novi h
 public AddOfficeViewModel(AddOffice addOfficeOpen)
 {
     office    = new vwOffice();
     addOffice = addOfficeOpen;
 }