Exemplo n.º 1
0
        /// <summary>
        /// Saves all unsaved values in the grid
        /// </summary>
        public override void UpdateContent()
        {
            if (associationNameBox.IsFocused)
            {
                BindingExpression be = associationNameBox.GetBindingExpression(TextBox.TextProperty);
                be.UpdateSource();
            }

            renameAssociation = null;

            ends.UpdateContent();
        }
Exemplo n.º 2
0
        /// <summary>
        /// Displays selected PIM Association
        /// </summary>
        /// <param name="a"></param>
        public void Display(PIM_Association a)
        {
            ends.Display(a.Association.Ends, a.Controller.DiagramController.ModelController);

            IDictionaryEnumerator ie = grid.Resources.GetEnumerator();

            while (ie.MoveNext())
            {
                if (ie.Key.ToString() == "renameAssociation")
                {
                    renameAssociation = (RenameAssociationConverter)ie.Value;
                }
            }

            associationNameBox.DataContext          = a.Association;
            renameAssociation.associationController = a.Controller;
        }