protected override void SetValue(string value, EditID3File file)
        {
            EditTextFrame frame;

            if (!frames.TryGetValue(file, out frame))
            {
                frame = EditTextFrame.GetFrameFromId(FrameId);

                frames.Add(file, frame);

                file.V2Tag.Add(frame);
            }

            lock (settingTextFrames)
            {
                settingTextFrames.Add(frame);
            }

            frame.Text = value;

            lock (settingTextFrames)
            {
                settingTextFrames.Remove(frame);
            }
        }
Exemple #2
0
        private void BtnAddFrame_Click(object sender, RoutedEventArgs e)
        {
            var frameIdResult = new GetTextWindow().Get("Frame ID:");

            if (frameIdResult.Item1 == MessageBoxResult.Yes)
            {
                foreach (EditID3File editFile in viewModel.SelectedFiles)
                {
                    editFile.V2Tag.Add(EditTextFrame.GetFrameFromId(frameIdResult.Item2));
                }
            }
        }