コード例 #1
0
 public void RefreshCommandList(int idx)
 {
     ListCurrentSelectedCommands.Clear();
     foreach (var i in Config.Instance.PlayList[idx].Commands)
     {
         ListCurrentSelectedCommands.Add(i);
     }
 }
コード例 #2
0
 public void StartRecording()
 {
     NeedSave = true;
     EnableCommandList.Value = false;
     EnableFileList.Value    = false;
     EnableSettings.Value    = false;
     EnablePlayButton        = false;
     IsRecording             = true;
     ListCurrentSelectedCommands.Clear();
     cn.log("録画開始");
 }
コード例 #3
0
        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;
        }