Example #1
0
 public void Init(Control parent)
 {
     _player         = new MediaPlayer(parent);
     _state          = WavePanelState.Listen;
     _intervalLabels = new List <Label>();
     _brush          = new HatchBrush(HatchStyle.Percent10, Color.Orange, Color.Transparent);
     //PictureBox.SizeChanged += new EventHandler(PictureBox_SizeChanged);
 }
Example #2
0
        private void setEditState()
        {
            _timer.Stop();
            _state = WavePanelState.Edit;
            PictureBox.MouseClick -= new MouseEventHandler(PictureBox_MouseClick);
            _timer.Tick           -= new EventHandler(_timer_Tick_Listen);

            PictureBox.MouseDown += new MouseEventHandler(PictureBox_MouseDownWhenEdit);
            PictureBox.MouseMove += new MouseEventHandler(PictureBox_MouseMoveWhenEdit);
        }