void BrowseFile() { OpenFileDialog d = new OpenFileDialog(); if (d.ShowDialog() == true) { var path = d.FileName; IceCreamModel.Image = FileManager.AddIceCreamImage(path); } }