private void ReSize() { if (Controls.Contains((UserControl)_loginPresenter.GetView())) { UserControl loginView = (UserControl)_loginPresenter.GetView(); loginView.Left = (this.ClientSize.Width - loginView.Width) / 2; loginView.Top = (this.ClientSize.Height - loginView.Height) / 2; } if (_mainPresenter != null && Controls.Contains((UserControl)_mainPresenter.GetView())) { UserControl mainView = (UserControl)_mainPresenter.GetView(); mainView.Width = this.ClientSize.Width; mainView.Height = this.ClientSize.Height; } if (_videoPresenter != null && Controls.Contains((UserControl)_videoPresenter.GetView())) { UserControl mainView = (UserControl)_videoPresenter.GetView(); mainView.Width = this.ClientSize.Width; mainView.Height = this.ClientSize.Height; } }
private void ConnectionCompleted() { _mainPresenter = new MainPresenter(new MainControl(), ShowVideoControl); LoadMainView(_mainPresenter.GetView()); _mainPresenter.Run(); }