public Caption(string captionText, int captionRow, int captionCol) { InitializeComponent(); this.captionLabel.Text = captionText; this.row = captionRow; this.col = captionCol; Captions.Add(this); mainForm.Controls.Add(this); SetPosition(); }
/// <summary> /// Adds the specified caption. /// </summary> /// <param name="caption">The caption.</param> /// <param name="property">The property.</param> /// <param name="value">The value.</param> public void Add(String caption, String property, String value) { lock (this) { if (!Captions.Contains(caption)) { Captions.Add(caption); Properties.Add(caption, new NameValueCollection()); } Properties[caption][property] = value; } }
/// <summary> /// Adds the specified caption. /// </summary> /// <param name="caption">The caption.</param> /// <param name="nvcollection">The nvcollection.</param> public void Add(String caption, NameValueCollection nvcollection) { lock (this) { if (!Captions.Contains(caption)) { Captions.Add(caption); Properties.Add(caption, new NameValueCollection()); } Properties[caption].Add(nvcollection); } }
public void AddCaption(Caption caption) { Captions.Add(caption); }
private void OnAdd(object sender, RoutedEventArgs e) { Captions.Add(new ClosedCaptionDependencyObject()); }