Exemple #1
0
 private void Image_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
 {
     CarSelector.OnClearSelection();
     grdContent.Children.Clear();
     grdContent.Visibility = Visibility.Collapsed;
     stkBack.Visibility    = Visibility.Collapsed;
 }
Exemple #2
0
        public static void FactoryDemo()
        {
            ICar Car1 = CarSelector.GetInstance().GetCar(RoadType.City);
            ICar Car2 = CarSelector.GetInstance().GetCar(RoadType.Offroad);
            ICar Car3 = CarSelector.GetInstance().GetCar(RoadType.Mountains);

            Car1.Drive();
            Car1.Stop();
            Car2.Drive();
            Car2.Stop();
            Car3.Drive();
            Car3.Stop();
        }
        private void SelectCar(string value)
        {
            if (string.IsNullOrEmpty(value))
            {
                CarSelector.OnClearSelection();
                return;
            }
            var list = PhonesCarsList.Where(o => o.PhoneNumber.Equals(value));

            if (list.Any())
            {
                CarSelector.CreateCarSelected(list.Select(o => o.Did));
            }
            if (_selectedCar == null)
            {
                return;
            }
        }
Exemple #4
0
 private void btnClose_Click(object sender, RoutedEventArgs e)
 {
     CarSelector.OnClearSelection();
     ContentGrid.Visibility = Visibility.Collapsed;
     ccContent.Content      = null;
 }
Exemple #5
0
 void Start()
 {
     carSelector = carSelection.GetComponent <CarSelector>();
 }
 public void setCarSelector(CarSelector s)
 {
     carSelector = s;
 }
Exemple #7
0
 void Awake()
 {
     videoPlayer = GetComponent <VideoPlayer>();
     audioSource = GetComponent <AudioSource>();
     carSelector = carSelection.GetComponent <CarSelector>();
 }
 private void Awake()
 {
     carSelector = FindObjectOfType <CarSelector>();
 }