/// <summary> /// Set for any sectors color scheme /// </summary> /// <param name="obj"></param> private void SetColorSchemeSectors(dynamic obj) { ClickOnPlace.DefaultSettingsForButtons(this); if ((obj).Visibility == Visibility.Hidden) { // установка цветовой схемы для мест на стоянки SetColor.SetColorForPlaces(ListButtons); obj.Visibility = Visibility.Visible; } else { SetColor.SetColorForPlaces(ListButtons); obj.Show(); } }
/// <summary> /// Event for click on any button in window Sector /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnPlace_Click(object sender, RoutedEventArgs e) { MainWindow tempMainWind = (this.Owner as MainWindow); ClickOnPlace.ClickOnAnyPlace(sender, e, tempMainWind); }