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(); })); } }
private void btnServerSetup_Click(object sender, EventArgs e) { ConnectionDialog.ShowDialog(); }