示例#1
0
        public LatheProgram()
        {
            _program = new CProgram();

            DataApi.CMachine machine = new DataApi.CMachine();
            machine.Init();

            DataApi.CProgram prog = new DataApi.CProgram();
            _defaultPath = prog.GetDefaultProgramPath();
        }
示例#2
0
        public PanelModeLathe()
        {
            // Pass application name into CMachine constructor for logging purposes
            // MUST call Init() before using THINC API functionality
            var name = System.Reflection.Assembly.GetEntryAssembly().GetName().Name;

            _machine = new DataAPI.CMachine(name);
            _machine.Init();
            _views = new CmdAPI.CViews();

            // Because the panel mode can change on the machine, periodically check whether it has changed and raise an event accordingly.
            _changeTimer = new System.Threading.Timer(ChangeTimer_Tick, null, TimeSpan.FromSeconds(1), TimeSpan.FromSeconds(1));
        }
示例#3
0
 public OkumaLathe()
 {
     _machine = new DataApi.CMachine();
     _machine.Init();
     _variables = new DataApi.CVariables();
 }