Пример #1
0
        public ShellApp(TPadCore core, ITPadAppContainer container, ITPadAppController controller, TPadApplicationDescriptor descriptor)
        {
            Core = core;
              Container = container;
              Controller = controller;
              Profile = core.Profile;
              ShellDescriptor = descriptor;
              ShellDescriptor.Instance = this;

              NotificationDialogDescriptor = new TPadApplicationDescriptor()
              {
            AppType = typeof(NotificationDialog),
            AppUUID = Guid.NewGuid(),
            Icon = Properties.Resources.NotificationDialog
              };

              NotificationDialogDescriptor.Instance = new NotificationDialog(Core, NotificationDialogDescriptor.AppUUID);
              NotificationDialogDescriptor.Instance.Closed += application_Closed;
              NotificationDialogDescriptor.Instance.IsTopApp += application_IsTopApp;
              (NotificationDialogDescriptor.Instance as NotificationDialog).ClickedOK += new EventHandler(notification_ClickedOK);
              (NotificationDialogDescriptor.Instance as NotificationDialog).ClickedCancel += new EventHandler(notification_ClickedCancel);
              NotificationDialogDescriptor.Events.Add(TPadEvent.Flipping);

              Applications = new ObservableCollection<TPadApplicationDescriptor>();
              RunningApps = new ObservableCollection<TPadApplicationDescriptor>();
              InitializeComponent();

              core.GlyphsChanged += core_GlyphsChanged;
              core.Device.FlippingChanged += new FlippingChangedEventHandler(Device_FlippingChanged);
              core.Device.DeviceShaked += new EventHandler(Device_DeviceShaked);
              core.Device.HomePressed += new HomeButtonEventEventHandler(Device_HomePressed);
        }
Пример #2
0
        public MockApp(TPadProfile profile, ITPadAppContainer container, ITPadAppController controller)
        {
            Profile = profile;
              Container = container;
              Controller = controller;

              InitializeComponent();
        }
Пример #3
0
 public BrowserApp(TPadCore core, ITPadAppContainer container, ITPadAppController controller, Guid appUUID)
 {
     AppUUID = appUUID;
       Core = core;
       Container = container;
       Controller = controller;
       InitializeComponent();
 }
Пример #4
0
 public ITPadApp GetAppInstance(TPadApplicationDescriptor descriptor, ITPadAppContainer container, ITPadAppController controller, TPadCore core, TPadLauncherSettings settings)
 {
     InfCaptureApp capture = new InfCaptureApp(core, container, controller, descriptor.AppUUID);
       capture.Conditions = Conditions;
       capture.ExperimentalOrder = ExperimentalOrder;
       capture.Activate(settings.Context);
       return capture;
 }
Пример #5
0
        public SurfaceCaptureApp(TPadCore core, ITPadAppContainer container, ITPadAppController controller, Guid appUUID)
        {
            Core = core;
              Container = container;
              AppUUID = appUUID;

              InitializeComponent();
        }
Пример #6
0
        public RulerApp(TPadCore core, ITPadAppContainer container, ITPadAppController controller, Guid appUUID)
        {
            AppUUID = appUUID;
              Core = core;
              Container = container;
              Controller = controller;

              InitializeComponent();
              Distance = GetDistanceBetweenPoints(new Point(measureLine.X1, measureLine.Y1), new Point(measureLine.X2, measureLine.Y2));
        }
Пример #7
0
        public InfSeekingApp(TPadCore core, ITPadAppContainer container, ITPadAppController controller, Guid appUUID)
        {
            Core = core;
              Container = container;
              AppUUID = appUUID;
              InitializeComponent();

              notification = new NotificationDialog(Core, Guid.NewGuid());
              notification.ClickedOK += new EventHandler(notification_ClickedOK);
              notification.ClickedCancel += new EventHandler(notification_ClickedCancel);
        }
Пример #8
0
        public WhatUpApp(TPadCore core, ITPadAppContainer container, ITPadAppController controller, Guid appUUID)
        {
            AppUUID = appUUID;
              Core = core;
              Container = container;
              Controller = controller;

              TransportComponent.Instance.TransportListeners.Add(this);
              Messages = new ObservableCollection<WhatUpMessage>();

              InitializeComponent();
        }
Пример #9
0
        public ActiveReaderApp(TPadCore core, ITPadAppContainer container, ITPadAppController controller, Guid appUUID)
        {
            Core = core;
              AppUUID = appUUID;

              ActualPage = -1;
              ActualDocument = null;

              Container = container;
              Controller = controller;

              DbDocuments = new Dictionary<int, ActiveReaderDocument>();

              PropertyChanged += new PropertyChangedEventHandler(ActiveReaderApp_PropertyChanged);
              InitializeComponent();
        }
Пример #10
0
 public ITPadApp GetAppInstance(TPadApplicationDescriptor descriptor, ITPadAppContainer container, ITPadAppController controller, TPadCore core, TPadLauncherSettings settings)
 {
     InfSeekingApp seeker = new InfSeekingApp(core, container, controller, descriptor.AppUUID);
       seeker.Activate(settings.Context);
       return seeker;
 }
Пример #11
0
 public GraphExplorerApp(TPadCore core, ITPadAppContainer container, ITPadAppController controller, Guid appUUID)
 {
     AppUUID = appUUID;
       InitializeComponent();
 }
Пример #12
0
 public ITPadApp GetAppInstance(TPadApplicationDescriptor descriptor, ITPadAppContainer container, ITPadAppController controller, TPadCore core, TPadLauncherSettings settings)
 {
     InfProviderApp provider = new InfProviderApp(core, container, controller, descriptor);
       provider.Activate(settings.Context);
       return provider;
 }
Пример #13
0
 public ITPadApp GetAppInstance(TPadApplicationDescriptor descriptor, ITPadAppContainer container, ITPadAppController controller, TPadCore core, TPadLauncherSettings settings)
 {
     CalculatorApp calculator = new CalculatorApp(core, container, controller, descriptor.AppUUID);
       calculator.Activate(settings.Context);
       return calculator;
 }
Пример #14
0
 public ITPadApp GetAppInstance(TPadApplicationDescriptor descriptor, ITPadAppContainer container, ITPadAppController controller, TPadCore core, TPadLauncherSettings settings)
 {
     GraphExplorerApp graphExplorer = new GraphExplorerApp(core, container, controller, descriptor.AppUUID);
       return graphExplorer;
 }
Пример #15
0
        public void CoreStart(ITPadAppContainer appContainer, ITPadAppController appController)
        {
            //By default the system works with the simulated sources (camera, board)
              SimBoard.SimDevice = appController;
              SimCamera.CameraSource = appController;
              Camera.Controller = appController;
              Registration.Container = appContainer;
              Registration.Controller = appController;

              ConfigurePeripherals();

              logger.Info("Starting Up Services and Monitors");
              servicesContainer.StartServices();
              monitorsContainer.StartMonitors();
              logger.Info("Monitors Started");
        }
Пример #16
0
 public ITPadApp GetAppInstance(TPadApplicationDescriptor descriptor, ITPadAppContainer container, ITPadAppController controller, TPadCore core, TPadLauncherSettings settings)
 {
     QReaderApp reader = new QReaderApp(core, container, controller, descriptor.AppUUID);
       reader.Activate(settings.Context);
       return reader;
 }
Пример #17
0
 public ITPadApp GetAppInstance(TPadApplicationDescriptor descriptor, ITPadAppContainer container, ITPadAppController controller, TPadCore core, TPadLauncherSettings settings)
 {
     PhotoAlbumApp photoAlbum = new PhotoAlbumApp(core, container, controller, descriptor.AppUUID);
       photoAlbum.Activate(settings.Context);
       return photoAlbum;
 }
Пример #18
0
        public ITPadApp GetAppInstance(TPadApplicationDescriptor descriptor, ITPadAppContainer container, ITPadAppController controller, TPadCore core, TPadLauncherSettings settings)
        {
            ActiveReaderApp appInstance = new ActiveReaderApp(core, container, controller, descriptor.AppUUID);

              return appInstance;
        }