예제 #1
0
파일: ViewSet.cs 프로젝트: zpavic/dotnet
        public SystemLandscapeView CreateSystemLandscapeView(string key, string description)
        {
            AssertThatTheViewKeyIsUnique(key);

            SystemLandscapeView view = new SystemLandscapeView(Model, key, description);

            SystemLandscapeViews.Add(view);
            return(view);
        }
예제 #2
0
파일: ViewSet.cs 프로젝트: zpavic/dotnet
 private SystemLandscapeView FindSystemLandscapeView(SystemLandscapeView systemLandscapeView)
 {
     return(SystemLandscapeViews.FirstOrDefault(view => view.Key == systemLandscapeView.Key));
 }