Beispiel #1
0
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            UoW         = new UnitOfWork();
            Network     = new RESTManager();
            TextManager = new TextManager();

            // Override point for customization after application launch.
            // If not required for your application you can safely delete this method

            return(true);
        }
Beispiel #2
0
        public Program()
        {
            var logger       = new Logger();
            var settings     = new SettingsStore();
            var uiMap        = new UIMap(settings, new WindowFinder(), new OCRReader(new OCRSplitter()), new InputDevice(), new Screen(new ScreenDataRetriever(new Sleeper(), new ScreenshotCapturer())));
            var messages     = new MessageManager();
            var executor     = new QueryExecutor();
            var database     = new AuroraDatabase(executor);
            var eventManager = new EventManager(uiMap, settings, messages, database, executor);

            new Thread(new CommandFlowManager(settings, uiMap, messages, eventManager, logger).Begin).Start();
            RESTManager.Begin();
        }
Beispiel #3
0
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            // Override point for customization after application launch.
            // If not required for your application you can safely delete this method

            UoW     = new UnitOfWork();
            Network = new RESTManager();

            var settings = NSUserDefaults.StandardUserDefaults;

            //Get countries
            Countries = GetCountriesFromSettings(settings);

            //Get Last Sync Date
            //LastSyncDate = GetLastSyncDate(settings);
            LastSyncDate = new DateTime(1900, 12, 12);

            //Window = new UIWindow(UIScreen.MainScreen.Bounds);
            //Window.MakeKeyAndVisible();

            //Check first launch
            //if (LastSyncDate.CompareTo(new DateTime(1900, 12, 12)) == 0)
            //{
            //	InitAppAsync(settings);
            //}
            //else
            //{
            //	UpdateAppAsync(settings);
            //}

            Window.TintColor = UIColor.FromRGB((float)(58 / 255.0f), (float)(65 / 255.0f), (float)(85 / 255.0));

            UILabel.Appearance.TextColor            = UIColor.Clear.FromHex(Purple.hex);
            UISwitch.Appearance.TintColor           = UIColor.Clear.FromHex(Brown.hex);
            UISwitch.Appearance.OnTintColor         = UIColor.Clear.FromHex(Brown.hex);
            UISegmentedControl.Appearance.TintColor = UIColor.Clear.FromHex(Brown.hex);
            //UITableViewCell.Appearance.BackgroundColor = UIColor.Clear.FromHex(LightGreen.hex);

            return(true);
        }
Beispiel #4
0
 public RestApiClient(RESTManager rest) : base(rest: rest)
 {
 }
Beispiel #5
0
 public RequestQueueHandler(RESTManager rest) => RestManager = rest;
Beispiel #6
0
 public ARLEMDecipher(string url)
 {
     ServerUrl  = url;
     ApiManager = new RESTManager(url);
 }