public BcfInstanceViewModel(BcfInstance instance)
 {
     _instance = instance;
     if (_instance != null)
     {
         TopicTitle         = instance.Markup.Topic.Title;
         TopicReferenceLink = instance.Markup.Topic.ReferenceLink;
     }
     GoCam   = new GoCamera(this);
     _addCmt = new AddCommentCommand(this);
 }
 public BcfInstance NewInstance(string instanceName, BitmapImage img, VisualizationInfo vi)
 {
     BcfInstance i = new BcfInstance();
     i.Markup.Topic.Title = instanceName;
     if (img != null)
         i.SnapShot = img;
     if (vi != null)
         i.VisualizationInfo = vi;
     _vm.File.Instances.Add(i);
     return i;
 }
 public BcfInstanceViewModel(BcfInstance instance)
 {
     _instance = instance;
     if (_instance != null)
     {
         TopicTitle = instance.Markup.Topic.Title;
         TopicReferenceLink = instance.Markup.Topic.ReferenceLink;
     }
     GoCam = new GoCamera(this);
     _addCmt = new AddCommentCommand(this);
 }
Beispiel #4
0
        public BcfInstance NewInstance(string instanceName, BitmapImage img, VisualizationInfo vi)
        {
            BcfInstance i = new BcfInstance();

            i.Markup.Topic.Title = instanceName;
            if (img != null)
            {
                i.SnapShot = img;
            }
            if (vi != null)
            {
                i.VisualizationInfo = vi;
            }
            _vm.File.Instances.Add(i);
            return(i);
        }