static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); // create DB table if not created PinsRepository pinRepo = new PinsRepository(); if (!pinRepo.checkIfTableExists("pins")) { pinRepo.createTable(); } //else //{ // // for testing // pinRepo.dropTable(); // pinRepo.createTable(); //} Application.Run(new MainForm(pinRepo)); }
public MainForm(PinsRepository pinRepo) { this._pinRepo = pinRepo; InitializeComponent(); }