I'm just not getting any results part from card/device name/ids, no card status's

RossMcivor

New Member
June 22, 2018
2
1
Wales, UK


Hi, I'm moving from delphiprogramming to develp a application in visual studio c#, and i got this

just a button and a textbox..


I'm getting the device name, but no recording staus, while its recording, ive tryed over properies but it returns nothing, can someone help me get over my first hurdle please :)
Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using TvControl;          // include the tvserver remote control interfaces
using TvLibrary.Channels; // include tv-channel types
using TvDatabase;

namespace WindowsFormsApp1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
         
        }
         


         
        private void button1_Click(object sender, EventArgs e)
        {
             RemoteControl.HostName = "mars";
            int cardCount = RemoteControl.Instance.Cards;
            for (int i = 0; i < cardCount; ++i)
            {
                int cardId = RemoteControl.Instance.CardId(i);
                User user = new User();
                user.CardId = cardId;
              
                VirtualCard card = new VirtualCard(user, RemoteControl.HostName);
            
                textBox1.AppendText("Type: " + card.Name + " Recording: " + card.IsRecording  + "\r\n");
            }
        }
    }
}
 

Edalex

Community Plugin Dev
  • Premium Supporter
  • January 3, 2008
    2,909
    113
    Saratov
    Country flag
    Hey.
    When I want to get info from tv server I use TVBusinessLayer methods.
    Also sometimes I need to set cofing with some metthod I don't remember
     
    Top Bottom