Пример #1
0
        protected void EnsureParentOnPropertySet(IConfigurationObject oldValueObj, IConfigurationObject newValueObj)
        {
            if ((object)oldValueObj != null)
            {
                oldValueObj.Surround = null;
                oldValueObj.Parent = null;
            }

            if ((object)newValueObj != null)
            {
                newValueObj.Surround = null;
                newValueObj.Parent = this;
            }
        }
Пример #2
0
 public void Load(IConfigurationObject value)
 {
     throw new NotImplementedException();
 }
Пример #3
0
 internal static IPropertyDef PropertyDef(this IConfigurationObject configurationObject)
 {
     return(((IConfigurationParent)configurationObject).PropertyDef);
 }
Пример #4
0
 /// <summary>
 /// </summary>
 public void Load(IConfigurationObject value)
 {
     this.ConvertTabsToSpace = (Boolean)value.GetProperty("ConvertTabsToSpace", false);
     this.TabSize            = (Int32)value.GetProperty("TabSize", 4);
 }
Пример #5
0
		/// <summary>
		/// </summary>
		public void Save(IConfigurationObject value)
		{
			value.SetProperty("ConvertTabsToSpace", this.ConvertTabsToSpace, false);
			value.SetProperty("TabSize", this.TabSize, 4);
		}
Пример #6
0
 internal static string CalculatePath(this IConfigurationObject configurationObject)
 {
     return(((IConfigurationParent)configurationObject).CalculatePath());
 }
Пример #7
0
		/// <summary>
		/// </summary>
		public void Load(IConfigurationObject value)
		{
			this.ConvertTabsToSpace = (Boolean)value.GetProperty("ConvertTabsToSpace", false);
			this.TabSize = (Int32)value.GetProperty("TabSize", 4);
		}
Пример #8
0
 public void Load(IConfigurationObject value)
 {
     this.configurationObject = value;
     this.Apply();
 }
Пример #9
0
 public void Load(IConfigurationObject value)
 {
     throw new NotImplementedException();
 }
Пример #10
0
        public static void PromptUserForMissingSdk(IServices services)
        {
            IConfigurationObject item = services.GetService <IConfigurationService>()["BlendSDK"];
            var variable = new < > f__AnonymousType2 <int, FrameworkName[], string, string, string, string> [3];

            FrameworkName[] wpf35 = new FrameworkName[] { BlendSdkHelper.Wpf35, BlendSdkHelper.Silverlight3 };
            variable[0] = new { SDKVersion = 3, SupportedPlatforms = wpf35, HyperlinkUri = "http://go.microsoft.com/fwlink/?LinkId=139656", SupressDialogPropertyName = "HideInstallSDKDialog", Message = StringTable.Blend3SdkUnavailable, HyperlinkMessage = StringTable.InstallBlend3SdkLink };
            FrameworkName[] wpf4 = new FrameworkName[] { BlendSdkHelper.Wpf4 };
            variable[1] = new { SDKVersion = 4, SupportedPlatforms = wpf4, HyperlinkUri = "http://go.microsoft.com/fwlink/?LinkId=183399", SupressDialogPropertyName = "HideInstall.NETFrameworkSDK4Dialog", Message = StringTable.Blend4SdkUnavailable, HyperlinkMessage = StringTable.InstallBlend4SdkLink };
            FrameworkName[] silverlight4 = new FrameworkName[] { BlendSdkHelper.Silverlight4 };
            variable[2] = new { SDKVersion = 4, SupportedPlatforms = silverlight4, HyperlinkUri = "http://go.microsoft.com/fwlink/?LinkId=183400", SupressDialogPropertyName = "HideInstallSilverlightSDK4Dialog", Message = StringTable.Blend4SdkUnavailable, HyperlinkMessage = StringTable.InstallBlend4SdkLink };
            var variable1 = variable;

            for (int i = 0; i < (int)variable1.Length; i++)
            {
                var             variable2          = variable1[i];
                bool            flag               = true;
                FrameworkName[] supportedPlatforms = variable2.SupportedPlatforms;
                int             num = 0;
                while (num < (int)supportedPlatforms.Length)
                {
                    if (BlendSdkHelper.IsSdkInstalled(supportedPlatforms[num]))
                    {
                        num++;
                    }
                    else
                    {
                        flag = false;
                        break;
                    }
                }
                if (flag)
                {
                    item.SetProperty(variable2.SupressDialogPropertyName, false);
                }
                else if (!BlendSdkHelper.ShouldDialogBeHidden(services, variable2.SupressDialogPropertyName))
                {
                    bool           flag1 = false;
                    string         friendlyFrameworkName = BlendSdkHelper.GetFriendlyFrameworkName(variable2.SupportedPlatforms[0]);
                    CultureInfo    currentCulture        = CultureInfo.CurrentCulture;
                    string         message          = variable2.Message;
                    object[]       sDKVersion       = new object[] { variable2.SDKVersion, friendlyFrameworkName };
                    string         str              = string.Format(currentCulture, message, sDKVersion);
                    CultureInfo    cultureInfo      = CultureInfo.CurrentCulture;
                    string         hyperlinkMessage = variable2.HyperlinkMessage;
                    object[]       objArray         = new object[] { variable2.SDKVersion, friendlyFrameworkName };
                    string         str1             = string.Format(cultureInfo, hyperlinkMessage, objArray);
                    MessageBoxArgs messageBoxArg    = new MessageBoxArgs()
                    {
                        Message          = str,
                        Button           = MessageBoxButton.OK,
                        Image            = MessageBoxImage.Exclamation,
                        AutomationId     = "BlendSdkDialog",
                        HyperlinkMessage = str1,
                        HyperlinkUri     = new Uri(variable2.HyperlinkUri)
                    };
                    if (services.GetService <IMessageDisplayService>().ShowMessage(messageBoxArg, out flag1) == MessageBoxResult.OK)
                    {
                        item.SetProperty(variable2.SupressDialogPropertyName, flag1);
                    }
                }
            }
        }
Пример #11
0
 private void LoadSettings(DesignerContext designerContext)
 {
     this.configuration     = designerContext.Services.GetService <IConfigurationService>()["NewObjectDialog"];
     this.ShowAllAssemblies = (bool)this.configuration.GetProperty(ClrObjectDialogBase.showAllAssembliesProperty, (object)false);
 }