Example #1
0
 private Map CreateMap()
 {
     Map map = new Map();
     map.Name = Name;
     map.User = GeneralVM.ActiveUser;
     map.UserId = map.User.UserId;
     map.FilePath = @".\" + GeneralVM.ActiveUser.Login + @"\" + map.Name + @".mmp";
     map.Height = 600;
     map.Width = 800;
     return map;
 }
Example #2
0
        private Topic CreateTopicAndAddToMap(Map map)
        {
            TopicWorker worker = new TopicWorker(new MainTopicFactory(), map, null, new LineConnection());
            var topic = worker.GetTopic();

            topic.Name = map.Name;
            map.Topics.Add(topic);
            GeneralVM.ActiveUser.Maps.Add(map);
            GeneralVM.ActiveMaps.Add(map);
            return topic;
        }