예제 #1
0
        public override void Match(PreviewBaseShape matchShape)
        {
            PreviewFlood shape = (matchShape as PreviewFlood);

            PixelSize = shape.PixelSize;
            Layout();
        }
예제 #2
0
 private void PopulatePropList(PreviewBaseShape selectedShape = null)
 {
     comboBoxStringToEdit.Items.Clear();
     foreach (PreviewBaseShape shape in Shape._strings) {
         Common.Controls.ComboBoxItem item = new Common.Controls.ComboBoxItem(shape.Name, shape);
         if (item.Text == null) {
             item.Text = shape.GetType().ToString();
             item.Text = item.Text.Substring(item.Text.LastIndexOf('.') + 1);
         }
         comboBoxStringToEdit.Items.Add(item);
     }
     if (comboBoxStringToEdit.Items.Count > 0) {
         if (selectedShape != null) {
             foreach (Common.Controls.ComboBoxItem item in comboBoxStringToEdit.Items)
             {
                 if ((item.Value as PreviewBaseShape) == selectedShape) {
                     comboBoxStringToEdit.SelectedItem = item;
                     return;
                 }
             }
         }
         else {
             comboBoxStringToEdit.SelectedIndex = 0;
         }
     }
 }
예제 #3
0
 public PreviewSingleSetupControl(PreviewBaseShape shape)
     : base(shape)
 {
     InitializeComponent();
     propertyGrid.SelectedObject = Shape;
     Shape.OnPropertiesChanged += OnPropertiesChanged;
 }
예제 #4
0
 private void PopulatePropList(PreviewBaseShape selectedShape = null)
 {
     comboBoxStringToEdit.Items.Clear();
     foreach (PreviewBaseShape shape in Shape._strings)
     {
         Common.Controls.ComboBoxItem item = new Common.Controls.ComboBoxItem(shape.Name, shape);
         if (item.Text == null)
         {
             item.Text = shape.GetType().ToString();
             item.Text = item.Text.Substring(item.Text.LastIndexOf('.') + 1);
         }
         comboBoxStringToEdit.Items.Add(item);
     }
     if (comboBoxStringToEdit.Items.Count > 0)
     {
         if (selectedShape != null)
         {
             foreach (Common.Controls.ComboBoxItem item in comboBoxStringToEdit.Items)
             {
                 if ((item.Value as PreviewBaseShape) == selectedShape)
                 {
                     comboBoxStringToEdit.SelectedItem = item;
                     return;
                 }
             }
         }
         else
         {
             comboBoxStringToEdit.SelectedIndex = 0;
         }
     }
 }
예제 #5
0
 public void FireOnPropertiesChanged(Object sender, PreviewBaseShape shape)
 {
     if (OnPropertiesChanged != null)
     {
         OnPropertiesChanged(sender, shape);
     }
 }
예제 #6
0
        public override void Match(PreviewBaseShape matchShape)
        {
            PreviewMultiString shape = (matchShape as PreviewMultiString);

            PixelSize = shape.PixelSize;
            Layout();
        }
예제 #7
0
        public PreviewMegaTreeSetupControl(PreviewBaseShape shape) : base(shape)
        {
            InitializeComponent();
            _tree = Shape as PreviewMegaTree;
            Setup();

            Shape.OnPropertiesChanged += OnPropertiesChanged;
        }
예제 #8
0
 public PreviewCustomSetupControl(PreviewBaseShape shape)
     : base(shape)
 {
     InitializeComponent();
     foreach (PreviewBaseShape stringShape in Shape._strings) {
         stringShape.OnPropertiesChanged += OnPropertiesChanged;
     }
 }
예제 #9
0
        public override void Match(PreviewBaseShape matchShape)
        {
            PreviewCustom shape = (matchShape as PreviewCustom);

            PixelSize = shape.PixelSize;
            // TODO
            Layout();
        }
예제 #10
0
 public override void Match(PreviewBaseShape matchShape)
 {
     //PreviewPolyLine shape = (matchShape as PreviewPolyLine);
     //PixelSize = shape.PixelSize;
     //_points[1].X = _points[0].X + (shape._points[1].X - shape._points[0].X);
     //_points[1].Y = _points[0].Y + (shape._points[1].Y - shape._points[0].Y);
     //Layout();
 }
예제 #11
0
 public PreviewCustomSetupControl(PreviewBaseShape shape) : base(shape)
 {
     InitializeComponent();
     foreach (PreviewBaseShape stringShape in Shape._strings)
     {
         stringShape.OnPropertiesChanged += OnPropertiesChanged;
     }
 }
예제 #12
0
        public PreviewMegaTreeSetupControl(PreviewBaseShape shape)
            : base(shape)
        {
            InitializeComponent();
            _tree = Shape as PreviewMegaTree;
            Setup();

            Shape.OnPropertiesChanged += OnPropertiesChanged;
        }
예제 #13
0
 public void ShowSetupControl(PreviewBaseShape shape)
 {
     panelProperties.Controls.Clear();
     Shapes.DisplayItemBaseControl setupControl = shape.GetSetupControl();
     if (setupControl != null) {
         panelProperties.Controls.Add(setupControl);
         setupControl.Dock = DockStyle.Fill;
     }
 }
예제 #14
0
        public override void Match(PreviewBaseShape matchShape)
        {
            PreviewEllipse shape = (matchShape as PreviewEllipse);

            PixelSize      = shape.PixelSize;
            _bottomRight.X = TopLeft.X + (shape.BottomRight.X - shape.TopLeft.X);
            _bottomRight.Y = TopLeft.Y + (shape.BottomRight.Y - shape.TopLeft.Y);
            Layout();
        }
예제 #15
0
        public override void Match(PreviewBaseShape matchShape)
        {
            PreviewArch shape = (matchShape as PreviewArch);

            Width     = shape.Width;
            Height    = shape.Height;
            PixelSize = shape.PixelSize;
            Layout();
        }
예제 #16
0
        public override void Match(PreviewBaseShape matchShape)
        {
            PreviewIcicle shape = (matchShape as PreviewIcicle);

            PixelSize    = shape.PixelSize;
            _points[1].X = _points[0].X + (shape._points[1].X - shape._points[0].X);
            _points[1].Y = _points[0].Y + (shape._points[1].Y - shape._points[0].Y);
            Layout();
        }
예제 #17
0
 public void SetStrings(List <PreviewBaseShape> strings)
 {
     _strings = new List <PreviewBaseShape>();
     foreach (PreviewBaseShape line in strings)
     {
         PreviewBaseShape newLine = (PreviewLine)line.Clone();
         _strings.Add(newLine);
     }
     _stringCount = _strings.Count();
 }
예제 #18
0
 public PreviewLineSetupControl(PreviewBaseShape shape) : base(shape)
 {
     InitializeComponent();
     ForeColor = ThemeColorTable.ForeColor;
     BackColor = ThemeColorTable.BackgroundColor;
     ThemeUpdateControls.UpdateControls(this);
     ThemePropertyGridRenderer.PropertyGridRender(propertyGrid);
     propertyGrid.SelectedObject = Shape;
     Shape.OnPropertiesChanged  += OnPropertiesChanged;
 }
예제 #19
0
 public void ShowSetupControl(PreviewBaseShape shape)
 {
     panelProperties.Controls.Clear();
     Shapes.DisplayItemBaseControl setupControl = shape.GetSetupControl();
     if (setupControl != null)
     {
         panelProperties.Controls.Add(setupControl);
         setupControl.Dock = DockStyle.Fill;
     }
 }
예제 #20
0
		public PreviewLineSetupControl(PreviewBaseShape shape) : base(shape)
		{
			InitializeComponent();
			ForeColor = ThemeColorTable.ForeColor;
			BackColor = ThemeColorTable.BackgroundColor;
			ThemeUpdateControls.UpdateControls(this);
			ThemePropertyGridRenderer.PropertyGridRender(propertyGrid);
			propertyGrid.SelectedObject = Shape;
			Shape.OnPropertiesChanged += OnPropertiesChanged;
		}
예제 #21
0
파일: DisplayItem.cs 프로젝트: stewmc/vixen
 protected void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (_shape != null)
         {
             _shape.Dispose();
         }
     }
     _shape = null;
 }
예제 #22
0
		public PreviewMegaTreeSetupControl(PreviewBaseShape shape) : base(shape)
		{
			InitializeComponent();
			ForeColor = ThemeColorTable.ForeColor;
			BackColor = ThemeColorTable.BackgroundColor;
			ThemeUpdateControls.UpdateControls(this);
			_tree = Shape as PreviewMegaTree;
			Setup();

			Shape.OnPropertiesChanged += OnPropertiesChanged;
		}
예제 #23
0
        public PreviewMegaTreeSetupControl(PreviewBaseShape shape) : base(shape)
        {
            InitializeComponent();
            ForeColor = ThemeColorTable.ForeColor;
            BackColor = ThemeColorTable.BackgroundColor;
            ThemeUpdateControls.UpdateControls(this);
            _tree = Shape as PreviewMegaTree;
            Setup();

            Shape.OnPropertiesChanged += OnPropertiesChanged;
        }
예제 #24
0
        public override void Match(PreviewBaseShape matchShape)
        {
            PreviewCane shape = (matchShape as PreviewCane);

            PixelSize           = shape.PixelSize;
            _bottomRightPoint.X = TopLeft.X + (shape.BottomRight.X - shape.TopLeft.X);
            _bottomRightPoint.Y = TopLeft.Y + (shape.BottomRight.Y - shape.TopLeft.Y);
            //_archLeftPoint.X = shape.X;
            _archLeftPoint.Y = _bottomRightPoint.Y - (shape._bottomRightPoint.Y - shape._archLeftPoint.Y);
            Layout();
        }
예제 #25
0
		public PreviewCustomSetupControl(PreviewBaseShape shape) : base(shape)
		{
			InitializeComponent();
			ForeColor = ThemeColorTable.ForeColor;
			BackColor = ThemeColorTable.BackgroundColor;
			ThemeUpdateControls.UpdateControls(this);
			comboBoxStringToEdit.ForeColor = ThemeColorTable.ForeColor;
			foreach (PreviewBaseShape stringShape in Shape._strings) {
				stringShape.OnPropertiesChanged += OnPropertiesChanged;
			}
		}
 private void OnPropertiesChanged(object sender, PreviewBaseShape shape)
 {
     if (InvokeRequired)
     {
         BeginInvoke(new Action(propertyGrid.Refresh));
     }
     else
     {
         propertyGrid.Refresh();
     }
 }
예제 #27
0
        public void ShowSetupControl(PreviewBaseShape shape)
        {
            panelProperties.Controls.Clear();
            DisplayItemBaseControl setupControl = shape.GetSetupControl();

            if (setupControl != null)
            {
                panelProperties.Controls.Add(setupControl);
                //setupControl.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Bottom;
                setupControl.Dock = DockStyle.Fill;
            }
        }
예제 #28
0
        public override void Match(PreviewBaseShape matchShape)
        {
            PreviewStar shape = (matchShape as PreviewStar);

            PixelSize           = shape.PixelSize;
            PointCount          = shape.PointCount;
            InsideSize          = shape.InsideSize;
            XYRotation          = shape.XYRotation;
            _bottomRightPoint.X = _topLeftPoint.X + (shape._bottomRightPoint.X - shape._topLeftPoint.X);
            _bottomRightPoint.Y = _topLeftPoint.Y + (shape._bottomRightPoint.Y - shape._topLeftPoint.Y);
            Layout();
        }
예제 #29
0
        private void buttonOK_Click(object sender, EventArgs e)
        {
            if (connectStandardStrings && _shapes[0].StringType == PreviewBaseShape.StringTypes.Standard)
            {
                PreviewBaseShape shape = _shapes[0];
                for (int i = 0; i < _shapes.Count; i++)
                {
                    foreach (PreviewPixel pixel in _shapes[i]._pixels)
                    {
                        pixel.Node   = _strings[0].Pixels[0].Node;
                        pixel.NodeId = _strings[0].Pixels[0].NodeId;
                    }
                }
            }
            else
            {
                // shapes with count==0 don't show up in combo box so keep separate index
                int comboidx = -1;
                for (int i = 0; i < _shapes.Count; i++)
                {
                    //Console.WriteLine("i=" + i.ToString());
                    if (_shapes[i].Pixels.Count == 0)
                    {
                        continue;
                    }
                    comboidx++;
                    Common.Controls.ComboBoxItem item        = comboStrings.Items[comboidx] as Common.Controls.ComboBoxItem;
                    PreviewSetElementString      lightString = item.Value as PreviewSetElementString;
                    PreviewBaseShape             shape       = _shapes[i];
                    for (int pixelNum = 0; pixelNum < lightString.Pixels.Count; pixelNum++)
                    {
                        //Console.WriteLine("   pixelNum=" + pixelNum.ToString());
                        // If this is a standard light string, assing ALL pixels to the first node
                        if (shape.StringType == PreviewBaseShape.StringTypes.Standard)
                        {
                            foreach (PreviewPixel pixel in shape._pixels)
                            {
                                //Console.WriteLine("       pixel:" + lightString.Pixels[0].Node.Id.ToString());
                                pixel.Node   = _strings[i].Pixels[0].Node;
                                pixel.NodeId = _strings[i].Pixels[0].NodeId;
                            }
                        }
                        else
                        {
                            shape.Pixels[pixelNum] = lightString.Pixels[pixelNum];
                        }
                    }
                }
            }

            DialogResult = System.Windows.Forms.DialogResult.OK;
            Close();
        }
예제 #30
0
        public override void Match(PreviewBaseShape matchShape)
        {
            PreviewPixelGrid shape = (matchShape as PreviewPixelGrid);

            PixelSize         = shape.PixelSize;
            StringOrientation = shape.StringOrientation;

            _bottomRight.X = _topLeft.X + (shape._bottomRight.X - shape._topLeft.X);
            _bottomRight.Y = _topLeft.Y + (shape._bottomRight.Y - shape.TopRight.Y);

            Layout();
        }
예제 #31
0
 public PreviewCustomSetupControl(PreviewBaseShape shape) : base(shape)
 {
     InitializeComponent();
     ForeColor = ThemeColorTable.ForeColor;
     BackColor = ThemeColorTable.BackgroundColor;
     ThemeUpdateControls.UpdateControls(this);
     comboBoxStringToEdit.ForeColor = ThemeColorTable.ForeColor;
     foreach (PreviewBaseShape stringShape in Shape._strings)
     {
         stringShape.OnPropertiesChanged += OnPropertiesChanged;
     }
 }
예제 #32
0
 private void comboBoxStringToEdit_SelectedIndexChanged(object sender, EventArgs e)
 {
     Common.Controls.ComboBoxItem item = comboBoxStringToEdit.SelectedItem as Common.Controls.ComboBoxItem;
     if (item != null)
     {
         PreviewBaseShape shape = item.Value as PreviewBaseShape;
         if (shape != null)
         {
             ShowSetupControl(shape);
         }
     }
 }
예제 #33
0
        public override void Match(PreviewBaseShape matchShape)
        {
            PreviewMegaTree shape = (matchShape as PreviewMegaTree);

            PixelSize     = shape.PixelSize;
            TopHeight     = shape.TopHeight;
            TopWidth      = shape.TopWidth;
            BaseHeight    = shape.BaseHeight;
            Degrees       = shape.Degrees;
            BottomRight.X = _topLeft.X + (shape.BottomRight.X - shape._topLeft.X);
            BottomRight.Y = _topLeft.Y + (shape.BottomRight.Y - shape._topLeft.Y);
            Layout();
        }
예제 #34
0
        public override void Match(PreviewBaseShape matchShape)
        {
            PreviewTriangle shape = (matchShape as PreviewTriangle);

            PixelSize = shape.PixelSize;
            _point2.X = _point1.X + (shape._point2.X - shape._point1.X);
            _point2.Y = _point1.Y + (shape._point2.Y - shape._point1.Y);
            _point3.X = _point1.X + (shape._point3.X - shape._point1.X);
            _point3.Y = _point1.Y + (shape._point3.Y - shape._point1.Y);
            //_point1.X = _topLeft.X + (shape._bottomRight.X - shape._topLeft.X);
            //_bottomRight.Y = _topLeft.Y + (shape._bottomRight.Y - shape._topLeft.Y);
            Layout();
        }
예제 #35
0
        public override void Match(PreviewBaseShape matchShape)
        {
            PreviewStarBurst shape = (matchShape as PreviewStarBurst);

            PixelSize       = shape.PixelSize;
            StringCount     = shape.StringCount;
            InnerCircleSize = shape.InnerCircleSize;
            Direction       = shape.Direction;
            XYRotation      = shape.XYRotation;
            _topRight.X     = _topLeft.X + (shape._topRight.X - shape._topLeft.X);
            _topRight.Y     = _topLeft.Y + (shape._topRight.Y - shape._topLeft.Y);
            _bottomLeft.X   = _topLeft.X + (shape._bottomLeft.X - shape._topLeft.X);
            _bottomLeft.Y   = _topLeft.Y + (shape._bottomLeft.Y - shape._topLeft.Y);
            Layout();
        }
예제 #36
0
        public override void Match(PreviewBaseShape matchShape)
        {
            PreviewRectangle shape = (matchShape as PreviewRectangle);

            PixelSize      = shape.PixelSize;
            _topRight.X    = _topLeft.X + (shape._topRight.X - shape._topLeft.X);
            _topRight.Y    = _topLeft.Y + (shape._topRight.Y - shape._topRight.Y);
            _bottomRight.X = _topLeft.X + (shape._bottomRight.X - shape._topLeft.X);
            _bottomRight.Y = _topLeft.Y + (shape._bottomRight.Y - shape._topRight.Y);
            _bottomLeft.X  = _topLeft.X + (shape._bottomLeft.X - shape._topLeft.X);
            _bottomLeft.Y  = _topLeft.Y + (shape._bottomLeft.Y - shape._topRight.Y);
            _topRight.X    = _topLeft.X + (shape._topRight.X - shape._topLeft.X);
            _topRight.Y    = _topLeft.Y + (shape._topRight.Y - shape._topRight.Y);
            Layout();
        }
예제 #37
0
        public PreviewCustomPropSetupControl(PreviewBaseShape shape) : base(shape)
        {
            InitializeComponent();
            ForeColor = ThemeColorTable.ForeColor;
            BackColor = ThemeColorTable.BackgroundColor;

            ThemeUpdateControls.UpdateControls(this);
            ThemePropertyGridRenderer.PropertyGridRender(propertyGrid);

            buttonHelp.BackColor = Color.Transparent;
            buttonHelp.FlatStyle = FlatStyle.Flat;

            propertyGrid.SelectedObject = Shape;
            Shape.OnPropertiesChanged  += OnPropertiesChanged;
        }
예제 #38
0
        public override object Clone()
        {
            PreviewMegaTree newTree = (PreviewMegaTree)this.MemberwiseClone();

            newTree._strings = new List <PreviewBaseShape>();
            foreach (PreviewBaseShape line in _strings)
            {
                PreviewBaseShape newLine = (PreviewLine)line.Clone();
                newTree._strings.Add(newLine);
            }
            newTree._topLeft     = new PreviewPoint(_topLeft);
            newTree._bottomRight = new PreviewPoint(_bottomRight);

            return(newTree);
        }
예제 #39
0
 public override void Match(PreviewBaseShape matchShape)
 {
     PreviewCustom shape = (matchShape as PreviewCustom);
     PixelSize = shape.PixelSize;
     // TODO
     Layout();
 }
예제 #40
0
파일: PreviewCane.cs 프로젝트: stewmc/vixen
 public override void Match(PreviewBaseShape matchShape)
 {
     PreviewCane shape = (matchShape as PreviewCane);
     PixelSize = shape.PixelSize;
     _bottomRightPoint.X = TopLeft.X + (shape.BottomRight.X - shape.TopLeft.X);
     _bottomRightPoint.Y = TopLeft.Y + (shape.BottomRight.Y - shape.TopLeft.Y);
     //_archLeftPoint.X = shape.X;
     _archLeftPoint.Y = _bottomRightPoint.Y - (shape._bottomRightPoint.Y - shape._archLeftPoint.Y);
     Layout();
 }
예제 #41
0
 public void FireOnPropertiesChanged(Object sender, PreviewBaseShape shape)
 {
     if (OnPropertiesChanged != null)
         OnPropertiesChanged(sender, shape);
 }
예제 #42
0
 public override void Match(PreviewBaseShape matchShape)
 {
     PreviewMultiString shape = (matchShape as PreviewMultiString);
     PixelSize = shape.PixelSize;
     Layout();
 }
예제 #43
0
 public override void Match(PreviewBaseShape matchShape)
 {
     PreviewStar shape = (matchShape as PreviewStar);
     PixelSize = shape.PixelSize;
     PointCount = shape.PointCount;
     InsideSize = shape.InsideSize;
     XYRotation = shape.XYRotation;
     _bottomRightPoint.X = _topLeftPoint.X + (shape._bottomRightPoint.X - shape._topLeftPoint.X);
     _bottomRightPoint.Y = _topLeftPoint.Y + (shape._bottomRightPoint.Y - shape._topLeftPoint.Y);
     Layout();
 }
예제 #44
0
        public override void Match(PreviewBaseShape matchShape)
        {
            PreviewPixelGrid shape = (matchShape as PreviewPixelGrid);
            PixelSize = shape.PixelSize;
            StringOrientation = shape.StringOrientation;

            _bottomRight.X = _topLeft.X + (shape._bottomRight.X - shape._topLeft.X);
            _bottomRight.Y = _topLeft.Y + (shape._bottomRight.Y - shape.TopRight.Y);

            Layout();
        }
예제 #45
0
 public override void Match(PreviewBaseShape matchShape)
 {
     PreviewStarBurst shape = (matchShape as PreviewStarBurst);
     PixelSize = shape.PixelSize;
     StringCount = shape.StringCount;
     InnerCircleSize = shape.InnerCircleSize;
     Direction = shape.Direction;
     XYRotation = shape.XYRotation;
     _topRight.X = _topLeft.X + (shape._topRight.X - shape._topLeft.X);
     _topRight.Y = _topLeft.Y + (shape._topRight.Y - shape._topLeft.Y);
     //_bottomLeft.X = _topLeft.X + (shape._bottomLeft.X - shape._topLeft.X);
     //_bottomLeft.Y = _topLeft.Y + (shape._bottomLeft.Y - shape._topLeft.Y);
     _bottomRight.X = _topLeft.X + (shape._bottomRight.X - shape._topLeft.X);
     _bottomRight.Y = _topLeft.Y + (shape._bottomRight.Y - shape._topLeft.Y);
     Layout();
 }
예제 #46
0
 public override void Match(PreviewBaseShape matchShape)
 {
     PreviewLine shape = (matchShape as PreviewLine);
     PixelSize = shape.PixelSize;
     _points[1].X = _points[0].X + (shape._points[1].X - shape._points[0].X);
     _points[1].Y = _points[0].Y + (shape._points[1].Y - shape._points[0].Y);
     Layout();
 }
예제 #47
0
 public override void Match(PreviewBaseShape matchShape)
 {
     PreviewRectangle shape = (matchShape as PreviewRectangle);
     PixelSize = shape.PixelSize;
     _topRight.X = _topLeft.X + (shape._topRight.X - shape._topLeft.X);
     _topRight.Y = _topLeft.Y + (shape._topRight.Y - shape._topRight.Y);
     _bottomRight.X = _topLeft.X + (shape._bottomRight.X - shape._topLeft.X);
     _bottomRight.Y = _topLeft.Y + (shape._bottomRight.Y - shape._topRight.Y);
     _bottomLeft.X = _topLeft.X + (shape._bottomLeft.X - shape._topLeft.X);
     _bottomLeft.Y = _topLeft.Y + (shape._bottomLeft.Y - shape._topRight.Y);
     _topRight.X = _topLeft.X + (shape._topRight.X - shape._topLeft.X);
     _topRight.Y = _topLeft.Y + (shape._topRight.Y - shape._topRight.Y);
     Layout();
 }
예제 #48
0
 public override void Match(PreviewBaseShape matchShape)
 {
     PreviewEllipse shape = (matchShape as PreviewEllipse);
     PixelSize = shape.PixelSize;
     _bottomRight.X = TopLeft.X + (shape.BottomRight.X - shape.TopLeft.X);
     _bottomRight.Y = TopLeft.Y + (shape.BottomRight.Y - shape.TopLeft.Y);
     Layout();
 }
예제 #49
0
		public abstract void Match(PreviewBaseShape matchShape);
예제 #50
0
 public override void Match(PreviewBaseShape matchShape)
 {
     PreviewMegaTree shape = (matchShape as PreviewMegaTree);
     LightsPerString = shape.LightsPerString;
     StringCount = shape.StringCount;
     PixelSize = shape.PixelSize;
     TopHeight = shape.TopHeight;
     TopWidth = shape.TopWidth;
     BaseHeight = shape.BaseHeight;
     Degrees = shape.Degrees;
     _bottomRight.X = _topLeft.X + (shape._bottomRight.X - shape._topLeft.X);
     _bottomRight.Y = _topLeft.Y + (shape._bottomRight.Y - shape._topLeft.Y);
     Layout();
 }
예제 #51
0
파일: PreviewArch.cs 프로젝트: komby/vixen
 public override void Match(PreviewBaseShape matchShape)
 {
     PreviewArch shape = (matchShape as PreviewArch);
     Width = shape.Width;
     Height = shape.Height;
     PixelSize = shape.PixelSize;
     Layout();
 }
예제 #52
0
 private void OnPropertiesChanged(object sender, PreviewBaseShape shape)
 {
     propertyGrid.Refresh();
 }
예제 #53
0
		private void OnPropertiesChanged(object sender, PreviewBaseShape shape)
		{
		}
예제 #54
0
 private void OnPropertiesChanged(object sender, PreviewBaseShape shape)
 {
     PopulatePropList((comboBoxStringToEdit.SelectedItem as Common.Controls.ComboBoxItem).Value as PreviewBaseShape);
 }
예제 #55
0
 public override void Match(PreviewBaseShape matchShape)
 {
     PreviewFlood shape = (matchShape as PreviewFlood);
     PixelSize = shape.PixelSize;
     Layout();
 }
예제 #56
0
 public override void Match(PreviewBaseShape matchShape)
 {
     PreviewTriangle shape = (matchShape as PreviewTriangle);
     PixelSize = shape.PixelSize;
     _point2.X = _point1.X + (shape._point2.X - shape._point1.X);
     _point2.Y = _point1.Y + (shape._point2.Y - shape._point1.Y);
     _point3.X = _point1.X + (shape._point3.X - shape._point1.X);
     _point3.Y = _point1.Y + (shape._point3.Y - shape._point1.Y);
     //_point1.X = _topLeft.X + (shape._bottomRight.X - shape._topLeft.X);
     //_bottomRight.Y = _topLeft.Y + (shape._bottomRight.Y - shape._topLeft.Y);
     Layout();
 }
예제 #57
0
 public DisplayItemBaseControl(PreviewBaseShape shape)
 {
     _shape = shape;
     InitializeComponent();
 }