Exemple #1
0
        /// <summary>
        ///     Sets silverlight data form fields visibility.
        /// </summary>
        private void SetSilverlightDataFormFieldsVisibility()
        {
            this.gridSilverlightDataFormFields.Visibility = Visibility.Collapsed;

            var obj = UIHelpers.FindAnscestorWindow(this) as CreateBusinessFormFromClassWindow;

            if (obj == null || !obj.ClassEntity.IsSilverlight ||
                obj.cboSelectObjectToCreate.SelectedValue.ToString() != "Silverlight Data Form")
            {
                return;
            }

            this.gridSilverlightDataFormFields.Visibility = Visibility.Visible;
        }
Exemple #2
0
        /// <summary>
        ///     Sets render in data column template visibility.
        /// </summary>
        private void SetRenderInDataColumnTemplateVisibility()
        {
            var obj = UIHelpers.FindAnscestorWindow(this) as CreateBusinessFormFromClassWindow;

            if (obj == null)
            {
                return;
            }

            if (!obj.ClassEntity.IsSilverlight ||
                obj.cboSelectObjectToCreate.SelectedValue.ToString() != "Silverlight Data Grid")
            {
                return;
            }
            this.chkRenderInDataColumnTemplate.Visibility = Visibility.Visible;
        }