Beispiel #1
0
            public SoundKeyView(SoundTrackBar trackBar, SoundKey key)
                : base(trackBar, key)
            {
                this._SoundKey = key;
                _PreviewImage  = new AudioPreviewCurve()
                {
                    Margin = new Skill.Framework.UI.Thickness(2), BackgroundColor = Color.clear
                };
                _LblClipName = new Skill.Framework.UI.Label()
                {
                    Style = Resources.Styles.EventLabel
                };

                Controls.Add(_PreviewImage);
                Controls.Add(_LblClipName);
            }
Beispiel #2
0
            void _AddKeyItem_Click(object sender, System.EventArgs e)
            {
                SoundTrackBar trackBar = (SoundTrackBar)Owner;

                trackBar.AddKeyAtPosition(Position.x);
            }