コード例 #1
0
ファイル: ReviewChanges.cs プロジェクト: nithinphilips/SMOz
	   public void Add(string action, string source, string target, bool warn) {
		  ReviewListItem reviewItem = new ReviewListItem(action, source, target);
		  if (warn) { reviewItem.BackColor = Color.Yellow; }
		  reviewItem.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
		  this._table.Controls.Add(reviewItem);
		  if (this._table.RowStyles.Count == 1) {
			 reviewItem.Select();
		  }
	   }
コード例 #2
0
        public void Add(string action, string source, string target, bool warn)
        {
            ReviewListItem reviewItem = new ReviewListItem(action, source, target);

            if (warn)
            {
                reviewItem.BackColor = Color.Yellow;
            }
            reviewItem.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            this._table.Controls.Add(reviewItem);
            if (this._table.RowStyles.Count == 1)
            {
                reviewItem.Select();
            }
        }