handle more values other than 'off'

This commit is contained in:
Michael Becker 2019-11-06 00:06:01 -05:00
parent a8c5906a9b
commit 854d237750
No known key found for this signature in database
GPG Key ID: 389DFF5D73781A12

View File

@ -74,12 +74,29 @@ namespace UniversalEditor.Editors.Multimedia.Audio.Synthesized.PianoRoll.Control
private void ContextMenu_NoteFixedLength_Click(object sender, EventArgs e)
{
MenuItem mi = (sender as MenuItem);
string sValue = mi.Name.Substring("ContextMenu_NoteFixedLength_".Length);
Command cmd = (sender as Command);
string sValue = cmd.ID.Substring("PianoRollEditor_ContextMenu_NoteFixedLength_".Length);
int iValue = -1;
if (sValue != "Off")
switch (sValue)
{
iValue = Int32.Parse(sValue);
case "Off":
{
break;
}
case "Triplet":
{
break;
}
case "Dot":
{
break;
}
default:
{
iValue = Int32.Parse(sValue);
break;
}
}
}