public override Mkamo.Common.Command.ICommand CreateCommand(Mkamo.Editor.Core.IRequest request)
        {
            var req = request as FreehandRequest;

            if (req == null)
            {
                return(null);
            }

            return(new CreateFreehandCommand(_Host, req.ModelFactory, req.Points, req.Width, req.Color));
        }
Exemple #2
0
        // ========================================
        // method
        // ========================================
        public override bool CanUnderstand(Mkamo.Editor.Core.IRequest request)
        {
            var req = request as CombineRequest;

            if (req == null)
            {
                return(false);
            }

            return(_judge(_Host, req.Combineds));
        }