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;
        }
Пример #3
0
        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);
            }
        }
Пример #4
0
        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();
        }
Пример #5
0
 public bool AddPAZone(PAZone zone)
 {
     zone.SectionId = Id;
     _zones.Add(zone);
     return(true);
 }
Пример #6
0
 public bool StopFileMusic(PAZone zone)
 {
     return(true);
 }