示例#1
0
 /// <summary>
 /// Carga los datos seleccionados en los controles.
 /// </summary>
 private void loadControls(UGRS.Core.Auctions.Entities.System.Section pObjSection)
 {
     txtName.Text           = pObjSection.Name;
     txtDescription.Text    = pObjSection.Description;
     txtPath.Text           = pObjSection.Path;
     cbModule.SelectedValue = pObjSection.ModuleId;
     mIntPosition           = pObjSection.Position;
 }
示例#2
0
        /// <summary>
        /// Carga los datos al dar doble clic en en el DataGrid.
        /// </summary>
        private void dgSections_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            UGRS.Core.Auctions.Entities.System.Section lObjModule = dgSections.SelectedItem as UGRS.Core.Auctions.Entities.System.Section;

            if (lObjModule != null)
            {
                loadControls(lObjModule);
                btnSave.Content            = "Modificar";
                lbltitle.Content           = "Modificar registro";
                lblMessage.Visibility      = Visibility.Collapsed;
                btnNew.Visibility          = Visibility.Visible;
                btnDelete.Visibility       = Visibility.Visible;
                txtName.BorderBrush        = Brushes.Black;
                txtDescription.BorderBrush = Brushes.Black;
                mLonId = lObjModule.Id;
            }
        }