public MainWindow(PresenterCommon.PresenterResources presenterResources, List <MainWindow> windows) { InitializeComponent(); _presenterResources = presenterResources; _windows = windows; this.ShowInTaskbar = false; CommonConstruction(); }
public MainWindow() { InitializeComponent(); _presenterResources = new PresenterCommon.PresenterResources(); _presenter = new PresenterCommon.MainWindowPresenter(); _presenter.CreateView += _presenter_CreateView; _windows = new List <MainWindow>(); mTrello = new TrelloHandler(); foreach (var screen in System.Windows.Forms.Screen.AllScreens) { MainWindow window; if (screen.Primary) { window = this; } else { window = new MainWindow(_presenterResources, _windows); } _windows.Add(window); window.Show(); window.Top = screen.WorkingArea.Top; window.Left = screen.WorkingArea.Left; window.WindowState = System.Windows.WindowState.Maximized; window.Topmost = true; window.ToDoTextBox.Text = mTrello.ToDo; break; } CommonConstruction(); _presenter.ParseConfiguration(_presenterResources.Configuration, _presenterResources.PresenterFactory); }