* QStorage.cs: Fix AddInstance to actually check Contains

* MenuPage.xaml.cs:
* ControlPage.xaml.cs:
* qConnectionPage.xaml.cs: Add ability to change cue name in menu
This commit is contained in:
2019-07-10 22:17:29 -05:00
parent eb772ea614
commit cebf5425f8
4 changed files with 37 additions and 15 deletions
@@ -143,6 +143,22 @@ namespace qController
}
}
public void ChangeCueName(string cue_id, string name){
for(int i = 0; i < items.Count; i++)
{
if (items[i].Command.Contains(cue_id))
{
var item = items[i];
items.RemoveAt(i);
item.Title = name;
items.Insert(i, item);
Console.WriteLine("CUE OBJECT FOUND IN MENU TRYING TO UPDATE");
return;
}
}
}
public void ChangeToHome()
{
items.Clear();