private void Image_MouseLeftButtonUp(object sender, MouseButtonEventArgs e) { CarSelector.OnClearSelection(); grdContent.Children.Clear(); grdContent.Visibility = Visibility.Collapsed; stkBack.Visibility = Visibility.Collapsed; }
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; } }
private void btnClose_Click(object sender, RoutedEventArgs e) { CarSelector.OnClearSelection(); ContentGrid.Visibility = Visibility.Collapsed; ccContent.Content = null; }
void Start() { carSelector = carSelection.GetComponent <CarSelector>(); }
public void setCarSelector(CarSelector s) { carSelector = s; }
void Awake() { videoPlayer = GetComponent <VideoPlayer>(); audioSource = GetComponent <AudioSource>(); carSelector = carSelection.GetComponent <CarSelector>(); }
private void Awake() { carSelector = FindObjectOfType <CarSelector>(); }