public MainViewPresenter(IMainView view) { _view = view; SetAllEvents(); _petrols = JsonFileHelper.JSONDeSerialization <Petrol>("Petrols"); _view.PetrolComboBox.DisplayMember = "Name"; _view.PetrolComboBox.DataSource = _petrols; _view.PriceTextBox.Text = _petrols[0].InitialPrice.ToString(); _view.PictureToolTip.SetToolTip(_view.CarPictureBox, "Man refuelling his car."); _petrolOperationContext = new PetrolOperationContext(); SetListBoxDataSource(); try { if (!_petrolOperationContext.PetrolPaymentOperations.Any()) { _view.InfoLabel.Visible = true; } } catch (Exception) { } }