Exemplo n.º 1
0
        /// <summary>
        /// Displays comment in the Properties window
        /// </summary>
        /// <param name="c"></param>
        public void Display(XCaseComment c)
        {
            IDictionaryEnumerator ie = grid.Resources.GetEnumerator();

            while (ie.MoveNext())
            {
                if (ie.Key.ToString() == "changeComment")
                {
                    changeComment = (ChangeCommentConverter)ie.Value;
                }
            }

            changeComment.SelectedComment = c;
            commentText.DataContext       = c.ModelComment;

            appearance.SetElement(c.Controller.DiagramController, c.ViewHelper);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Displays currently selected comment in Properties window.
 /// </summary>
 /// <param name="c">comment</param>
 private void DisplaySelectedComment(XCaseComment c)
 {
     currentGrid = commentGrid;
     commentGrid.Display(c);
     commentGrid.Visibility = Visibility.Visible;
 }