40 lines
1.2 KiB
C#
40 lines
1.2 KiB
C#
using OmniPlus.Features;
|
|
|
|
using System;
|
|
using System.Windows.Forms;
|
|
|
|
namespace OmniPlus.UI
|
|
{
|
|
public static class Program
|
|
{
|
|
[STAThread]
|
|
public static void Main()
|
|
{
|
|
//var connection = new OmniPlusConnection("COM26");
|
|
|
|
//if (connection.ConnectIrda())
|
|
//{
|
|
// var factorySeal = connection.ViewFactorySeal();
|
|
// var response = default(FeatureResponse);
|
|
|
|
// if (!factorySeal.Sealed)
|
|
// {
|
|
// var _programmableID = connection.ViewProgrammableID();
|
|
// var programmableID = new ProgrammableID("816232411982");
|
|
// response = connection.Set(programmableID);
|
|
|
|
// var _factoryID = connection.ViewFactoryID();
|
|
// var factoryID = new FactoryID("816232411982");
|
|
// response = connection.Set(factoryID);
|
|
// }
|
|
//}
|
|
|
|
//connection.Disconnect();
|
|
|
|
Application.EnableVisualStyles();
|
|
Application.SetCompatibleTextRenderingDefault(false);
|
|
Application.Run(new OmniPlusUI());
|
|
}
|
|
}
|
|
}
|