Ejemplo n.º 1
0
        private void NewImagePanel_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            PictureSettings panelSettings = new PictureSettings();
            ImagePanelDlg   dlgWindow     = new ImagePanelDlg(panelSettings);

            InitiateNewGaugeDlg(dlgWindow, panelSettings);
        }
Ejemplo n.º 2
0
        public ImagePanelDlg(PictureSettings panelSettings)
            : base(panelSettings)

        {
            InitializeComponent();
            ApplyBindings();
        }
 public void Reset()
 {
     Source           = new DataSource("VGA");
     Advanced         = new AdvancedSettings();
     NetworkManager   = new Manager(new None());
     SelectedLanguage = new UiLanguage("en");
     Picture          = new PictureSettings();
     Subtitle         = new SubtitleSettingsBuilder().Build();
 }
Ejemplo n.º 4
0
 public void ResetToFactorySettings()
 {
     Volume          = new VolumeControl(new Volume(15));
     ChannelSwitcher = new Switcher(new UserInteraction());
     ChannelSwitcher.TrySwitching(0);
     TimeManager            = new TimeManager();
     Software               = new Software(new UserInteraction());
     Source                 = new DataSource("VGA");
     AllowedRemoteControl   = false;
     AllowedAudioVideoShare = false;
     Equalizer              = new SoundEqualizer("Movie");
     DynamicBassOn          = false;
     ZoomLevel              = 100;
     NetworkManager         = new NetworkManager(new None());
     SelectedLanguage       = new UiLanguage("en");
     SubtitleSettings       = new SubtitleSettingsBuilder().Build();
     PictureSettings        = new PictureSettings();
 }
Ejemplo n.º 5
0
        public TV()
        {
            PictureSettings.Switch(new Sports());
            PictureSettings.SetBrightness(50);
            PictureSettings.SetSharpness(50);
            PictureSettings.SetContrast(50);

            ChannelSwitcher.TrySwitching(0);
            if (!(ChannelSwitcher is IParentalControl parentalControl))
            {
                throw new ApplicationException("Parental control is expected to be integrated within Channel Switcher!");
            }

            parentalControl.Add(new List <Channel> {
                new Channel(41), new Channel(69), new Channel(111)
            });
            const string lastPassword = "******";

            parentalControl.Set(lastPassword);
        }
Ejemplo n.º 6
0
 protected override void Init(PanelSettings panelSettings)
 {
     this.panelSettings = (PictureSettings)panelSettings;
 }
Ejemplo n.º 7
0
 public ImagePanel(MainWindow mainWindow, PictureSettings panelSettings)
     : base(mainWindow, panelSettings)
 {
     this.panelSettings = panelSettings;
 }