I am running the code below. And using 5.1 client and server.
The connection passes, however no jobs are listed.
When running the vc client, there are several jobs on the server.😕
private void button1_Click(object sender, EventArgs e)
{
bool ttt;
Client.EventOnConnected += new Client.DelegateOnConnected(Client_EventOnConnected);
Client c = new Client();
c.LogToFile = false;
Connection conn = new Connection();
conn.Address = "dnmsstssrc";
conn.UserName = "amproc";
conn.PassWord = "gamit6";
conn.Port = 16444;
conn.ConnectionType = Connection.ConnectionT.Remote;
try
{
s = c.Connect(conn, true);
}
catch (VisualCronAPI.Client.ClientLoginFailedException ex)
{
MessageBox.Show(ex.Message);
}
string tell = "";
button1.Text = tell.ToString();
}
private Server s = null;
private static void Client_EventOnConnected(Client c, ref Server s)
{
//JobClass jc =
if (s.Connected)
{
foreach (JobClass jj in s.Jobs.GetAll())
{
string text = jj.Name;
}
}
//s.Jobs.Run(j);
}