Пример #1
0
        private void Init(Point position)
        {
            this.PanelData = new AudioPanelData();
            this.Menu      = new AudioPanelMenu(this);

            LevelSlide1             = new TrackBar();
            LevelSlide1.Orientation = Orientation.Vertical;
            LevelSlide1.Location    = new Point(SLIDER_WIDTH / 2, MENU_HEIGHT);
            LevelSlide1.ClientSize  = new Size(SLIDER_WIDTH, AudioChannel.HEIGHT);

            TimeChannel1      = new AudioChannel("Mono", SLIDER_WIDTH, MENU_HEIGHT, (ParentRef.Width - SLIDER_WIDTH - FrequencyChannel.WIDTH_PADDING) / 2, ParentRef.Height);
            FrequencyChannel1 = new FrequencyChannel("Frequency Filter", TimeChannel1.Chart.ClientSize.Width + SLIDER_WIDTH, MENU_HEIGHT, TimeChannel1.Chart.ClientSize.Width, FrequencyChannel.SIZE);

            TimeChannel1.Panel        = this;
            TimeChannel1.Chart.Click += new EventHandler(SelectChange_1);
            TimeChannel1.Chart.SelectionRangeChanging += new EventHandler <CursorEventArgs>(SelectChange_1);

            PlayBar = new AP_PlayBar(this, 0, MONO_HEIGHT - PLAYBAR_HEIGHT, ParentRef.Width, PLAYBAR_HEIGHT);
            this.Controls.Add(Menu);
            this.Controls.Add(LevelSlide1);
            this.Controls.Add(TimeChannel1.Chart);
            this.Controls.Add(FrequencyChannel1.Chart);
            this.Controls.Add(PlayBar);
        }