Exemplo n.º 1
0
 public static void Initialize(         
  IConsole console,
  ISurface surface,
  IStyle style,
  IDrawings drawing,
  IShapes shapes,
  IImages images,
  IControls controls,
  ISounds sounds,         
  IKeyboard keyboard,
  IMouse mouse,
  ITimer timer,
  IFlickr flickr,
  ISpeech speech,
  CancellationToken token)
 {
     TextWindow.Init(console);
      Desktop.Init(surface);
      GraphicsWindow.Init(style, surface, drawing, keyboard, mouse);
      Shapes.Init(shapes);
      ImageList.Init(images);
      Turtle.Init(surface, drawing, shapes);
      Controls.Init(controls);
      Sound.Init(sounds);
      Timer.Init(timer);
      Stack.Init();
      Flickr.Init(flickr);
      Speech.Init(speech);
      Program.Init(token);
 }
Exemplo n.º 2
0
 public static void Initialize(
     IConsole console,
     ISurface surface,
     IStyle style,
     IDrawings drawing,
     IShapes shapes,
     IImages images,
     IControls controls,
     ISounds sounds,
     IKeyboard keyboard,
     IMouse mouse,
     ITimer timer,
     IFlickr flickr,
     ISpeech speech,
     CancellationToken token)
 {
     TextWindow.Init(console);
     Desktop.Init(surface);
     GraphicsWindow.Init(style, surface, drawing, keyboard, mouse);
     Shapes.Init(shapes);
     ImageList.Init(images);
     Turtle.Init(surface, drawing, shapes);
     Controls.Init(controls);
     Sound.Init(sounds);
     Timer.Init(timer);
     Stack.Init();
     Flickr.Init(flickr);
     Speech.Init(speech);
     Program.Init(token);
 }
Exemplo n.º 3
0
 internal static void Init(ISurface surface, IDrawings drawings, IShapes shapes)
 {
     _graphics  = drawings;
     _shapes    = shapes;
     X          = surface.Width / 2.0;
     Y          = surface.Height / 2.0;
     Angle      = 0;
     _isPenDown = true;
     Hide();
 }
Exemplo n.º 4
0
 internal static void Init(
     IStyle style,
     ISurface surface,
     IDrawings graphics,
     IKeyboard keyboard,
     IMouse mouse)
 {
     _surface   = surface;
     _drawings  = graphics;
     _keyboard  = keyboard;
     _style     = style;
     _mouse     = mouse;
     PenWidth   = 2.0;
     BrushColor = "purple";
     PenColor   = "black";
     FontSize   = 12;
     FontName   = "Tahoma";
 }
Exemplo n.º 5
0
 internal static void Init(
  IStyle style, 
  ISurface surface, 
  IDrawings graphics, 
  IKeyboard keyboard,      
  IMouse mouse)
 {
     _surface = surface;
      _drawings = graphics;
      _keyboard = keyboard;
      _style = style;
      _mouse = mouse;
      PenWidth = 2.0;
      BrushColor = "purple";
      PenColor = "black";
      FontSize = 12;
      FontName = "Tahoma";
 }
Exemplo n.º 6
0
 internal static void Init(ISurface surface, IDrawings drawings, IShapes shapes)
 {
     _graphics = drawings;
      _shapes = shapes;
      X = surface.Width / 2.0;
      Y = surface.Height / 2.0;
      Angle = 0;
      _isPenDown = true;
      Hide();
 }