Beispiel #1
0
        private void UpdateVision(VisionPosition mp, float visionRange, int player, short groundLevel)
        {
            // clear local cache
            if (raycastEnabled && _cacheVisible)
            {
                temporaryVisibleData.Clear();
            }

            if (!updateMethod)
            {
                UpdateVision1(mp, visionRange, player, groundLevel);
            }
            else
            {
                UpdateVision2(mp, visionRange, player, groundLevel);
            }
        }
Beispiel #2
0
        /// <summary>
        /// Update gridview when foreign key is selected
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="selectionChangedEventArgs"></param>
        private void RelationshipsListBoxOnSelectionChanged(object sender, SelectionChangedEventArgs selectionChangedEventArgs)
        {
            if (selectionChangedEventArgs.AddedItems.Count == 0)
            {
                GridData.Clear();
                return;
            }

            InfoViewModel = selectionChangedEventArgs.AddedItems[0] as ConnectionInfoViewModel;

            if (InfoViewModel?.RelationshipModel != null)
            {
                GridData.Clear();
                foreach (RowModelPair pair in InfoViewModel.RelationshipModel.Attributes)
                {
                    GridData.Add(pair);
                }
            }
        }
Beispiel #3
0
 private void UpdateGeometry()
 {
     GridData.Clear();
     RestraintsCollection.Clear();
     for (int i = 0; i < NumberOfSpans + 1; i++)
     {
         RestraintsCollection.Add(new RestraintsModel()
         {
             Id = i + 1,
             SelectedRestraint = Restraints.Fixed,
         });
     }
     for (int i = 0; i < NumberOfSpans; i++)
     {
         GridData.Add(new GridData()
         {
             Id = i + 1,
             SectionProperties = SectionEditorVM.Sections,
             Span = SpanLength,
             //Restrain = Restraints.Fixed,
             SelectedSection = GeometryEditor.SelectedSection
         });
     }
 }
Beispiel #4
0
 private void ClearMatrix()
 {
     _gridData.Clear(0);
 }
Beispiel #5
0
 public void Clear()
 {
     visionData.Clear();
     previousVisionData.Clear();
 }