Exemplo n.º 1
0
 private void bg_DoWork(object sender, DoWorkEventArgs e)
 {
     try
     {
         Models.DataSource.ConnectionString = Settings.Default.ConnectionString;
         Console.Write(new UnitOfWork().ObligationsRepo.Fetch().Count());
     }
     catch (Exception exception)
     {
         Invoke(new Action(() => { ConnectionDialog.ShowDialog(); }));
     }
 }
Exemplo n.º 2
0
 private void btnServerSetup_Click(object sender, EventArgs e)
 {
     ConnectionDialog.ShowDialog();
 }