public static void Main() { Database.SetInitializer(new CreateDatabaseIfNotExists<PhotoContext>()); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); //var repository = new EFPhotoRepository(); var repository = new XMLPhotoRepository(); var newTripFrom = new NewTripForm(); var process = new MainProcess(repository, newTripFrom); Application.Run(new MainWindow(process)); }
public MainProcess(IPhotoRepository photoRepository, NewTripForm newTripFrom) { _photoRepository = photoRepository; _newTripFrom = newTripFrom; }