Пример #1
0
        private void 新增并保存_Click(object sender, RoutedEventArgs e)
        {
            int count = 0;

            if (videoPreviewModel.CurrentFlow == null)
            {
                count = 0;
            }
            else
            {
                count = videoPreviewModel.CurrentFlow.Instructions.Where(u => u.T时间 == videoPreviewModel.CurrentPos).Count();
            }
            ConfigureHelper.SetAllTopicType1(movieName, videoPreviewModel.CurrentPos, count + 1 + "", tbResult.Text);
            tbCommander.Text = $"<Instructions   时间=\"{videoPreviewModel.CurrentPos}\"  灯光指令=\"{tbResult.Text}\" 继电器指令=\"\" 网络指令=\"\"  其他信息=\"{count+ 1}\"></Instructions >";
            MessageBox.Show("新增成功!,已写入配置文件!");
        }
Пример #2
0
 private void 修改并保存_Click(object sender, RoutedEventArgs e)
 {
     ConfigureHelper.SetAllTopicType1(videoPreviewModel.CurrentFlow.Movie, videoPreviewModel.CurrentPos, selectOther, tbResult.Text);
     tbCommander.Text = $"<Instructions   时间=\"{videoPreviewModel.CurrentPos}\"  灯光指令=\"{tbResult.Text}\" 继电器指令=\"\" 网络指令=\"\"  其他信息=\"{selectOther}\"></Instructions >";
     MessageBox.Show("修改成功!,已写入配置文件!");
 }