private void OnStopRecording1(object sender, EventArgs e)
 {
     if (_selectItem1 != null)
     {
         EnvironmentManager.Instance.SendMessage(
             new VideoOS.Platform.Messaging.Message(MessageId.Control.StopRecordingCommand), _selectItem1.FQID);
     }
     LogResourceHandler.LogStop(_selectItem1);
 }
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            VideoOS.Platform.SDK.Environment.Initialize();
            VideoOS.Platform.SDK.Log.Environment.Initialize();
            VideoOS.Platform.SDK.UI.Environment.Initialize();

            LogResourceHandler.RegisterMyMessages();

            DialogLoginForm loginForm = new DialogLoginForm(SetLoginResult, IntegrationId, IntegrationName, Version, ManufacturerName);

            Application.Run(loginForm);
            if (Connected)
            {
                Application.Run(new LogForm());
            }
        }
        private void OnGranted(object sender, EventArgs e)
        {
            LogResourceHandler.CardSwiped(true);

            LogResourceHandler.CardSwiped(false);
        }