Beispiel #1
0
        public ShapeSelector(Graphite.Shapes.Manager shapeMan)
        {
            _shapeMan = shapeMan;

            foreach (Graphite.Core.Shape sh in _shapeMan.Shapes)
                Items.Add (sh.name ());

            DropDownStyle = ComboBoxStyle.DropDownList;
            SelectedIndex = 0;
        }
Beispiel #2
0
 public MainWindow()
 {
     _doc      = new Graphite.Core.Document ();
     _state    = new Graphite.Editor.States.Adding (_doc, this);
     _shapeMan = new Graphite.Shapes.Manager ();
     _plugins  = new List<Graphite.Modules.IPlugin>();
     InitializeComponent();
     ConnectModelWithView();
 }