public void RefreshCommandList(int idx) { ListCurrentSelectedCommands.Clear(); foreach (var i in Config.Instance.PlayList[idx].Commands) { ListCurrentSelectedCommands.Add(i); } }
public void StartRecording() { NeedSave = true; EnableCommandList.Value = false; EnableFileList.Value = false; EnableSettings.Value = false; EnablePlayButton = false; IsRecording = true; ListCurrentSelectedCommands.Clear(); cn.log("録画開始"); }
public void RemovePlayList() { NeedSave = true; InterceptInput.EnableKeyInput = false; var idx = SelectedIndexPlayName; var result = MessageBox.Show(Application.Current.MainWindow, $"Are you sure remove a \"{ListPlayListNames[idx]}\"", "Confirm", MessageBoxButton.OKCancel, MessageBoxImage.Question); if (result == MessageBoxResult.OK) { Config.Instance.PlayList.RemoveAt(idx); ListPlayListNames.RemoveAt(idx); ListCurrentSelectedCommands.Clear(); } InterceptInput.EnableKeyInput = true; }