Example #1
0
        public void Clear()
        {
            ClearRename();

            if (UnitGroups == null)
            {
                UnitGroups = new HashSet <UnitListObject>();
            }
            else
            {
                foreach (UnitListObject ulo in UnitGroups)
                {
                    if (ulo != null)
                    {
                        Destroy(ulo.gameObject);
                    }
                }

                UnitGroups.Clear();
            }

            SelectedGroups.Clear();
        }
Example #2
0
        private void ClearFilter()
        {
            _translatedFilter = null;
            _unsavedFilter    = null;
            SelectedGroups.Clear();
            _addressFilter               = null;
            _contentFilter               = null;
            _currentContainsMode         = ContainsModes[0];
            _inverseGroupFilter          = false;
            _potentialOverflowFilter     = false;
            _potentialRepointIssueFilter = false;

            OnPropertyChanged("TranslatedFilter");
            OnPropertyChanged("EditingFilter");
            OnPropertyChanged("AddressFilter");
            OnPropertyChanged("ContentFilter");
            OnPropertyChanged("CurrentContainsMode");
            OnPropertyChanged("InverseGroupFilter");
            OnPropertyChanged("PotentialOverflowFilter");
            OnPropertyChanged("PotentialRepointIssueFilter");

            OnFilterChanged();
        }