public MainWindow() { InitializeComponent(); service = new MainService(); time= new Timer(); time.Interval = 3 * 1000; time.Elapsed += Update; time.Start(); }
// => Flow for the program // Run program //TODO ===DB=== // Checks if db exists // if it doesn't create db and tables // if it does, check if all tables are there create if doesn't exist //TODO ==Computer Management== // Tries to get the computer from the db, if it doesn't exist pulls the information from Computer and saves it //TODO ==Account Management== // Tries to get the accounts from the Db, if no entries exist, Pulls hte information from computer and saves it //TODO ==History Management== // Tries to get the histories from the db, if no entries exist, pulls from ie and saves it to db. //TODO ==Process Management== // Tries to get the proceses from the db, if no entries exist, pulls from computer and saves it public static void MainServicer() { /*if (File.Exists("settings.sqlite")) { File.Delete("settings.sqlite"); }*/ MainService s = new MainService(); //var user = s.DbManager.GetFullUser(); //var email = user.Email; }
public Options(MainService service) { this.service = service; InitializeComponent(); }
public static void RunGUIProgram() { MainService s = new MainService(); }