protected override void OnEnable(bool enable)
        {
            if (enable)
            {
                Window.PreselectionChanged += Window_PreselectionChanged;
            }
            else
            {
                Window.PreselectionChanged -= Window_PreselectionChanged;
            }

            if (enable)
            {
                apiGroove = SizeComboBox.SelectedSize;
                SizeComboBox.Command.TextChanged += apiSizeCommand_TextChanged;
            }
            else
            {
                SizeComboBox.Command.TextChanged -= apiSizeCommand_TextChanged;
            }
        }
 void apiSizeCommand_TextChanged(object sender, CommandTextChangedEventArgs e)
 {
     apiGroove = SizeComboBox.SelectedSize;
 }
 void apiSizeCommand_TextChanged(object sender, CommandTextChangedEventArgs e)
 {
     apiGroove = SizeComboBox.SelectedSize;
 }
        protected override void OnEnable(bool enable)
        {
            if (enable)
                Window.PreselectionChanged += Window_PreselectionChanged;
            else
                Window.PreselectionChanged -= Window_PreselectionChanged;

            if (enable) {
                apiGroove = SizeComboBox.SelectedSize;
                SizeComboBox.Command.TextChanged += apiSizeCommand_TextChanged;
            }
            else
                SizeComboBox.Command.TextChanged -= apiSizeCommand_TextChanged;
        }