/// <summary> /// //Disables FromBox, ToBox and OK button till requirements are fullfilled. /// //Creates MainWindow instance, gets Presenter instance and CityList /// </summary> public MainWindow() { InitializeComponent(); FromBox.Enabled = ToBox.Enabled = OKButton.Enabled = false; _presenter = Presenter.Presenter.Getinstance(); _presenter.Main = this; _presenter.GetCityList(); }
/// <summary> /// //Instance Accessor of the Presenter class /// </summary> public static Presenter Getinstance() { if (_instance == null) { _instance = new Presenter(); _instance.Overview = new View.Overview(); } return _instance; }