Ejemplo n.º 1
0
        public BeanHopperUint copy()
        {
            BeanHopperUint ret = new BeanHopperUint();

            ret.Name           = _Name;
            ret.DeviceIoAdress = _DeviceIoAdress;
            ret.Flow           = _Flow;
            ret.DeviceID       = _DeviceID;
            ret.Powdertype     = _powdertype;
            return(ret);
        }
Ejemplo n.º 2
0
 public BeanHopperUint copy()
 {
     BeanHopperUint ret = new BeanHopperUint();
     ret.Name = _Name;
     ret.DeviceIoAdress = _DeviceIoAdress;
     ret.Flow = _Flow;
     ret.DeviceID = _DeviceID;
     ret.Powdertype = _powdertype;
     return ret;
 }
Ejemplo n.º 3
0
 private void InitClass()
 {
     _UiData = new UiData();
     _CrtEVOMachine = new EVOMachine(true);
     _CrtWaterValve = new WaterValve();
     _CrtMixerUnit = new MixerUnit();
     _CrtCanisterUnit = new CanisterUnit();
     _CrtDeviceUnit = new DeviceUnit();
     _CrtBeanHopperUint = new BeanHopperUint();
     _CrtIngredient = new IngredientInfo(true);
     _CrtRecipeInfo = new RecipeInfo();
     _LstEVOMachine = new ObservableCollection<EVOMachine>();
     _LstDeviceUnit = new ObservableCollection<DeviceUnit>();
     _lstMaintenceInfo = new ObservableCollection<EvoMaintenceInfo>();
     _EvoRecipe = new EvoRecipe();
     _IDControl = new IDGenrator();
     _crtDBItem = new DBItem();
     _EvoUpdate = new EvoUpdate();
     _MachineInfo = new MachineInfo();
     _CrtEVOCleaning = new EVOCleaning();
     Tmr.Interval = TimeSpan.FromSeconds(5);
     Tmr.Tick += Tmr_Tick;
     _ComSetting = (ComSetting)Function.XmlSerializer.LoadFromXml("EVO.com.xml", typeof(ComSetting));
     comunication.Getinstance().SetComPort(_ComSetting.Port, _ComSetting.BaudRate);
     int ret = comunication.Getinstance().Open();
     comunication.EVOEvent += comunication_EVOEvent;
 }