Esempio n. 1
0
 public EvoStCheck(MachineInfo _MachineInfo)
 {
     Tmr.Interval = TimeSpan.FromSeconds(1);
     Tmr.Tick += Tmr_Tick;
     InitializeComponent();
     _myMachineInfo = _MachineInfo;
     this.DataContext = _MachineInfo;
     lbinfo.ItemsSource = _secondInfo;
     //Tmr.Start();
     tm1.ItemsSource = valueList_Water;
     tm2.ItemsSource = valueList_fridge;
 }
 public EvoCalibrationWin(MachineInfo _MachineInfo)
 {
     InitializeComponent();
     this._MachineInfo = _MachineInfo;
     this.grd_test.Visibility = Visibility.Hidden;
     grd_test_temp.Visibility = System.Windows.Visibility.Hidden;
     this.grd_cal.Visibility = System.Windows.Visibility.Hidden;
     grd_test_brew.Visibility = System.Windows.Visibility.Hidden;
     this.grd_Process.Visibility = System.Windows.Visibility.Hidden;
     Tmr.Interval = TimeSpan.FromSeconds(5);
     Tmr.Tick += Tmr_Tick;
     Tmrpb.Interval = TimeSpan.FromSeconds(0.1);
     Tmrpb.Tick += Tmrpb_Tick;
     comunication.EVOEvent += comunication_EVOEvent;
 }
Esempio 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;
 }