private void MIMEDInteractionsDeleteGlobalChangeUIModel_Loaded(object sender, Blackbaud.AppFx.UIModeling.Core.LoadedEventArgs e)
        {
            CRMDataRepo crmData = new CRMDataRepo();

            //< FormFieldOverrides >
            //< FormFieldOverride FieldID = "RECORDTYPEID" ReadOnly = "true" DefaultValueText = "82CA852C-C3C9-430F-BC4C-ACA70AF90C16" />
            //</ FormFieldOverrides >

            Guid recordTypeID = crmData.GetRecordTypeID("MIMED Data");


            FieldOverride item = new FieldOverride();

            item.ReadOnly         = true;
            item.FieldId          = "RECORDTYPEID";
            item.DefaultValueText = recordTypeID.ToString();
            this.IDSETREGISTERID.SearchFieldOverrides.Add(item);
        }
예제 #2
0
        public void EqualsNull()
        {
            // Field
            var field = new FieldOverride(string.Empty, OverrideValue);

            Assert.IsFalse(field.Equals((object)null));
            Assert.IsFalse(field.Equals((FieldInfo)null));

            // Property
            var property = new PropertyOverride(string.Empty, OverrideValue);

            Assert.IsFalse(property.Equals((object)null));
            Assert.IsFalse(property.Equals((PropertyInfo)null));

            // Parameter
            var parameter = new ParameterOverride(string.Empty, OverrideValue);

            Assert.IsFalse(parameter.Equals((object)null));
            Assert.IsFalse(parameter.Equals((ParameterInfo)null));

            // Dependency
            Assert.IsFalse(new DependencyOverride(typeof(object), OverrideValue).Equals(null));
        }