public CompositeScaleGraphic()
		{
			Graphics.Add(_horizontalScale = new ScaleGraphic {Name = _horizontalName});
			Graphics.Add(_verticalScale = new ScaleGraphic {Name = _verticalName});

			_horizontalScale.Visible = false;
			_horizontalScale.IsMirrored = true;

			_verticalScale.Visible = false;
			_verticalScale.IsMirrored = true;
		}
Пример #2
0
        public CompositeScaleGraphic()
        {
            Graphics.Add(_horizontalScale = new ScaleGraphic {
                Name = _horizontalName
            });
            Graphics.Add(_verticalScale = new ScaleGraphic {
                Name = _verticalName
            });

            _horizontalScale.Visible    = false;
            _horizontalScale.IsMirrored = true;

            _verticalScale.Visible    = false;
            _verticalScale.IsMirrored = true;
        }
Пример #3
0
 private void OnCloneComplete()
 {
     _horizontalScale = Graphics.OfType <ScaleGraphic>().FirstOrDefault(g => g.Name == _horizontalName);
     _verticalScale   = Graphics.OfType <ScaleGraphic>().FirstOrDefault(g => g.Name == _verticalName);
 }
Пример #4
0
		protected ScaleGraphic(ScaleGraphic source, ICloningContext context)
		{
			context.CloneFields(source, this);
		}
Пример #5
0
 protected ScaleGraphic(ScaleGraphic source, ICloningContext context)
 {
     context.CloneFields(source, this);
 }
Пример #6
0
 /// <summary>
 /// Cloning constructor.
 /// </summary>
 /// <param name="source">The source object from which to clone.</param>
 /// <param name="context">The cloning context object.</param>
 private ScaleGraphic(ScaleGraphic source, ICloningContext context)
 {
     context.CloneFields(source, this);
 }
		private void OnCloneComplete()
		{
			_horizontalScale = Graphics.OfType<ScaleGraphic>().FirstOrDefault(g => g.Name == _horizontalName);
			_verticalScale = Graphics.OfType<ScaleGraphic>().FirstOrDefault(g => g.Name == _verticalName);
		}
Пример #8
0
		/// <summary>
		/// Cloning constructor.
		/// </summary>
		/// <param name="source">The source object from which to clone.</param>
		/// <param name="context">The cloning context object.</param>
		private ScaleGraphic(ScaleGraphic source, ICloningContext context)
		{
			context.CloneFields(source, this);
		}
 private void OnCloneComplete()
 {
     _horizontalScale = (ScaleGraphic)CollectionUtils.SelectFirst(Graphics, graphic => graphic is ScaleGraphic && graphic.Name == _horizontalName);
     _verticalScale   = (ScaleGraphic)CollectionUtils.SelectFirst(Graphics, graphic => graphic is ScaleGraphic && graphic.Name == _verticalName);
 }
Пример #10
0
 private void OnCloneComplete()
 {
     _horizontalScale = (ScaleGraphic)CollectionUtils.SelectFirst(Graphics, graphic => graphic is ScaleGraphic && graphic.Name == _horizontalName);
     _verticalScale = (ScaleGraphic)CollectionUtils.SelectFirst(Graphics, graphic => graphic is ScaleGraphic && graphic.Name == _verticalName);
 }