Example #1
0
 private void AddSingleIdeaGroup(IdeationUnit ideaGroup)
 {
     try
     {
         IdeaGroupUI groupUI = new IdeaGroupUI();
         groupUI.setNoteID(ideaGroup.Id);
         groupUI.Tag = ideaGroup;
         groupUI.update(ideaGroup);
         ScatterViewItem container = new ScatterViewItem();
         container.Content     = groupUI;
         container.Background  = new SolidColorBrush(System.Windows.Media.Color.FromArgb(0, 0, 0, 0));
         container.Width       = groupUI.Width;
         container.Height      = groupUI.Height;
         container.Orientation = 0;
         container.CanScale    = false;
         container.CanRotate   = false;
         container.Center      = new System.Windows.Point(ideaGroup.CenterX, ideaGroup.CenterY);
         groupUI.InitContainer(container);
         sv_MainCanvas.Items.Add(container);
     }
     catch (Exception ex)
     {
         Utilities.UtilitiesLib.LogError(ex);
     }
 }
Example #2
0
 private void AddSingleIdeaGroup(IdeationUnit ideaGroup)
 {
     try
     {
         IdeaGroupUI groupUI = new IdeaGroupUI();
         groupUI.setNoteID(ideaGroup.Id);
         groupUI.Tag = ideaGroup;
         groupUI.update(ideaGroup);
         ScatterViewItem container = new ScatterViewItem();
         container.Content = groupUI;
         container.Background = new SolidColorBrush(System.Windows.Media.Color.FromArgb(0, 0, 0, 0));
         container.Width = groupUI.Width;
         container.Height = groupUI.Height;
         container.Orientation = 0;
         container.CanScale = false;
         container.CanRotate = false;
         container.Center = new System.Windows.Point(ideaGroup.CenterX, ideaGroup.CenterY);
         groupUI.InitContainer(container);
         sv_MainCanvas.Items.Add(container);
     }
     catch (Exception ex)
     {
         Utilities.UtilitiesLib.LogError(ex);
     }
 }