コード例 #1
0
ファイル: Caption.cs プロジェクト: xalik111/AxTxFlow
 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();
 }
コード例 #2
0
        /// <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;
            }
        }
コード例 #3
0
        /// <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);
            }
        }
コード例 #4
0
 public void AddCaption(Caption caption)
 {
     Captions.Add(caption);
 }
コード例 #5
0
 private void OnAdd(object sender, RoutedEventArgs e)
 {
     Captions.Add(new ClosedCaptionDependencyObject());
 }