コード例 #1
0
    public override void HandleNotification(INotification notification)
    {
        switch (notification.Name)
        {
        //case MsgType.SELECT_CHANGED:
        //    break;
        case MsgType.SELET_DELETE:
            manager.SelectDelete((List <Point>)notification.Body);
            OnSelectEnd();
            break;

        case MsgType.CHANGE_CUBE:
            manager.ChangeCubes((List <Point>)notification.Body);
            break;

        case MsgType.ADD_CUBE:
            manager.AddCubes((List <Point>)notification.Body);
            break;
        }
    }