static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); var weatherView = new WeatherView(); var weatherPresenter = new WeatherPresenter(); weatherView.Presenter = weatherPresenter; weatherPresenter.View = weatherView; Application.Run(weatherView); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); var presenter = new WeatherPresenter(); FormWeatherApp view = new FormWeatherApp(presenter); WeatherPresenter weatherPresenter = new WeatherPresenter(view); weatherPresenter.StartApplication(); //Application.Run(new FormWeatherApp()); }
public FormWeatherApp(WeatherPresenter weatherPresenter) { InitializeComponent(); WeatherPresenter = weatherPresenter; //WeatherPresenter weatherPresenter = new WeatherPresenter(); }