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
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");
}
}
}
}