Example #1
0
        public RectangleShape(ScreenshotEditor editor, Color color, int thickness, PointF p, ShapeSettingsPanel panel)
            : base(editor, color, thickness, panel)
        {
            addHandle("start", p);
            addHandle("end", p);

            sp = (ShadowAndFillingSettingsPanel)panel;
        }
Example #2
0
 public RectangleShape(ScreenshotEditor editor, XPathNavigator element) : base(editor, element, createSettingsPanel())
 {
     sp = (ShadowAndFillingSettingsPanel)settingsPanel;
     sp.chkUseShadow.Checked = bool.Parse(element.GetAttribute("shadow", ""));
     sp.chkFill.Checked      = bool.Parse(element.GetAttribute("filled", ""));
 }