예제 #1
0
 protected virtual void OnFoundContent(Content content)
 {
     var action = FoundContent;
     if (null != action)
     {
         action(content);
     }
 }
예제 #2
0
파일: Resolver.cs 프로젝트: baens/Esri2011
 public IFactory Resolve(Content content)
 {
     if (Responsible(content))
         return _factory;
     else
     {
         return Sucsessor.Resolve(content);
     }
 }
예제 #3
0
파일: Resolver.cs 프로젝트: baens/Esri2011
 protected abstract bool Responsible(Content content);
예제 #4
0
 protected override bool Responsible(Content content)
 {
     return content.GetType() == typeof(AgsContent);
 }
예제 #5
0
 protected override bool Responsible(Content content)
 {
     return true;
 }
예제 #6
0
 private void FoundContent(Content content)
 {
     _counter++;
     _content = content;
     if (content is MxdContent)
     {
         _mxdContents.Add((MxdContent) content);
     }
 }
예제 #7
0
        public override void Setup()
        {
            _finished = false;
            _counter = 0;
            _content = null;

            _mxdContents = new List<MxdContent>();
        }
예제 #8
0
파일: Fixture.cs 프로젝트: baens/Esri2011
 private void ProcessContent(Content content)
 {
     Console.WriteLine(content.Title);
 }