public void LoadData(int id, UserDTO userDTO, AccountDTO accountDTO, IMainClient mainClient) { this.mainWindow.Dispatcher.Invoke(() => { this.mainWindow.WindowState = WindowState.Normal; this.mainWindow.WindowStartupLocation = WindowStartupLocation.CenterScreen; }); this.SetElement(mainWindow, (UIElement)viewCreator.CreateDataPageView(id, userDTO, accountDTO, mainClient)); }