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