public void Initialize() { var mainEquip = Equipment.EquipmentManager.Instance.MainEquip; MainEquipment = mainEquip; TrayLoadingUnit1 = mainEquip.FirstTrayLoadingUnit; TrayLoadingUnit2 = mainEquip.SecondTrayLoadingUnit; TrayUnloadingUnit = mainEquip.TrayUnloadingUnit; BoxLoadingUnit1 = mainEquip.FirstBoxLoadingUnit; BoxLoadingUnit2 = mainEquip.SecondBoxLoadingUnit; SSDLoadingUnit1 = mainEquip.FirstSSDLoadingUnit; SSDLoadingUnit2 = mainEquip.SecondSSDLoadingUnit; rectangleUnloaderStackerTray.Visibility = System.Windows.Visibility.Collapsed; FirstLaneBinding(); SecondLaneBinding(); Binding bd = new Binding("UseModule"); bd.Source = mainEquip.SSDFeederModule1; bd.Mode = BindingMode.TwoWay; checkBoxLane1Use.SetBinding(CheckBox.IsCheckedProperty, bd); bd = new Binding("UseModule"); bd.Source = mainEquip.SSDFeederModule2; bd.Mode = BindingMode.TwoWay; checkBoxLane2Use.SetBinding(CheckBox.IsCheckedProperty, bd); groupBoxLane1Use.Visibility = System.Windows.Visibility.Collapsed; groupBoxLane2Use.Visibility = System.Windows.Visibility.Collapsed; }
public void Initialize() { var mainEquip = Equipment.EquipmentManager.Instance.MainEquip; MainEquipment = mainEquip; TrayLoadingUnit1 = mainEquip.FirstTrayLoadingUnit; TrayLoadingUnit2 = mainEquip.SecondTrayLoadingUnit; TrayUnloadingUnit = mainEquip.TrayUnloadingUnit; rectangleUnloaderStackerTray.Visibility = System.Windows.Visibility.Collapsed; }