示例#1
0
        protected override void OnStart()
        {
            base.OnStart();

            _mosaicController = _bootstrap.GetController(ControllerTypes.Mosaic) as MosaicController;
            Grid = _bootstrap.GetModel(ModelTypes.Grid) as GridData;

            if (Grid.gridGenerated)
            {
                GeneretaMosaic();
            }
            else
            {
                Grid.GridGenerated += GeneretaMosaic;
            }
        }
示例#2
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="MosaicForm" /> class.
 /// </summary>
 public MosaicForm()
 {
     this.InitializeComponent();
     this.mosaicManager = new MosaicController();
     this.imagePalette  = new ImageList();
 }