public ExportPresentationSchemaFilesCommand(string commandName,
     IPresentationClient presentationClient, string directory)
     : base(commandName)
 {
     _presentationClient = presentationClient;
     _exportPresentationCRUD = _presentationClient.GetPresentationSchemaCrud();
 }
Exemplo n.º 2
0
 public override Control CreateControlForDevice(IEventLogging logging, Device device, Control parent, IPlayerCommand playerProvider, IPresentationClient client)
 {
     LightPlayerControl control = new LightPlayerControl(device, playerProvider, logging);
     control.Parent = parent;
     parent.Controls.Add(control);
     control.CreateControl();
     return control;
 }
 public ExportGlobalSourcesCommand(string commandName, IPresentationClient remotePresentationService,
     IPresentationClient standalonePresentationClient)
     : base(commandName)
 {
     _remotePresentationClient = remotePresentationService;
     _standalonePresentationClient = standalonePresentationClient;
     _standaloneClientResourceCRUD = _standalonePresentationClient.GetResourceCrud();
 }
Exemplo n.º 4
0
 public ExportSlide(IPresentationClient remotePresentationWorker,
     IPresentationClient standalonePresentationWorker,
     IExportSlideController exportSlideController)
 {
     _remotePresentationWorker = remotePresentationWorker;
     _standalonePresentationWorker = standalonePresentationWorker;
     _exportSlideController = exportSlideController;
 }
Exemplo n.º 5
0
 public override System.Windows.Forms.Control CreateControlForSource(IEventLogging logging, Source source, Control parent, IPlayerCommand playerCommand, IPresentationClient client)
 {
     DVDPlayerControl2 control = new DVDPlayerControl2(source, playerCommand, logging, client);
     control.Parent = parent;
     parent.Controls.Add(control);
     control.CreateControl();
     return control;
 }
Exemplo n.º 6
0
 public override Control CreateControlForSource(IEventLogging logging, Source source, Control parent, IPlayerCommand playerCommand, IPresentationClient client)
 {
     VDCTerminalControl control = new VDCTerminalControl(source, playerCommand, logging, client);
     control.Parent = parent;
     parent.Controls.Add(control);
     control.CreateControl();
     return control;
 }
Exemplo n.º 7
0
 public override System.Windows.Forms.Control CreateControlForSource(IEventLogging logging, TechnicalServices.Persistence.SystemPersistence.Presentation.Source source, System.Windows.Forms.Control parent, IPlayerCommand playerCommand, IPresentationClient client)
 {
     PlayerController controller = new PlayerController(source, playerCommand);
     VNCPlayerControl control = new VNCPlayerControl(controller);
     control.Parent = parent;
     parent.Controls.Add(control);
     control.CreateControl();
     return control;
 }
Exemplo n.º 8
0
 public override Control CreateControlForSource(IEventLogging logging, Source source, Control parent, IPlayerCommand playerProvider, IPresentationClient client)
 {
     PlayerController controller = new PlayerController(source, playerProvider);
     PlayerControl control = new PlayerControl(controller);
     control.Parent = parent;
     parent.Controls.Add(control);
     control.CreateControl();
     return control;
 }
Exemplo n.º 9
0
        public VDCTerminalControl(Source source, IPlayerCommand playerCommand, IEventLogging logging, IPresentationClient client)
            : this()
        {
            CollapsedRGBOption = true;
            cbaAbonents.DisplayMember = "Name";
            cbaAbonents.ValueMember = "Number1";

            _controller = new PlayerController(client, source, this, playerCommand, logging);
            InitializeController(_controller);
            SetControlPlayerTimerEnable(true, 1000);
        }
Exemplo n.º 10
0
 public ExportPresentation(IClientConfiguration config,
     IPresentationClient remotePresentationClient,
     IPresentationClient standalonePresentationClient,
     IExportPresentationController exportPresentationController)
 {
     _config = config;
     //_standaloneSourceDAL = standaloneSourceDAL;
     //_standaloneDeviceResourceEx = standaloneDeviceResourceEx;
     _standalonePresentationClient = standalonePresentationClient;
     _remotePresentationClient = remotePresentationClient;
     _exportPresentationController = exportPresentationController;
 }
Exemplo n.º 11
0
 public ExportConfiguration(IClientConfiguration config,
     IPresentationClient standalonePresentationClient, IPresentationClient remotePresentationClient,
     Action<string> successMessageDelegate, Action<string> errorMessageDelegate,
     Func<string, string, string> getFileNameForConfigurationDelegate)
 {
     _config = config;
     _standalonePresentationClient = standalonePresentationClient;
     _remotePresentationClient = remotePresentationClient;
     _successMessageDelegate = successMessageDelegate;
     _errorMessageDelegate = errorMessageDelegate;
     _getFileNameForConfigurationDelegate = getFileNameForConfigurationDelegate;
 }
Exemplo n.º 12
0
 public override Control CreateControlForSource(IEventLogging logging, Source source, Control parent, IPlayerCommand playerProvider, IPresentationClient client)
 {
     ArcGISMapController controller = new ArcGISMapController(source, playerProvider);
     //ChartManageControl control = new ChartManageControl(controller);
     //control.Parent = parent;
     //parent.Controls.Add(control);
     //control.CreateControl();
     MapManageControl control = new MapManageControl(controller);
     control.Parent = parent;
     parent.Controls.Add(control);
     control.CreateControl();
     return control;
 }
Exemplo n.º 13
0
 public DVDPlayerControl2(Source source, IPlayerCommand playerCommand, IEventLogging logging, IPresentationClient client)
     : this()
 {
     InitializeController(new PlayerController(client, source, this, playerCommand, logging));
     switch (_DVDType)
     {
         case InterfaceTypeEnum.IR:
             SetControlPlayerTimerEnable(false, 1);
             break;
         case InterfaceTypeEnum.RS232:
             SetControlPlayerTimerEnable(true, 1000);
             break;
     }
 }
Exemplo n.º 14
0
 public ExportPresentationCommand(string commandName, PresentationInfo presentationInfo,
     string newPresentationName,
     IPresentationClient remotePresentationClient, IPresentationClient standalonePresentationClient,
     Func<string, bool> delegateForDeletedPresentation)
     : base(commandName)
 {
     _remotePresentationClient = remotePresentationClient;
     _standalonePresentationClient = standalonePresentationClient;
     _standaloneClientResourceCRUD = _standalonePresentationClient.GetResourceCrud();
     _clientPresentationCRUD = _remotePresentationClient.GetPresentationExportCrud();
     _presentationInfo = presentationInfo;
     _newPresentationName = newPresentationName;
     //_presentationService = presentationService;
     _delegateForDeletedPresentation = delegateForDeletedPresentation;
     //_clientPresentationCRUD = new ClientSidePresentationTransfer(directory, presentationClient);
     //_clientSourceStandalone = new ClientSideStandAloneSourceTransfer(standaloneResourceEx);
 }
Exemplo n.º 15
0
        public void Done()
        {
            if (IsStandAlone) return;
            UserIdentity identity = Thread.CurrentPrincipal as UserIdentity;
            if (_loginServiceClient != null)
            {
                try
                {
                    if (identity != null)
                    {
                        loginService.UnSubscribe(identity);
                        loginService.Logoff(identity);
                    }
                }
                catch (Exception ex)
                {
                    _configuration.EventLog.WriteError(String.Format("DesignerClient.Done(): {0}", ex));
                }
                finally
                {
                    _loginServiceClient.Dispose();
                    _loginServiceClient = null;
                }
            }

            if (_remotePresentationClient != null)
            {
                try
                {
                    if (identity != null)
                    {
                        PresentationWorker.UnSubscribeForGlobalMonitoring();
                    }
                }
                catch (Exception ex)
                {
                    _configuration.EventLog.WriteError(String.Format("DesignerClient.Done(): {0}", ex));
                }
                finally
                {
                    _remotePresentationClient.Dispose();
                    _remotePresentationClient = null;
                }
            }
        }
Exemplo n.º 16
0
 public ImportSlide(IPresentationClient standalonePresentationWorker,
     IImportSlideController importSlideController)
 {
     _standalonePresentationWorker = standalonePresentationWorker;
     _importSlideController = importSlideController;
 }
 public VideoCameraPlayerCommonControl(Source source, IPlayerCommand playerCommand, IEventLogging logging, IPresentationClient client)
     : this()
 {
     InitializeController(new VideoCameraPlayerCommonController(client, source, this, playerCommand, logging));
     SetControlPlayerTimerEnable(true, 1000);
 }
Exemplo n.º 18
0
 public virtual Control CreateControlForDisplay(IEventLogging logging, Display display, Control parent, IPlayerCommand playerProvider, IPresentationClient client)
 {
     return null;
 }
Exemplo n.º 19
0
 public virtual Control CreateControlForSource(IEventLogging logging, Source source, Control parent, IPlayerCommand playerProvider, IPresentationClient client)
 {
     return null;
 }