public ZoneContextWindow(PASubSystem system, PASection section, PAZone zone) { InitializeComponent(); App app = App.Current as App; if (app.AppBkBrush != null) { Background = app.AppBkBrush; } _system = system; _section = section; _zone = zone; if (_section != null) { btnZoneName.Content = _section.Name; } if (_zone != null) { btnZoneName.Content = _zone.Name; } }
public MusicSelectWindow(PASubSystem system, PASection section, PAZone zone) { InitializeComponent(); App app = App.Current as App; if (app.AppBkBrush != null) { Background = app.AppBkBrush; } _system = system; _section = section; _zone = zone; }
private void GetSectionZones(PARemoteProc proxy, PASection section) { pa_zone[] zones = proxy.GetZones(section.Id); if (zones == null) { Log.Error(string.Format("no zone found in PA section {0}", section.Name)); return; } foreach (pa_zone zone in zones) { PAZone zo = new PAZone(zone.pa_zone_id, zone.pa_zone_name); section.AddPAZone(zo); } }
private void btnZoneButton_Click(object sender, RoutedEventArgs e) { Button button = sender as Button; PAZone zone = button.DataContext as PAZone; if (zone == null) { return; } ZoneContextWindow dialog = new ZoneContextWindow(_system, null, zone); dialog.Owner = App.Current.MainWindow; dialog.ShowDialog(); }
public bool AddPAZone(PAZone zone) { zone.SectionId = Id; _zones.Add(zone); return(true); }
public bool StopFileMusic(PAZone zone) { return(true); }