Ejemplo n.º 1
0
 public void ShowColorEditor()
 {
     if (shapeManager.SelectedIndex != -1 && !(shapeManager.GetSelectedShape() is ShapeClipRectangle))
     {
         FormColorEditor FCE = new FormColorEditor(shapeManager.GetSelectedShape().painter);
         FCE.ShowDialog();
         FCE.Dispose();
     }
 }
Ejemplo n.º 2
0
 private void frmShapeProperties_Load(object sender, EventArgs e)
 {
     if (refManager.GetSelectedShape() is ShapeClipRectangle ||
         refManager.SelectedIndex == -1)
     {
         pnlSelectedShapeBack.Enabled = false;
         tabControl1.SelectedIndex    = 1; //All Shapes
     }
     else
     {
         txtShapeName1.Text = refManager.GetSelectedShape().Name;
         UpdateChkList(chkLstProperties1, refManager.GetSelectedShape());
     }
 }