Beispiel #1
0
        /// <summary>
        /// Saves all unsaved values in the grid
        /// </summary>
        public override void UpdateContent()
        {
            if (commentText.IsFocused)
            {
                BindingExpression be = commentText.GetBindingExpression(TextBox.TextProperty);
                be.UpdateSource();
            }
            changeComment = null;

            appearance.UpdateContent();
        }
Beispiel #2
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);
        }