Example #1
0
        public void Sucker(VacuumState state, ActionType procedure)
        {
            try
            {
                switch (procedure)
                {
                case ActionType.None:
                    break;

                case ActionType.Load:
                    _mc.VLoadVacuum(state, true);
                    //_mc.VLoadVacuum(state , CheckVacuumValue);
                    break;

                case ActionType.Unload:
                    _mc.VUnloadVacuum(state, true);
                    //_mc.VUnloadVacuum(state, CheckVacuumValue);
                    break;

                default:
                    break;
                }
            }
            catch (Exception)
            {
                throw new SuckerException()
                      {
                          Type = procedure
                      };
            }
        }