Ejemplo n.º 1
0
 public MainWindow()
 {
     InitializeComponent();
     service = new MainService();
     time= new Timer();
     time.Interval = 3 * 1000;
     time.Elapsed += Update;
     time.Start();
 }
Ejemplo n.º 2
0
        // => 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;
        }
Ejemplo n.º 3
0
 public Options(MainService service)
 {
     this.service = service;
     InitializeComponent();
 }
Ejemplo n.º 4
0
 public static void RunGUIProgram()
 {
     MainService s = new MainService();
 }