Beispiel #1
0
        /// <summary>
        /// Initialization when window is poped up. Read all setting values, store all values as original, draw all graphs.
        /// </summary>
        public Configuration(AudioControl audio, Wale.Configuration.General cf)
        {
            InitializeComponent();

            this.CDL         = new ConfigDatalink();
            this.DataContext = this.CDL;
            this.CF          = cf;

            MainGrid.Children.Clear();

            MainGrid.Children.Add(new TitleBar(this));

            ConfigSet cs = new ConfigSet(audio, cf, this, false, true)
            {
                //cs.LogInvokedEvent += Cs_LogInvokedEvent;
                Margin = new Thickness(0, 35, 0, 0)
            };

            //cs.SizeChanged += ConfigSet_SizeChanged;
            CF.PropertyChanged += Default_PropertyChanged;
            MainGrid.Children.Add(cs);
            this.Height = (CF.AdvancedView ? Wale.Configuration.Visual.ConfigSetLongHeight : Wale.Configuration.Visual.ConfigSetHeight) + Wale.Configuration.Visual.TitleBarHeight;
            //this.Width = 280;

            this.Title = "Wale " + Localization.Interpreter.Current.Configuration;
        }
Beispiel #2
0
        /// <summary>
        /// Initialization when window is poped up. Read all setting values, store all values as original, draw all graphs.
        /// </summary>
        public Configuration(AudioControl audio, Datalink dl)
        {
            InitializeComponent();

            this.CDL         = new ConfigDatalink();
            this.DataContext = this.CDL;

            MainGrid.Children.Clear();

            MainGrid.Children.Add(new TitleBar(this));

            ConfigSet cs = new ConfigSet(audio, dl, this, false, true)
            {
                //cs.LogInvokedEvent += Cs_LogInvokedEvent;
                Margin = new Thickness(0, 35, 0, 0)
            };

            cs.SizeChanged += ConfigSet_SizeChanged;
            MainGrid.Children.Add(cs);
            this.Height = cs.Height + AppDatas.TitleBarHeight;
            //this.Width = 280;

            this.Title = "Wale " + Localization.Interpreter.Current.Configuration;
        }