Beispiel #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            // Set base stuff
            _state = State.Pointer;
            _color = System.Drawing.Color.Red;
            _objects = new List<GraphicalObject>();
            _form = new MainForm(_color);
            _caretaker = new Caretaker();
            //_caretaker.add(new Memento(_objects));
            // Create the main window
            Application.Run(_form);
        }
Beispiel #2
0
 internal static void reset()
 {
     _objects = new List<GraphicalObject>();
     _caretaker = new Caretaker();
     redoUndoCheck();
     repaint();
 }