public NewOfficeModal() { InitializeComponent(); DataContext = new OfficeViewControl(); officeControl = new OfficeControl(); }
public OfficeRegisterView() { InitializeComponent(); officeControl = new OfficeControl(); officeViewControl = new OfficeViewControl(); DataContext = officeViewControl; }