コード例 #1
0
        void ApplySharpDevelopSettings()
        {
            SharpDevelopDesignerOptions options = new SharpDevelopDesignerOptions();

            this.Options.Properties.Find("GridSize", true).SetValue(this, options.GridSize);
            this.Options.Properties.Find("EnableInSituEditing", true).SetValue(this, options.EnableInSituEditing);
            this.Options.Properties.Find("ObjectBoundSmartTagAutoShow", true).SetValue(this, options.ObjectBoundSmartTagAutoShow);
            this.Options.Properties.Find("UseOptimizedCodeGeneration", true).SetValue(this, options.UseOptimizedCodeGeneration);
            this.Options.Properties.Find("UseSmartTags", true).SetValue(this, options.UseSmartTags);
            this.Options.Properties.Find("UseSnapLines", true).SetValue(this, options.UseSnapLines);

            if (options.UseSnapLines)
            {
                this.Options.Properties.Find("ShowGrid", true).SetValue(this, false);
                this.Options.Properties.Find("SnapToGrid", true).SetValue(this, false);
            }
            else
            {
                this.Options.Properties.Find("ShowGrid", true).SetValue(this, options.ShowGrid);
                this.Options.Properties.Find("SnapToGrid", true).SetValue(this, options.SnapToGrid);
            }
        }
コード例 #2
0
		void ApplySharpDevelopSettings()
		{
			SharpDevelopDesignerOptions options = new SharpDevelopDesignerOptions();

			this.Options.Properties.Find("GridSize", true).SetValue(this, options.GridSize);
			this.Options.Properties.Find("EnableInSituEditing", true).SetValue(this, options.EnableInSituEditing);
			this.Options.Properties.Find("ObjectBoundSmartTagAutoShow", true).SetValue(this, options.ObjectBoundSmartTagAutoShow);
			this.Options.Properties.Find("UseOptimizedCodeGeneration", true).SetValue(this, options.UseOptimizedCodeGeneration);
			this.Options.Properties.Find("UseSmartTags", true).SetValue(this, options.UseSmartTags);
			this.Options.Properties.Find("UseSnapLines", true).SetValue(this, options.UseSnapLines);
			
			if (options.UseSnapLines) {
				this.Options.Properties.Find("ShowGrid", true).SetValue(this, false);
				this.Options.Properties.Find("SnapToGrid", true).SetValue(this, false);
			} else {
				this.Options.Properties.Find("ShowGrid", true).SetValue(this, options.ShowGrid);
				this.Options.Properties.Find("SnapToGrid", true).SetValue(this, options.SnapToGrid);
			}
		}